IsHitTestVisible has no effect?
Hi, I create a UserControl, for touch input, I set the 2nd Ellipse's IsHitTestVisible to false, but sesms no effect, the first Ellipse can not revice TouchDown event, when I touch down 2nd Ellipse
Code: Select all
<UserControl x:Class="GameGUI.VirtualJoystick"
x:Name="VirtualJoystickControl"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:GameGUI"
mc:Ignorable="d"
d:DesignHeight="300" d:DesignWidth="300">
<Canvas x:Name="CanvasPanel" HorizontalAlignment="Center" VerticalAlignment="Center" RenderTransformOrigin="0.5,0.5" Margin="150">
<Ellipse x:Name="UIBackground" Fill="#FF1E9119" Height="300" Width="300" Canvas.Left="0" Canvas.Top="0" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="-150,-150,4,0" RenderTransformOrigin="0.5,0.5"/>
<Ellipse x:Name="Thumb" Fill="#FFBD3D3D" Width="100" Height="100" Canvas.Left="{Binding ThumbOffset.X}" Canvas.Top="{Binding ThumbOffset.Y}" IsHitTestVisible="False" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="-50,-50,0,0" RenderTransformOrigin="0.5,0.5" />
</Canvas>
</UserControl>
Re: IsHitTestVisible has no effect?
It's a bug in WPF that Noesis is keeping for compatibility. http://www.noesisengine.com/forums/sear ... estvisible
I think there should be an option to run Noesis with the bug fix. Or just fix it.
I think there should be an option to run Noesis with the bug fix. Or just fix it.
-
sfernandez
Site Admin
- Posts: 2991
- Joined:
Re: IsHitTestVisible has no effect?
The problem described by UE4 is a different thing from what we were discussing in BETA: NoesisGUI v2.1.0rc3 topic.It's a bug in WPF that Noesis is keeping for compatibility. http://www.noesisengine.com/forums/sear ... estvisible
I think there should be an option to run Noesis with the bug fix. Or just fix it.
Touch events should be aware of IsHitTestVisible property and skip those elements.
This is a bug in our touch implementation, I was able to reproduce it.
Could you please report it in our bugtracker?
Who is online
Users browsing this forum: Bing [Bot], Google [Bot], Semrush [Bot] and 34 guests