Quantcast
Channel: wpftoolkit Discussions Rss Feed
Viewing all articles
Browse latest Browse all 2157

New Post: Zoombox controlled externaly

$
0
0
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
<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?

Viewing all articles
Browse latest Browse all 2157

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>