HN.Controls.ImageEx
HN.Controls.ImageEx copied to clipboard
ImageEx for WPF and UWP
HN.Controls.ImageEx
| Package | Nuget |
|---|---|
| HN.Controls.ImageEx.Core | |
| HN.Controls.ImageEx.Wpf | |
| HN.Controls.ImageEx.Uwp |
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 | :heavy_check_mark: | :heavy_check_mark: |
| Placeholder | :heavy_check_mark: | |
| Loading Template | :heavy_check_mark: | |
| Failed Template | :heavy_check_mark: | |
| Retry | :heavy_check_mark: | :heavy_check_mark: |
| Lazy Loading | :heavy_check_mark: | |
| CornerRadius | :heavy_check_mark: | |
| Shadow | :heavy_check_mark: | |
| Gif | :heavy_check_mark: | |
| Webp | :heavy_check_mark: | |
| Fade in animation | :heavy_check_mark: |
UWP Support
| ImageEx | ImageBrushEx | |
|---|---|---|
| Disk Cache | :heavy_check_mark: | :heavy_check_mark: |
| Placeholder | :heavy_check_mark: | |
| Loading Template | :heavy_check_mark: | |
| Failed Template | :heavy_check_mark: | |
| Retry | :heavy_check_mark: | :heavy_check_mark: |
| Lazy Loading | :heavy_check_mark: | |
| CornerRadius | :heavy_check_mark: | |
| Shadow | :heavy_check_mark: | |
| Gif | :heavy_check_mark: | |
| Webp | :heavy_check_mark: | :heavy_check_mark: |
| Fade in animation | :heavy_check_mark: |
Next plan:
- [x] Update the lazy loading, support set the thresholds and give a default value. (Now is 300px)
- [x] Built-in fade in animation while loaded image success. (Default duration is 0 second)
- [x] Use
SkiaSharpto resolve the image. - [x]
CornerRadiussupport. - [x] Built-in shadow, same API for WPF and UWP.
- [x] Gif animation controller, including
Play,Pause,GotoFrame,RepeatBehavior(use metadata or custom),SpeedRatio. - [x] Same API for WPF and UWP, such as
StretchDirection(exist in WPF but not UWP),NineGrid(exist in UWP but not WPF). - [ ] Add
IImageExinterface forImageEx. - [ ] Improve performance.
- [ ] Target .net 5.