Clicking through layer

Hello guys, anyone knows how to click through Panel or GraphicsView even with
HitTestMode="None" it doesn’t work =(

Thanks!

This works just fine:

<App>
	<ClientPanel>
		<Panel Color="#5558" HitTestMode="None" />
		<Rectangle Color="#f00" Width="100" Height="100">
			<Clicked>
				<Scale Factor="2" Duration="0.15"/>
			</Clicked>
		</Rectangle>
	</ClientPanel>
</App>

Please provide some code that reproduces the problem you’re seeing.

Remi Pedersen wrote:

This works just fine:

<App>
	<ClientPanel>
		<Panel Color="#5558" HitTestMode="None" />
		<Rectangle Color="#f00" Width="100" Height="100">
			<Clicked>
				<Scale Factor="2" Duration="0.15"/>
			</Clicked>
		</Rectangle>
	</ClientPanel>
</App>

Please provide some code that reproduces the problem you’re seeing.

Hi, Remi!

Here it is

<NativeViewHost>
   <GraphicsView Width="100" Height="100">
       <Circle Color="Red" Width="100" Height="100" HitTestMode="None" />
   </GraphicsView>
   <MapView Width="100%" Height="100%" Latitude="55.7522222" Longitude="37.6155556" />
</NativeViewHost>

Have you tried setting the HitTestMode on the GraphicsView instead of on the Circle?

However, I would expect that the native MapView always ends up on top of the GraphicsView due to the layering restrictions of native vs. graphics?

Remi Pedersen wrote:

Have you tried setting the HitTestMode on the GraphicsView instead of on the Circle?

However, I would expect that the native MapView always ends up on top of the GraphicsView due to the layering restrictions of native vs. graphics?

Yes, I’ve tried <HitTestMode> on <GraphicsView> but nothing changed. =(

Which Fuse version are you using and which device(s) have you tested on?

Remi Pedersen wrote:

Which Fuse version are you using and which device(s) have you tested on?

Fuse version 0.26.0
iOS 10.02

I think there is a known restriction here. I don’t think you can do this.

However, Circle should work just fine without the GraphicsView. What are you trying to accomplish?

Anders Lassen wrote:

I think there is a known restriction here. I don’t think you can do this.

However, Circle should work just fine without the GraphicsView. What are you trying to accomplish?

Circle works fine. But it still dont clicking through =(

<App>
  <ClientPanel>
  <NativeViewHost HitTestMode="None">
   <Circle Color="Red" Width="100" Height="100" HitTestMode="None" />
   <MapView Width="100%" Height="100%" Latitude="55.7522222" Longitude="37.6155556" />
  </NativeViewHost>
  </ClientPanel>
</App>

I just tested on iOS and the conclusion is that it does indeed work in most cases (even when mixing GraphicsView and NativeViewHost like you’ve done here), but MapView specifically does not seem to receive the pointer events. The same problem occurs even when the Circle is not inside a GraphicsView.

Creating a ticket for this.

_Edit: Yes, exactly what Sergey wrote immediately before my post :slight_smile: _