Aug 31, 2011 at 10:10 PM

Is there a way to disable or configure the ItemButtonsContextMenu?  Or at the very least replace/remove the MenuItems (specifically remove Open in new Window). 

Thanks in advance,



Aug 31, 2011 at 11:56 PM
Edited Aug 31, 2011 at 11:57 PM
Yes there is:
To completely remove the menu: 
<s:NavigationPane ItemsButtonsContextMenu="{x:Null}" ... >

To keep just the options Menu voice:
</s:NavigationPane ..>
      <s:ConfigureMenuItem MenuType="Options" />
To Add your own voices, simply add menuitems to the context menu as you would with other ContextMenus

ConfigureItem is a specialized MenuItem used to create the NavigationPane MenuItems.
The type of item depends on MenuType property, which can be any of the fallowing values:


Each one of these as its own Command associated which triggers when the menu is selected


Sep 1, 2011 at 7:14 PM

Good deal; I had a feeling configuration would be easy.  Btw  -Great Control!




Oct 4, 2011 at 10:19 AM
    Title="Window" Height="412" Width="521"
    AllowsTransparency="False"  WindowStyle="ThreeDBorderWindow">
            <RowDefinition Height="140.16"/>
            <RowDefinition />
            <RowDefinition Height="26" MinHeight="26"></RowDefinition>
        <ribbon:Ribbon Grid.Row="0" x:Name="Ribbon" >
        <DockPanel Grid.Row="1">
            <s:NavigationPane ItemsButtonsContextMenu="{x:Null}" x:Name="navigationPane" SelectedIndex="0" LargeItems="2" Margin="2,0,0,1" IsMinimized="True" Width="160">
                        <s:ConfigureMenuItem MenuType="Options" />
                <s:NavigationPaneItem Header="Item1" Image="Images\Settings.png" Name="itm1"> 
                    <TextBlock x:Name="TextBlock5" Height="40" Width="200" Text="Hello! This is WPF TextBlock Example." 
                        Foreground="Red" Margin="10,10,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" FontSize="14" FontFamily="Verdana"                    FontWeight="Bold" TextWrapping="Wrap" TextAlignment="Center" Padding="2">
            <Border BorderBrush="{Binding BorderBrush, ElementName=navigationPane}" BorderThickness="1" Background="White" Padding="6" Margin="2,2,4,4">
                    <DropShadowEffect BlurRadius="4" ShadowDepth="0" Opacity="0.3" Color="#AC000000"/>
                <Canvas Name="WinCanvas" Margin="0,0,0,0">
                    <Button Canvas.Left="0" Canvas.Top="0" Content="Button" Height="52" Name="Button1" Width="50" />
        <StatusBar Grid.Row="2" Height="26" Margin="0,0,0,0"  >
            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                <GradientStop Color="#FFD3CCF5" Offset="0" />
                <GradientStop Color="#FF0F3D5C" Offset="1" />
        <StatusBarItem Name="sbPath" Content="Database" Margin="5,0,0,0" FontSize="11"  Foreground="White"></StatusBarItem>
        <StatusBarItem Name="sbStatus" Content="Stato" Margin="15,0,0,0" FontSize="11" Foreground="White">
                <Storyboard x:Key="statusanimation">
                    <DoubleAnimation BeginTime="00:00:00" Duration="00:00:01" 
                                  From="1" To="0" FillBehavior="Stop" />

I'did what you suggest to remove or change the context menu but nothing change, it still appear.

Great control .





Oct 4, 2011 at 12:12 PM
Edited Oct 4, 2011 at 12:13 PM

I've triyed in both framework 4 and 3.5.. it worked

If you are trying to modify the configuration menu ( the one that opens with the bottom arrow )
Then you should use the Property "ConfigureMenu" rather than "ItemButtonsContextMenu"
since the ItemButtonsContextMenu only affects the items buttons context menu
ConfigureMenu works the same as ItemButtonsContextMenu.

To completely remove the configuration menu:
<s:NavigationPane ConfigureMenu="{x:Null}" ... >


Stefano ( 0xfefi ) 

Oct 26, 2011 at 5:43 PM

There is a property IsSmallItemsVisible which hides the bottom small buttons and associated configure button, but due to a bug it wasn't working properly

I fixed the errors and added a new property IsMinimizeButtonVisible in both Navigationpane and NavigationPaneExpander ( since it can be useful ) which allow to hide the button.

You can download the updated version from the dowload section.


Oct 27, 2011 at 11:07 AM

1) added new property HasSplitter to hide the buttons splitter , I was actually thinking to add this too when I added IsSmallItemsVisible... it was not added yet
2) while for controlling the resizing of the control you could use the property named HasResizeThumb, when set to false avoid the control to be resized


Oct 31, 2011 at 1:25 PM

Hi sushilange,

I made some changes: added two new poroperties.. if you download the source and build it you should have all you need.
I haven't uploaded those to the release to avoid change the release too often.

They are:
CanMinimize, you can still resize but MinWidt doesn't trigger Minimizin anymore if set to false
IsSplitterEnabled, if you leave HasSplitter to true ( default value ) and set IsSplitterEnabled to false.. simply disable the splitter

Those changes would be included in the next release... but for now you can download the latest source.