优化更新代码,添加界面功能并整合
This commit is contained in:
18
WPFluent/Controls/BitmapIcon/BitmapImageProvider.cs
Normal file
18
WPFluent/Controls/BitmapIcon/BitmapImageProvider.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Media.Imaging;
|
||||
|
||||
namespace WPFluent.Controls;
|
||||
|
||||
internal class BitmapImageProvider(Uri path) : AnimationProvider(path)
|
||||
{
|
||||
public override void Dispose()
|
||||
{
|
||||
///
|
||||
}
|
||||
|
||||
public override Task<BitmapSource> GetRenderedFrame(int index)
|
||||
{
|
||||
return Task.FromResult<BitmapSource>(new BitmapImage(Path));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user