Skip to content

h82258652/HN.Controls.ImageEx

Repository files navigation

HN.Controls.ImageEx

Build status

Package Nuget
HN.Controls.ImageEx.Core Nuget
HN.Controls.ImageEx.Wpf Nuget
HN.Controls.ImageEx.Uwp Nuget

An enhanced image for WPF and UWP.
WPF version for .net framework 4.6.2 and .net core 3.1
UWP version for 17763
The usage please see the demo project.

Notice!

Due to there are some performance problems in SkiaSharp, the 2.x.x version will stop developing. You can use the 1.x.x version if you meet the performance problems. 3.x.x version is on the plan.

WPF Support

ImageEx ImageBrushEx
Disk Cache ✔️ ✔️
Placeholder ✔️
Loading Template ✔️
Failed Template ✔️
Retry ✔️ ✔️
Lazy Loading ✔️
CornerRadius ✔️
Shadow ✔️
Gif ✔️
Webp ✔️
Fade in animation ✔️

UWP Support

ImageEx ImageBrushEx
Disk Cache ✔️ ✔️
Placeholder ✔️
Loading Template ✔️
Failed Template ✔️
Retry ✔️ ✔️
Lazy Loading ✔️
CornerRadius ✔️
Shadow ✔️
Gif ✔️
Webp ✔️ ✔️
Fade in animation ✔️

Next plan:

  • Update the lazy loading, support set the thresholds and give a default value. (Now is 300px)
  • Built-in fade in animation while loaded image success. (Default duration is 0 second)
  • Use SkiaSharp to resolve the image.
  • CornerRadius support.
  • Built-in shadow, same API for WPF and UWP.
  • Gif animation controller, including Play, Pause, GotoFrame, RepeatBehavior(use metadata or custom), SpeedRatio.
  • Same API for WPF and UWP, such as StretchDirection(exist in WPF but not UWP), NineGrid(exist in UWP but not WPF).
  • Add IImageEx interface for ImageEx.
  • Improve performance.
  • Target .net 5.

About

ImageEx for WPF and UWP

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published