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> |