Can you think of a way that we can persuade the mini toolbar to resize to it's content once it's visible? We have an expander in there but it gets clipped when expanding. Quite happy to try and code a workaround if you could point me in the right direction.
Sample Window (right click to open menu then expand the expander in the mini toolbar):
Sample Window (right click to open menu then expand the expander in the mini toolbar):
<Window x:Class="Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:ribbon="http://schemas.actiprosoftware.com/winfx/xaml/ribbon"
Height="300"
Width="300">
<Window.ContextMenu>
<ribbon:ContextMenu>
<ribbon:ContextMenu.MiniToolBar>
<ribbon:MiniToolBar Height="Auto">
<Expander x:Name="_Expander"
Header="Stuff in header"
Content="More stuff in the content" />
<ribbon:MiniToolBar.ItemsPanel>
<ItemsPanelTemplate>
<StackPanel />
</ItemsPanelTemplate>
</ribbon:MiniToolBar.ItemsPanel>
</ribbon:MiniToolBar>
</ribbon:ContextMenu.MiniToolBar>
<Button>Item on the menu</Button>
</ribbon:ContextMenu>
</Window.ContextMenu>
</Window>
RS