Ribbon item containers and VirtualizingStackPanel

Dec 2, 2013 at 3:59 PM
I'm trying to change ItemsPanel to VirtualizingStackPanel
<fluent:ComboBox.ItemsPanel>
    <ItemsPanelTemplate>
        <VirtualizingStackPanel/>
    </ItemsPanelTemplate>
</fluent:ComboBox.ItemsPanel>
But there is no performance gain. Changing control to a standard ComboBox helps.
Does someone have any thoughts?
Developer
Jan 8, 2014 at 6:43 AM
Could you give us your itemSouce(how many) and ItemTemplate?
Jan 8, 2014 at 12:10 PM
ItemSource is a collection built from Fonts.SystemFontFamilies (about several hundreds)
ItemTemplate:
<r:InRibbonGallery.ItemTemplate>
    <DataTemplate DataType="f:Font">
        <r:GalleryItem Command="tb:Commands.SetFont" CommandParameter="{Binding}">
            <Border Width="50" Height="25" Margin="0">
                <Border.ToolTip>
                    <ToolTip Content="{Binding}" />
                </Border.ToolTip>
                <TextBlock Text="Example"
                            VerticalAlignment="Center"
                            HorizontalAlignment="Left"
                            FontFamily="{Binding FontFamily}" 
                            Foreground="{Binding Foreground}" 
                            FontSize="{Binding FontSize}"
                            FontStretch="{Binding FontStretch}"
                            FontStyle="{Binding FontStyle}"
                            FontWeight="{Binding FontWeight}"
                            TextDecorations="{Binding TextDecorations}"
                            />
            </Border>
        </r:GalleryItem>
    </DataTemplate>
</r:InRibbonGallery.ItemTemplate>
Jan 24, 2014 at 5:35 PM
I'm having the same issue. Do you know of any workaround for this? Thank you!
Jan 24, 2014 at 7:02 PM
I haven't seriously tried yet, so the only way I see now is overriding the template of the Microsoft ComboBox so it looks like a ribbon one :-(