Universal Windows Platform (UWP)
A Microsoft platform for building and publishing apps for Windows desktop devices.
2,971 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi
How to disable pointer release event of relative panel control ?
I have a relative panel used as board game area ,sometime during the game i need to freeze the "game area" or disable pointer release event.
Thanks
Hello,
Welcome to Microsoft Q&A.
As a derived class of Panel, RelativePanel cannot disable Pointer related events. But you can stop it from bubbling in the PointerReleased event callback.
private void RelativePanel_PointerReleased(object sender, PointerRoutedEventArgs e)
{
e.Handled = true;
//TODO
}
Thanks.