charri / Font-Awesome-WPF

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

Adapting parent foreground #50

Closed Matt-17 closed 6 years ago

Matt-17 commented 6 years ago

When using in other control (like ContentControl) ImageAwesome does not use the foreground provided by the parent.

Example:

    <ContentControl Foreground="Red">
        <TextBlock Text="FontAwesome" />
    </ContentControl>`

This gives you a red TextBlock.

    <ContentControl Foreground="Red">
        <fa:ImageAwesome Icon="FontAwesome" />
    </ContentControl>`

This gves you a black image, which should be red.

I'm using FontAwesome.WPF in version 4.7.0.9

helluvamatt commented 6 years ago

Use fa:FontAwesome which extends from TextBlock.

Example:

<ContentControl Foreground="Red">
    <fa:FontAwesome Icon="FontAwesome">
</ContentControl>