Avalonia-CustomTitleBarTemplate icon indicating copy to clipboard operation
Avalonia-CustomTitleBarTemplate copied to clipboard

Title bar not draggable with CanResize property set to false.

Open davipk opened this issue 3 years ago • 2 comments

For some reason, the title bar cannot seem to be dragged when CanResize property is set to false. I was looking into this because I wanted my program to have a custom titlebar with resize functionality disabled... Any chance on how I can get around this?

davipk avatar Feb 18 '21 22:02 davipk

I will look into this in about 2 weeks, when I refactor this project a bit. Sadly won't find the time earlier.

FrankenApps avatar Feb 19 '21 05:02 FrankenApps

@davipk I have looked into this and sadly it does not seem to be possible to integrate this into the demo in a nice way, other than the code becoming pretty convulated.

However you can work around this in your own Application pretty easily. Simply use PointerEvents and then set the window position accordingly.

I have made a new branch where I have implemented this for Windows here.

FrankenApps avatar Mar 08 '21 09:03 FrankenApps