Posted 16 years ago
by Krijn Michiels
![Avatar](https://secure.gravatar.com/avatar/1ec5c7cea3230ff815667f9987f5efd3.jpg?s=64&d=identicon&r=g)
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