Adding a swipe gesture to open SplitView Pane

后端 未结 2 1446
眼角桃花
眼角桃花 2020-12-02 07:58

I am trying to add a swipe gesture to the SplitView control (aka \"hamburger menu\") of UWP, similar to the swipe left/right of a Pivot control. How can I set a gesture to c

2条回答
  •  無奈伤痛
    2020-12-02 08:50

    Well, vsm is used in making Responsive UI in that blog. To add a swipe gesture in SplitView, here's what I did:

    • Detect gesture on your root panel of SplitView's Content, and add some Manipulatioin involved event handler of it.
    • Handle SplitView's IsPaneOpen property in Manipulation event.

提交回复
热议问题