Issue with Pen input in DirectX and Xaml interop scenario RRS feed

  • Question

  • Hi,

    I have a simple SwapChainBackgroundPanel setup with few xaml elements inside it.

    <SwapChainBackgroundPanel x:Name="DxPanel">
    			<ColumnDefinition Width="100" />
    			<ColumnDefinition />
    		<Grid Background="#444">
    			<StackPanel Margin="0,50">
    				<Button Content="X123" />
    				<ListBox Margin="0, 30">
    					<ListBoxItem Content="111" />
    					<ListBoxItem Content="222" />
    					<ListBoxItem Content="333" />

    I handle the pointer events on the SwapChainBackgroundPanel (SCBP) and use them to do changes on the DirectX surface. Everything works fine with mouse and touch, however there is an issue with the Pen input:

    If I press/move the pen over the SCBP, release (but keep the pen in range) and move over the xaml part - then any pen interaction (pointer over, press, etc.) is not detected by the xaml components.

    You can check this isolated scenario ( http://sdrv.ms/H3vRLp ) with the following steps:

    1. Unzip and run InputIssue.sln, Set InputIssue as StartUp Project

    2. Compile and run on device with Pen input (Surface Pro)

    3. Press and Move the pen over the empty area on the right

    4. Release but keep the pen in range (you have to see the little black&white dot indicator)

    5. While the pen is in range move it over the left part where the xaml controls are. Try to press the button or to select an item from the ListBox

    In my tests (on Surface Pro with Windows 8.1 RTM) the xaml controls do not respond to any input in step 5). Only if the pen is moved out of range (~1.5 inch) and back in, then the controls start to respond.

    Can you reproduce this issue? If you can, is this a known issue and is there a workaround?


    • Edited by Nik.Z Friday, October 18, 2013 6:39 AM
    Thursday, October 17, 2013 4:27 PM


All replies