Quantcast
Channel: Ribbon for WPF - Recent Posts
Viewing all articles
Browse latest Browse all 1458

Re: SplitButton changes behavior depending on VariantSize

$
0
0

I am looking at the "Shape Fill" button in Powerpoint. I see that the text is with the dropdown arrow. In other words I can click on the text and the color picker shows up, you do not need to click on the small down arrow

So I wrote the following xaml

<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition></ColumnDefinition>
<ColumnDefinition></ColumnDefinition>
</Grid.ColumnDefinitions>
<ribbon:SplitButton Label="Shape Fill1" Grid.Column="0" Height="25" Width="140" VariantSize="Medium" ImageSourceSmall="C:\\Users\\dvadmin\\Desktop\\MyIcons\\ShapeFill_16x16.png"></ribbon:SplitButton>
<ribbon:SplitButton Label="Shape Fill2" Grid.Column="1" Height="40" Width="100" VariantSize="Large" ImageSourceLarge="C:\\Users\\dvadmin\\Desktop\\MyIcons\\ShapeFill_32x32.png"></ribbon:SplitButton>
</Grid>

In the VarianSize= Large when user clicks on text the dropdown open, in case VariantSize=Medium it does not, the user needs to click on the small arrow.

In Powerpoint one can still click on the text and the dropdown opens.


Viewing all articles
Browse latest Browse all 1458

Trending Articles