Closed jasonxz closed 4 years ago
Hi,
inside your Style you set "Content" but you need to Set "ContentTemplate": https://stackoverflow.com/questions/7250709/set-a-buttons-content-in-style
<Style x:Key="CopyButton" TargetType="{x:Type Button}">
<Setter Property="Background" Value="Transparent" />
<Setter Property="BorderBrush" Value="Transparent" />
<Setter Property="ContentTemplate">
<Setter.Value>
<DataTemplate>
<fa5:FontAwesome FontSize="10" Foreground="Black" Icon="Solid_Copy" />
</DataTemplate>
</Setter.Value>
</Setter>
<Setter Property="HorizontalAlignment" Value="Left" />
<Setter Property="VerticalAlignment" Value="Top" />
</Style>
Sigh....I knew that....smh…..
Here's the Style: `
`
`