Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to enforce stylized property to custom, in-xaml value. #25

Open
jlarnal opened this issue Mar 2, 2023 · 0 comments
Open

How to enforce stylized property to custom, in-xaml value. #25

jlarnal opened this issue Mar 2, 2023 · 0 comments

Comments

@jlarnal
Copy link

jlarnal commented Mar 2, 2023

These themes of yours are splendid ! 🤩

But how can one make the foreground color of a label, say, dark red ? When I value the property in XAML, nothing changes. 🤔

<Label Foreground="#FFE00000" Content="This should be dark red"/>
nnnope... still keeps the theme's current fore color for the Labels. 🤯

Danggit. What am I missing here ? Should I create a custom Label class ?
How can I exempt a control instance from inheriting the theme's style ?

I also tried this in my window's resources, applying it to the label in question :

        <Style x:Key="RedLabelStyle" TargetType="{x:Type Control}">
            <Setter Property="Foreground">
                <Setter.Value>
                    <SolidColorBrush Color="Red"/>
                </Setter.Value>
            </Setter>
        </Style>

but again, nope. 😥

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant