Posted 18 years ago
by Bryan Livingston
I am building a drawing program using the ribbon and wish to have the current brush color shown on the ribbon and have it updated in realtime.
UseAlternateStyle doesn't seem to work when the CustomControl is embedded in the ribbon style. It still leaves a big space in the ribbon for the label. Is this deliberate or is it a bug or am I doing something wrong?I would almost rather use the ribbon Button or SplitButton classes if I could just be able to set their image area's to some arbitrary xaml. Which I think would be nice for the GalleryItems as well.
BTW: UseAlternateStyle is referenced once as UseAlternativeStyle in the help docs page on CustomControl.
Bryan
[Modified at 06/04/2007 06:44 PM]
[Modified at 06/04/2007 06:45 PM]
[Modified at 06/04/2007 06:46 PM]
UseAlternateStyle doesn't seem to work when the CustomControl is embedded in the ribbon style. It still leaves a big space in the ribbon for the label. Is this deliberate or is it a bug or am I doing something wrong?
<ribbon:Group Label="Fill">
<ribbon:CustomControl ribbon:Ribbon.UsesAlternateStyle="True" >
<Button Command="{x:Static ld:ShowFillBrushEditorCommand.Command}" >
<Rectangle x:Name="FillBrushPreview" Width="50" Height="50" Margin="1" Fill="Black" />
</Button>
</ribbon:CustomControl>
</ribbon:Group>
BTW: UseAlternateStyle is referenced once as UseAlternativeStyle in the help docs page on CustomControl.
Bryan
[Modified at 06/04/2007 06:44 PM]
[Modified at 06/04/2007 06:45 PM]
[Modified at 06/04/2007 06:46 PM]