2
我正試圖使用Fluent功能區中的佈局定義。我遇到的問題是它沒有在第一個組定義中的按鈕上顯示圖標。這是以下適當的片段:Fluent功能區中的第一組定義不顯示圖標
<Fluent:RibbonToolBar>
<Fluent:RibbonToolBar.LayoutDefinitions>
<Fluent:RibbonToolBarLayoutDefinition Size="Large">
<Fluent:RibbonToolBarRow>
<Fluent:RibbonToolBarControlGroupDefinition>
<Fluent:RibbonToolBarControlDefinition Target="buttonCameraLock" />
</Fluent:RibbonToolBarControlGroupDefinition>
<Fluent:RibbonToolBarControlGroupDefinition>
<Fluent:RibbonToolBarControlDefinition Target="buttonPanMode" />
<Fluent:RibbonToolBarControlDefinition Target="buttonRoamMode" />
</Fluent:RibbonToolBarControlGroupDefinition>
</Fluent:RibbonToolBarRow>
</Fluent:RibbonToolBarLayoutDefinition>
</Fluent:RibbonToolBar.LayoutDefinitions>
<Fluent:Button x:Name="buttonCameraLock"
Icon="histogram_small.png"
HorizontalAlignment="Center"
SizeDefinition="Small" />
<Fluent:Button x:Name="buttonPanMode"
Icon="histogram_small.png"
HorizontalAlignment="Center"
SizeDefinition="Small" />
<Fluent:Button x:Name="buttonRoamMode"
Icon="histogram_small.png"
HorizontalAlignment="Center"
SizeDefinition="Small" />
</Fluent:RibbonToolBar>
在此示例中,第一個按鈕存在,但沒有圖標。如果我將它們放在一個組中,則沒有任何按鈕具有圖標。