Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature currently requires accessing the site using the built-in Safari browser.
void Room_MouseMove(object sender, MouseEventArgs e)
{
foreach (Unit unit in GroundGrid.Children)
{
unit.IsHitTestVisible = true;
}
List<UIElement> uiElementList = VisualTreeHelper.FindElementsInHostCoordinates(e.GetPosition(null), GroundGrid as Canvas) as List<UIElement>;
if (uiElementList != null)
foreach (UIElement uiElement in uiElementList)
{
if (uiElement is Unit)
{
Unit unit = (Unit)uiElement;
if (unit.IsTransparency(e.GetPosition(unit)) == true)
{
unit.IsHitTestVisible = false;
}
}
}
}