winrt xaml - Edge manipulation detection in fullscreen mode is not working as expected in UWP app -


i have situation manipulation events emanating offscreen (think bezel of surface pro) not being registered when app in fullscreen mode. however, registering expected when application "maximized" (i put in quotes because know it's no longer officially "thing" maximized).

to reproduce, create blank application , add code @ end of post.

swipe top down, , notice absence of manipulation events being fired. click exit full screen button maximize button , repeat experiment, , see manipulation events fire.

it important start dragging offscreen.

is design? there gotcha i'm not aware of? bug?

the following xaml file:

<page x:class="edgeswipedetect.mainpage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="using:edgeswipedetect" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:ignorable="d">  <grid background="green"       manipulationmode="translateinertia,translatey"       manipulationstarted="grid_manipulationstarted"       manipulationcompleted="grid_manipulationcompleted"       manipulationdelta="grid_manipulationdelta" />  </page> 

code behind:

    public sealed partial class mainpage : page {     public mainpage()     {         this.initializecomponent();          coreapplicationviewtitlebar coretitlebar = coreapplication.getcurrentview().titlebar;         coretitlebar.extendviewintotitlebar = true;          var appview = windows.ui.viewmanagement.applicationview.getforcurrentview();         appview.tryenterfullscreenmode();     }      private void grid_manipulationstarted(object sender, manipulationstartedroutedeventargs e)     {         debug.writeline("manipulationstarted");     }      private void grid_manipulationcompleted(object sender, manipulationcompletedroutedeventargs e)     {         debug.writeline("manipulationcompleted");     }      private void grid_manipulationdelta(object sender, manipulationdeltaroutedeventargs e)     {         debug.writeline("manipulationdelta");     } } 


Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

reactjs - React router and this.props.children - how to pass state to this.props.children -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -