How to Create Dragged Window Without Title Bar

Viewed 55

I'm making an app for windows using MAUI Blazor, this app doesn't have the windows default title bar, I created a custom title bar.

Because of this title bar removal my MAUI application window cannot be dragged.

In WPF, DragMove() was used

I tried using appWindow.Move, but without success.

Does anyone know what I can use to make the MAUI app draggable?

My custom bar Blazor:

<div class="bg-default w-full h-3 fixed" @onmousedown="@MoveWindow">
 ....
</div>
0 Answers
Related