resizable NavigationPane

Sep 16, 2010 at 7:01 PM

Hi,

first - control looks pretty good, fully fits my needs. But is it possible to make NavigationPane resizable? If So, how?

 

Thank you for any advice.

Bop

Coordinator
Sep 20, 2010 at 11:27 AM

Hi bop,
I've intentionally avoided to put resizing inside the component, leaving to the control container control over the resing.

You can simply achieve resizing by putting the control inside a Grid and adding a GridSplitter.
Something like this:

<Grid x:Name="LayoutRoot">
 <Grid.ColumnDefinitions>
  <ColumnDefinition Width="0.1*"/>  <ColumnDefinition Width="0.9*"/>
 </Grid.ColumnDefinitions>
 <sm:NavigationPane ..../>
 <GridSplitter />
</Grid>

If you have DockPanel instead of a Grid you can achieve the same result using "DockSplitter",
wich is not included in the dot.net framework but can be found on internet as free component
( here is a link: http://www.codeproject.com/KB/WPF/DockPanelSplitter.aspx )

I Hope to have been usefull to you.
0xfefi