Skip to content

Is there any way to move the window after extending the client area to title bar? #6013

Answered by hez2010
hez2010 asked this question in Q&A
Discussion options

You must be logged in to vote

Solved with

private void Window_PointerPressed(object sender, PointerPressedEventArgs args)
{
    var pointer = args.GetCurrentPoint(this);
    if (pointer.Position.Y < 20 && pointer.Pointer.Captured is Border)
    {
        BeginMoveDrag(args);
    }
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@MarchingCube
Comment options

Answer selected by hez2010
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants