in your example “Overlay Menu” a new Panel gets triggered after the plus button is clicked. While this “new” black panel is open I am still able to navigate all elements behind this panel and can not interact with the elements displayed in the “new” black triggered panel.
How can I disable the background navigation?
And interact with all element within the “new” panel only?
How is it possible to set a trigger which gets activated, by tapping into the background of the “new” black panel, which then animates the new “black” panel backwards? -> Same animation as clicking onto the bottom x Button…
I just inserted two fuse Switches (One native) into the first previewed page + a Scroll View.
The native Button even gets displayed fully, after the “new” black panel lies above it? How is this possible?
Her is the link of the two buttons, which I inserted into the first previewed page (MainView.ux).
The rest of the code is identical to your example.
I just inserted two fuse Switches (One native) into the first previewed page + a Scroll View. The native Button even gets displayed fully, after the “new” black panel lies above it? How is this possible?
Fuse supports two different UI modes: native and graphics. By default your <App> is in graphics mode. <NativeViewHost> switches to native mode for a subtree, and <GraphicsView> switches back to graphics.
Each <NativeViewHost> creates an always-on-top layer on top of the underlaying GraphicsView. OpenGL and native controls cannot share layers, unfortunately. There are a few strategies to solve this:
Go “all native” by putting <NativeViewHost> directly in your <App> containing everything. This creates a completely native app. This can make advanced animations slower and won’t support all features.
Use RenderToTexture="true" on the NativeViewHost. This however disables interaction with the control, so you would need to <Change that property at the right times to enable interaction with it when active.
The real issue is that, the navigation of the beneath lying elements (MainView.ux) is still possible even if the “new” black panel lies above it?
As questioned above:
How can I disable the background navigation?
And only interact with all element within the “new” panel only?
Hi!
I’m assuming that the navigation you’re talking about is something you’ve added to the example yourself? As far as I know the example you’re referring to doesn’t have any other interactions at all, except for the button that opens and closes the the menu.
Anyway, to temporarily “disable” interaction with the controls in the background you can simply make sure that they are covered by a panel which consumes any user input. Here’s a simple example:
When you click the green circle it brings in our submenu. The outermost panel of the submenu, the one we’ve called otherPanel, completely covers the stuff in the background so that you can no longer interact with the red rectangle or the green circle.
When you click inside the blue rectangle of the submenu it is dismissed and everything is back to the initial state.