Avalonia-CustomTitleBarTemplate
Avalonia-CustomTitleBarTemplate copied to clipboard
Title bar not draggable with CanResize property set to false.
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?
I will look into this in about 2 weeks, when I refactor this project a bit. Sadly won't find the time earlier.
@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.