<Button.Content>
<HeaderedContentControl>
<HeaderedContentControl.Template>
<ControlTemplate TargetType="HeaderedContentControl">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<ContentPresenter Grid.Column="0" ContentSource="Header" />
<ContentPresenter Grid.Column="1" ContentSource="Content" />
</Grid>
</ControlTemplate>
</HeaderedContentControl.Template>
<HeaderedContentControl.Header>
<TextBlock
Margin="0,0,62,10"
FontFamily="../Assets/Fonts/#iconfont"
FontSize="22"
Foreground="Black"
Text="" />
</HeaderedContentControl.Header>
<HeaderedContentControl.Content>
<TextBlock Text="首页" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</HeaderedContentControl.Content>
</HeaderedContentControl>
</Button.Content>
标签:HeaderedContentControl,对称,左右,实现
From: https://www.cnblogs.com/guchen33/p/17712713.html