UXDivers / Grial-UI-Kit-Support

This is our public repository for customers to report bugs about Grial UI Kit for Xamarin Forms
61 stars 26 forks source link

Drawer: unable to change the default StopPosition #872

Open happyfr34k opened 1 month ago

happyfr34k commented 1 month ago

Description

The drawer always starts with the smallest StopPosition.

But sometimes you want the drawer to open at a different position. For example, if you have StopPositions="80, .5, " and you would like the drawer to be presented by default on the second stop position (.5*), it's impossible.

There's no method or property that allows you to do this. Even if you add other DrawerItems or change the order into the StopDefinitions, it's always the smallest open that comes first.

A method or writable CurrentPositionIndex property could fix the problem.

happyfr34k commented 1 month ago

Workaround found with the Drawer ChangePosition method. But this method can only be called after the Drawer IsVisible and rendered, which isn't very convenient...