AppBarButton:如何将2个glyp作为图标



我有这个;

<AppBarToggleButton Label="" >
<AppBarToggleButton.Icon>
<FontIcon FontFamily="Segoe MDL2 Assets" Glyph="&#xEC92;" />
</AppBarToggleButton.Icon>
</AppBarToggleButton>

它工作得很好,但我需要添加另一个重叠的glyp。<FontIcon FontFamily="Segoe MDL2 Assets" Glyph="&#xF0AE;" />我试图添加2个Glipps,但出现了一个错误。

<AppBarToggleButton Label="" >
<AppBarToggleButton.Icon>
<FontIcon FontFamily="Segoe MDL2 Assets" Glyph="&#xEC92;" />
<FontIcon FontFamily="Segoe MDL2 Assets" Glyph="&#xF0AE;" />
</AppBarToggleButton.Icon>
</AppBarToggleButton>

有办法做到吗?

是的,有:

<AppBarToggleButton Label="" >
<AppBarToggleButton.Content>
<Grid>
<FontIcon FontFamily="Segoe MDL2 Assets" Glyph="&#xEC92;" />
<FontIcon FontFamily="Segoe MDL2 Assets" Glyph="&#xF0AE;" />
</Grid>
</AppBarToggleButton.Content>
</AppBarToggleButton>

最新更新