C1ImageMagnifier control adds a magnifying glass over regular images, allowing end-users to zoom in on parts of the image.
Namespace:
C1.Silverlight.LegacyAssembly: C1.Silverlight.Legacy (in C1.Silverlight.Legacy.dll)
XMLNS for XAML: http://schemas.componentone.com/winfx/2006/xaml
Syntax
| C# |
|---|
[TemplateVisualStateAttribute(Name = "Disabled", GroupName = "CommonStates")] [TemplateVisualStateAttribute(Name = "MouseOver", GroupName = "CommonStates")] [TemplateVisualStateAttribute(Name = "Focused", GroupName = "FocusStates")] [TemplatePartAttribute(Name = "MagnifierContent", Type = typeof(Grid))] [TemplatePartAttribute(Name = "MagnifiedImage", Type = typeof(Image))] [TemplatePartAttribute(Name = "Image", Type = typeof(Image))] [TemplateVisualStateAttribute(Name = "Unfocused", GroupName = "FocusStates")] [TemplateVisualStateAttribute(Name = "Normal", GroupName = "CommonStates")] [TemplatePartAttribute(Name = "Root", Type = typeof(FrameworkElement))] [TemplatePartAttribute(Name = "Magnifier", Type = typeof(Border))] public class C1ImageMagnifier : Control |
| Visual Basic |
|---|
<TemplateVisualStateAttribute(Name := "Disabled", GroupName := "CommonStates")> _ <TemplateVisualStateAttribute(Name := "MouseOver", GroupName := "CommonStates")> _ <TemplateVisualStateAttribute(Name := "Focused", GroupName := "FocusStates")> _ <TemplatePartAttribute(Name := "MagnifierContent", Type := GetType(Grid))> _ <TemplatePartAttribute(Name := "MagnifiedImage", Type := GetType(Image))> _ <TemplatePartAttribute(Name := "Image", Type := GetType(Image))> _ <TemplateVisualStateAttribute(Name := "Unfocused", GroupName := "FocusStates")> _ <TemplateVisualStateAttribute(Name := "Normal", GroupName := "CommonStates")> _ <TemplatePartAttribute(Name := "Root", Type := GetType(FrameworkElement))> _ <TemplatePartAttribute(Name := "Magnifier", Type := GetType(Border))> _ Public Class C1ImageMagnifier _ Inherits Control |
| XAML Object Element Usage |
|---|
<C1ImageMagnifier .../> |
Inheritance Hierarchy
System..::..Object
System.Windows..::..DependencyObject
System.Windows..::..UIElement
System.Windows..::..FrameworkElement
System.Windows.Controls..::..Control
C1.Silverlight.Legacy..::..C1ImageMagnifier
System.Windows..::..DependencyObject
System.Windows..::..UIElement
System.Windows..::..FrameworkElement
System.Windows.Controls..::..Control
C1.Silverlight.Legacy..::..C1ImageMagnifier