I'm trying to figure out how to get the variant size of a ribbon button to display the image and label on the left of it's text box. The documenation says that this is the variant when in a stackpanel and the size is set to medium.
Right now I have this textbox inside of a buttongroup that is within a rowpanel. What can I do to get to get the image and label to display in this context?I have tried to explicity set the Context property to see if I can get the desired effect, but it doesn't seem to matter.
Any suggestion is greatly appreciated.
Right now I have this textbox inside of a buttongroup that is within a rowpanel. What can I do to get to get the image and label to display in this context?
<ribbon:Group Label="Dimensions" MinWidth="50">
    <ribbon:RowPanel HorizontalAlignment="Center" VerticalAlignment="Center">
        <ribbon:ButtonGroup>
            <ribbon:TextBox Label="Width" VariantSize="Medium" MinWidth="30" ImageSourceSmall="/Resources/Images/Width16.png" ImageSourceLarge="/Resources/Images/Width32.png" />
            <ribbon:TextBox VariantSize="Medium" MinWidth="30" ImageSourceSmall="/Resources/Images/Height16.png" ImageSourceLarge="/Resources/Images/Height32.png" />
        </ribbon:ButtonGroup>
        <ribbon:CheckBox Label="Square" />
        <ribbon:CheckBox Label="Keep Ratio" />
    </ribbon:RowPanel>
</ribbon:Group>
<ribbon:Group Label="Dimensions" MinWidth="50">
    <ribbon:RowPanel HorizontalAlignment="Center" VerticalAlignment="Center">
        <ribbon:ButtonGroup>
            <ribbon:TextBox Label="Width" VariantSize="Medium" Context="RibbonTabGroupStackPanelItem" MinWidth="30" ImageSourceSmall="/Resources/Images/Width16.png" ImageSourceLarge="/Resources/Images/Width32.png" />
            <ribbon:TextBox VariantSize="Medium" MinWidth="30" Context="RibbonTabGroupStackPanelItem" ImageSourceSmall="/Resources/Images/Height16.png" ImageSourceLarge="/Resources/Images/Height32.png" />
        </ribbon:ButtonGroup>
        <ribbon:CheckBox Label="Square" />
        <ribbon:CheckBox Label="Keep Ratio" />
    </ribbon:RowPanel>
</ribbon:Group>