Resizing content in mini toolbar

Ribbon for WPF Forum

Posted 10 years ago by RS
Version: 9.1.0500
Avatar
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):

<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

Comments (2)

Posted 10 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
We've made a change to allow content resizing for the next maintenance release.


Actipro Software Support

Posted 10 years ago by RS
Avatar
That's great news, much appreciated.

RS

The latest build of this product (v2018.1 build 0675) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.