参考链接: https://docs.devexpress.com/WPF/DevExpress.Xpf.Ribbon.BackstageItemWithImage.GlyphStyle
设置 BackstageItemWithImage Image的大小和样式
<Style x:Key="myGlyphStyle" TargetType="Image"> <Setter Property="VerticalAlignment" Value="Center"/> <Setter Property="HorizontalAlignment" Value="Center"/> <Setter Property="Height" Value="24"/> <Setter Property="Width" Value="24"/> </Style> <Style x:Key="myGlyphContainerStyle" TargetType="ContentControl"> <Setter Property="VerticalAlignment" Value="Center"/> <Setter Property="HorizontalAlignment" Value="Center"/> <Setter Property="Height" Value="28"/> <Setter Property="Width" Value="28"/> </Style>
<dxr:BackstageButtonItem Content="DevHelp" Glyph="D:WorkIcon.png" GlyphStyle="{StaticResource myGlyphStyle}" GlyphContainerStyle="{StaticResource myGlyphContainerStyle}"/>