Hi i want to make an external block of buttons(outside of Zoombox control) to manage zoombox content(I.e center, fill bounds ).
Currently Commands are RoutedUICommand. So if i use them as a Value for Button.Command property Zoombox will not be included in route.
Here is a sample XAML
Currently Commands are RoutedUICommand. So if i use them as a Value for Button.Command property Zoombox will not be included in route.
Here is a sample XAML
<xctk:Zoombox>
<Image Source="{Binding ImageAttachment.Path}" infrastructure:AttachedProperties.IgnoreVerticalAligment="True" />
</xctk:Zoombox>
<StackPanel>
<Button x:Name="HomeButton"
Width="20px"
Height="20px"
Command="xctk:Zoombox.Home"
Style="{StaticResource TransparentButton}"
ToolTip="Go Home">
<Image Margin="2" Source="{StaticResource HomeGlyph}" />
</Button>
<Button x:Name="FitButton"
Width="20px"
Height="20px"
Margin="2,0"
Command="xctk:Zoombox.Fit"
Style="{StaticResource TransparentButton}"
ToolTip="Fit Content within Bounds">
<Image Margin="2" Source="{StaticResource FitContentGlyph}" />
</Button>
<StackPanel>
How can I achive my aim?