Maybe a bug rep, and plz give me some suggestions for my project, thanks #21373
Replies: 3 comments 9 replies
You can take a look at the comment I posted a few weeks ago.
Drag Use MenuFlyout for right click menu.
You can use WindowDrawnDecorations.xaml to customize it. (See the sample project above to see how) |
Turns out, Works |
|
I think I got what you want.
Use ExtendClientAreaToDecorationsHint="True"
Use BeginMoveDrag for drag the window and call Win32Api for the system window menu (aka the Control Menu) in the code behind (Window_PointerPressed).
I wouldn't recommend that route because it might have unexpected side effects especially on other platforms like linux and mac.
Customize the template for temp fix.
Customize the template. Sample project file. Note: |
Uh oh!
There was an error while loading. Please reload this page.
I am using Avalonia 12.0.3+Net10, I want to achieve a style:
Now I knew, there is a bug fixed but not release yet. When ExtendClientAreaToDecorationsHint sets to true, TransparencyLevelHint will not work.
I tried to set ExtendClientAreaTitleBarHeightHint to 100 (finally set to full window), then I found the system buttons right top side go verticalalignment center. So is this on purpose or bug? Or I can set by myself?
And maybe another bug, when pressing system button and move cursor out of window, the IsPressed keeps even though move back to window.
My opinion is that:
Btw, how to hide the fullscreen button next system buttons?
Is any better idea? Thanks a lot
All reactions