-
Notifications
You must be signed in to change notification settings - Fork 11
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
Consider expose the "Hide Win11 corner" function as AttachedProperty #4
Comments
I was thinking about an attached property, but I am afraid observing Avalonia sets I think it is better to just implement it on the Avalonia side: AvaloniaUI/Avalonia#17294 |
I'm suggesting this according to your current implementation. because every call of |
Hmm, how do you use coercion with DirectProperty? I thought only StyledProperty supports it? Tho I think that's still a hack, as coercion should not have side effects (but in this particular case it is not very problematic). |
Sorry was a bit busy these days. Please check below commit: rabbitism@032a59b |
This is not enough. This callback will only fire on an effective property value change, i.e. only once, because we don't change So implementing it on the Avalonia side is the only option. |
So that user can utilize in any kind of window. It is possible to subscribe to the change of IsExtendedIntoWindowDecorationsProperty and apply the coercion. I have tested it locally and it works well.
(And I can open a PR if needed. )
The text was updated successfully, but these errors were encountered: