Skip to content

ImageViewer is the core component of ImageBrowser, it can be used as an independent control without pop-up windows.

cs
[TemplatePart(Name = ElementPanelMain, Type = typeof(Panel))]
[TemplatePart(Name = ElementCanvasSmallImg, Type = typeof(Canvas))]
[TemplatePart(Name = ElementBorderMove, Type = typeof(Border))]
[TemplatePart(Name = ElementBorderBottom, Type = typeof(Border))]
[TemplatePart(Name = ElementImageMain, Type = typeof(Image))]
public class ImageViewer : Control

Attributes

PropertyDescriptionDefault ValueRemarks
ShowImgMapWhether to display the small mapfalse
ImageSourceImage Resources
ShowToolBar
MoveGesture
Uri
IsFullScreenIs it in full screen displayfalse
ShowCloseButton
ShowSmallImgInternal
ScaleStr
ImageHeight
ImageWidth
ImageMargin
ShowFullScreenButton

Case

xml
<hc:ImageViewer Background="{DynamicResource SecondaryRegionBrush}" Width="600" Height="330" ImageSource="/HandyControlDemo;component/Resources/Img/1.jpg"/>

ImageViewer

Released under the MIT License.