microsoft / microsoft/microsoft-ui-xaml

Programmatic control of the SwipeControl

Open
#10,916 1 comment 0 reactions 0 assignees View on GitHub
area-SwipeControl feature proposal
Dominant language
C++
Stars
8.4k
Forks
942
Avg merge
2d 7h
Merged PRs (30d)
105

Description

### Issue type

enhancement

### Which version of the app?

WinUI 3 Gallery

### Description

Please add some public Apis that allow for programmatically hiding/showing the control's various Items. I would like to be able to, in code, execute something like swipeControl.Open(SwipeSide.Right) and have the SwipeControl pretend that the User just swiped to the left to open the control's RightItems.

### Screenshots

_No response_

### Windows version

_No response_

### Additional context

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by locating the SwipeControl implementation and its existing LeftItems and RightItems behavior. Review how the control currently responds to user swipes, then determine the public API needed to open or hide each side programmatically; done means callers can invoke the requested behavior in code and the control matches the corresponding user gesture.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
desktop
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.