dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.23k stars 1.76k forks source link

SwipeView should Notify on Closing/Closed state. #15227

Open rctec-at opened 1 year ago

rctec-at commented 1 year ago

Description

Currently i can detect the opening of the left and right swipe items. But i can not detect if the user did close the swipeview. This cuts out a lot of possibilities for this controls and should be available through eigher a event, command or property.

Public API Changes

var swipeView = new SwipeView;

//example event: swipeView.OpenChanged += (object sender, SwipeOpenChangedEventArgs args) => { var state = args.IsOpen; }

//example command swipeView.OpenChangedCommand = new Command(bool isOpen)=> { var state = args.IsOpen; }

//example property var state = swipeView.IsOpen //getter only property

Intended Use-Case

We intent to use it for different cases:

ghost commented 1 year ago

We've added this issue to our backlog, and we will work to address it as time and resources allow. If you have any additional information or questions about this issue, please leave a comment. For additional info about issue management, please read our Triage Process.