I am currently trying to transport my WPF Control to UWP and am stuck at the PointerMoved event. While I was able to check the state of a Mousebutton in WPF and execute my code only if the state was true, I can't figure out the equivalent in UWP.
What I have in WPF
private void MyControl_MouseMove(object sender, MouseEventArgs e)
{
if (Mouse.LeftButton == MouseButtonState.Pressed)
{
//...
}
}
What I want in UWP
private void MyControl_PointerMoved(object sender, PointerRoutedEventArgs e)
{
if("PointerIsBeingPressed")
{
//...
}
}
Every answer or hint to do things differently is appreciated!