Hi,
I want to use the Ribbongallery to show 3 lines of text.
However it shows only 2 items with large margins????
What am I doing wrong here??
I want to use the Ribbongallery to show 3 lines of text.
However it shows only 2 items with large margins????
What am I doing wrong here??
<ribbon:RibbonGallery MinWidth ="250" IsPreviewEnabled="False" LargeVariantColumnCount="1" MediumVariantColumnCount="1" VerticalAlignment="Top" VariantSize="Medium" VariantBehavior="NoAutoSize">
<ribbon:RibbonGallery.ItemsSource >
<x:Array Type="{x:Type TextBlock}" >
<TextBlock>Line 1</TextBlock>
<TextBlock>Line 2</TextBlock>
<TextBlock>Line 3</TextBlock>
</x:Array>
</ribbon:RibbonGallery.ItemsSource>
<ribbon:RibbonGallery.ItemTemplate>
<DataTemplate>
<ribbon:GalleryItem>
<Border Height="18" Grid.Column="0" BorderBrush="DarkGray" BorderThickness="1" Margin="0" >
<TextBlock FontSize="11" Text="{Binding Path=Text}" ></TextBlock>
</Border>
</ribbon:GalleryItem>
</DataTemplate>
</ribbon:RibbonGallery.ItemTemplate>
<ribbon:RibbonGallery.PopupContent>
<StackPanel>
<ribbon:PopupGallery InitialColumnCount="1"
ItemTemplate="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type ribbon:RibbonGallery}}, Path=ItemTemplate}" ItemsSource="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type ribbon:RibbonGallery}}, Path=ItemsSource}" VariantSize="Large">
</ribbon:PopupGallery>
</StackPanel>
</ribbon:RibbonGallery.PopupContent>
</ribbon:RibbonGallery>