charri / Font-Awesome-WPF

FontAwesome controls for WPF+UWP
MIT License
530 stars 147 forks source link

Does not get a style #45

Open LeonidDZ opened 7 years ago

LeonidDZ commented 7 years ago

I tried the FontAwesome.UWP. Unfortunately it does not get a style:

<Style x:Name="stlFontAwesome" TargetType="fa:FontAwesome">
                <Setter Property="FontSize" Value="40"/>
                <Setter Property="Foreground" Value="White"/>
                <Setter Property="HorizontalAlignment" Value="Center"/>
                <Setter Property="VerticalAlignment" Value="Center"/>
</Style>

And then:

<fa:FontAwesome x:Name="iPause" 
                Icon="Pause"
                Grid.Column="0"
                Style="{StaticResource stlFontAwesome}"
                Visibility="Collapsed"
                />

Nor alignment or a font size. In addition, it's invisible in design mode, before program running.