ImageGear for .NET
ImGearMagnifierPopUpCtl

The following template defines style for popup rectangle magnifier window. Consists of border and image that is bound to MagnifiedImage Property of ImGearMagnifierCtl Class.

XAML
Copy Code
<Style TargetType="{x:Type local:ImGearMagnifierPopUpCtl} 
    <Setter Property="HorizontalAlignment" Value="Left"/>
    <Setter Property="VerticalAlignment" Value="Top"/>
        <Setter Property="Template 
          <Setter.Value>
            <ControlTemplate TargetType="{x:Type local:ImGearMagnifierPopUpCtl} 
              <Border 
                BorderBrush="#55000000" 
                CornerRadius="3" 
                BorderThickness="3" 
                Background="#55000000" 
                Width ="{Binding ParentCtl.PopupWidth}" 
                Height="{Binding ParentCtl.PopupHeight} 
                <Image Source="{Binding ParentCtl.MagnifiedImage}"/>
              </Border>
            </ControlTemplate>
          </Setter.Value>
        </Setter>
  </Style>

 

 


©2014. Accusoft Corporation. All Rights Reserved.

Send Feedback