- zzh123456789
- Posts: 4
- Joined:
how to know mouse/touch hit on the noesis gui?
I use easytouch and noesis both. when press on the gui, I want to ignore easytouch handle. but I dont know how to test if current mouse/touch hit on the noesis gui?
-
sfernandez
Site Admin
- Posts: 2984
- Joined:
Re: how to know mouse/touch hit on the noesis gui?
You can use VisualTreeHelper.HitTest static method to determine if mouse/touch position is over any UI element.
Code: Select all
HitTestResult hit = VisualTreeHelper.HitTest(VisualTreeHelper.GetRoot(anyUIElement), mousePos);
if (hit.VisualHit != null)
{
// mouse is over a UI element
}
Who is online
Users browsing this forum: No registered users and 86 guests