Gallery.ItemsInRow not working?

May 18, 2010 at 10:21 PM
Edited May 18, 2010 at 10:50 PM

Hello,

 

Once again thanks for a new release, however, with Ribbon 1.2 the Gallery.ItemsInRow property worked fine, now in 1.3 it seems to scale to some arbitrary size, am I doing something wrong?

 

Ally

 

Edit: Done some more testing using a gallery in a DropDownButton. Seems like the width is always being set to 0 regardless of the ItemsInRow property. If you have something else in the menu then the width becomes the width of that item, so you can at least see some of the gallery, but not ideal. I'll do some fiddling with the source and see if I can get it working.

 

Edit 2: Here's some code which fails (for me):

 

<Fluent:RibbonWindow x:Class="MyTest.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:Fluent="clr-namespace:Fluent;assembly=Fluent"
        Title="MainWindow" Height="350" Width="525">
    <DockPanel>
        <Fluent:Ribbon DockPanel.Dock="Top">
            <Fluent:RibbonTabItem>
                <Fluent:RibbonGroupBox>
                    <Fluent:DropDownButton>
                        <Fluent:Gallery Name="rbInsertColourGallery" ItemsInRow="4">
                            <Fluent:Gallery.Items>
                                <TextBlock Text="1" />
                                <TextBlock Text="2" />
                                <TextBlock Text="3" />
                                <TextBlock Text="4" />
                                <TextBlock Text="5" />
                                <TextBlock Text="6" />
                                <TextBlock Text="7" />
                                <TextBlock Text="8" />
                                <TextBlock Text="10" />
                                <TextBlock Text="11" />
                            </Fluent:Gallery.Items>
                        </Fluent:Gallery>
                    </Fluent:DropDownButton>
                </Fluent:RibbonGroupBox>
            </Fluent:RibbonTabItem>
        </Fluent:Ribbon>
    </DockPanel>
</Fluent:RibbonWindow>

Coordinator
May 21, 2010 at 3:09 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.