Posted 16 years ago
by Krijn Michiels
Hi
When I create a simple Wpf Window with a NavigationBar/NavigationPane the navigationpane stretches the small ImageSource.
Example :The current variantSize is 'Large'. This explains the image sizing behavior, but where does this VariantSize come from ? How can I change this ? Does it come from the current Theme ?
Thanks
When I create a simple Wpf Window with a NavigationBar/NavigationPane the navigationpane stretches the small ImageSource.
Example :
<Window x:Class="Window2"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:navigation="http://schemas.actiprosoftware.com/winfx/xaml/navigation">
<navigation:NavigationBar>
<navigation:NavigationPane x:Name="mailPane"
Title="Mail"
ImageSourceSmall="/Resources/Small/Picture16.png" >
<StackPanel>
<TextBlock Text="Variant size:" />
<TextBlock Text="{Binding ElementName=mailPane, Path=VariantSize}"
FontWeight="SemiBold" />
</StackPanel>
</navigation:NavigationPane>
</navigation:NavigationBar>
</Window>
Thanks