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

Proposal: easier event based styling #10191

Open
HMO-SOUL opened this issue Nov 16, 2024 · 0 comments
Open

Proposal: easier event based styling #10191

HMO-SOUL opened this issue Nov 16, 2024 · 0 comments
Labels
area-Styling feature proposal New feature proposal needs-triage Issue needs to be triaged by the area owners

Comments

@HMO-SOUL
Copy link

Greetings WASDK team
I have been using for the past several months and i liked it, i came from a WPF background and find WinUI 3 better than WPF but lacking in some areas

I tried lightweight styling and i find it amazing but i would like to request a styling feature, is it possible to style properties in an easier way?
Old styling:

<Button
Background="Green"
CornerRadius="3"
BorderBrush="LightGreen"
BorderThickness="2"
/>

Requested new style

<Button
Background="Green"
CornerRadius="3"
BorderBrush="LightGreen"
BorderThickness="2"
Background.PointerOver="Blue"
CornerRadius.PointerOver="2"
BorderBrush.PointerOver="LightBlue"
BorderThickness.PointerOver="1"
Background.Pressed="Yellow"
CornerRadius.Pressed="1"
BorderBrush.Pressed="LightYellow"
BorderThickness.Pressed="3"
/>

Is it possible to do something like this?
And thanks for reading

@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label Nov 16, 2024
@codendone codendone transferred this issue from microsoft/WindowsAppSDK Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Styling feature proposal New feature proposal needs-triage Issue needs to be triaged by the area owners
Projects
None yet
Development

No branches or pull requests

2 participants