This project is read-only.

Ribbon item containers and VirtualizingStackPanel

Dec 2, 2013 at 4:59 PM
I'm trying to change ItemsPanel to VirtualizingStackPanel
But there is no performance gain. Changing control to a standard ComboBox helps.
Does someone have any thoughts?
Jan 8, 2014 at 7:43 AM
Could you give us your itemSouce(how many) and ItemTemplate?
Jan 8, 2014 at 1:10 PM
ItemSource is a collection built from Fonts.SystemFontFamilies (about several hundreds)
    <DataTemplate DataType="f:Font">
        <r:GalleryItem Command="tb:Commands.SetFont" CommandParameter="{Binding}">
            <Border Width="50" Height="25" Margin="0">
                    <ToolTip Content="{Binding}" />
                <TextBlock Text="Example"
                            FontFamily="{Binding FontFamily}" 
                            Foreground="{Binding Foreground}" 
                            FontSize="{Binding FontSize}"
                            FontStretch="{Binding FontStretch}"
                            FontStyle="{Binding FontStyle}"
                            FontWeight="{Binding FontWeight}"
                            TextDecorations="{Binding TextDecorations}"
Jan 24, 2014 at 6:35 PM
I'm having the same issue. Do you know of any workaround for this? Thank you!
Jan 24, 2014 at 8: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 :-(