I have a TagVisualizer
covering the entire screen. Nested inside is a fullscreen ScatterView
. Inside one of my ScatterViewItems
is UserControl
which lists n amount of SurfaceTextBoxs
. The UserControl
and ScatterViewItems
are always visible.
E.g.
<TagVisualizer Panel.ZIndex="1">
<TagVisualizer.Definitions>
...
<TagVisualizer.Definitions>
<ScatterView Panel.ZIndex="2">
<ScatterViewItem />
<ScatterViewItem />
<ScatterViewItem >
<UserControl />
</ScatterViewItem>
...
</ScatterView>
</TagVisualizer>
The problem I have is when there is no tags being recognized on the table the Touch input works and the Keyboard pops up and functions correctly. However when there is a tag on the table being recognized the keyboard no longer focuses on the textblock and wont react to user touch input. I thought layering the content zindex would solve this but I was wrong...
What is frustrating is that my code works with the Surface Input Simulator tools but not on the device itself. (tag and touch tool options, not mouse).
- The tags are precisely cutout and do not appear as blobs / finger touches on the table.
- Dragging and dropping of content from scatterview to librarybars etc all work as intended.
- Other buttons and touch elements are all working as intended
- The Source for each tag is IsHitTestVisible=false and has no buttons etc (only a Ellipse which shows me where the tag is if being recognised)
- Only the keyboard functionality is not functioning as I thought it was intended.
I believe the reason behind this is due to that the Tag captures the Mouse context and won't let go and the default Keyboard functionality needs not the touch input but the single mouse event. How would I go about making the Keyboard work on a SurfaceTextBox
- Inside a UserControl
- when a Tag is being recognized?
I'm new to WPF
and this problem is causing me a minor headache...I have looked at the SDK examples and I cannot find a solution for this.. Is there something stupid I am doing or something simple not doing/have missed?
Any help would be appreciative :)