ImageGear PDF v25.2 - Updated
Pan
Developer Guide > How to Work with... > Common Operations > Viewing > Viewing with WPF > XAML GUI Controls and Templates > Pan

WPF Pan control is similar to the one provided by ImageGear.Windows.Forms Namespace, but it can be easily configured using the ImGearPanCtl XAML template.

The following template defines ImGearPanCtl Class control. 

XAML
Copy Code
<Style TargetType="{x:Type local:ImGearPanCtl}">
 <Setter Property="HorizontalAlignment" Value="Left"/>
 <Setter Property="VerticalAlignment" Value="Top"/>
 <Setter Property="Visibility" Value="Collapsed"/>
 <Setter Property="Template">
  <Setter.Value>
   <ControlTemplate TargetType="{x:Type local:ImGearPanCtl}">
    <ControlTemplate.Resources>
    </ControlTemplate.Resources>
    <Border Background="Indigo" CornerRadius="3">
     <Label>ImGearPanCtl Control</Label>
    </Border>
   </ControlTemplate>
  </Setter.Value>
 </Setter>
</Style>
Is this page helpful?
Yes No
Thanks for your feedback.