-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FlyoutShowOptions
#9582
Comments
FWIW I didn't include
|
There was idea to do the opposite - and remove current flyout placement property (or deprecate it) and introduce flexible Popup properties instead - including offsets and anchor. |
If the Popup positioning properties could still be set on the Flyout as attached properties I guess I would be OK with it. My instinct would be to include the same properties in both Flyout and Popup though for simplicity. Popup long term really should be more of a primitive and not used directly in apps too. |
I'd be against that. Flyouts are really meant as a convenience wrapper around popups (over-simplification), with Extending the current API may be appropriate, though. Offsets I could see being potentially useful and maybe the ConstraintAdjustment. But honestly, FlyoutPlacementMode really covers a lot of cases, how often do you need even more control over that other than showing a specific point on screen/the cursor (this probably should be addressed, if possible) - and if you do, you're probably building a custom control where you probably should use a popup with maximum control. Also, WinUI extended their |
But unfortunately, with current Flyout it's not possible to set Offset property at minimum. That's the biggest point of inflexibility of this control. Other popup properties...not so sure.
That's Wayland-like API
The simplest example - add flyout to the button with Placement=Bottom, but move it slightly by 4px down adding a padding. Sounds like a typical designing task, but harder to achieve with flyouts. |
These changes should be discussed together with another issue - #9583 , @kekekeks. Also, I had an idea of extending Flyout to support native menus. So, developers could easily set |
Would be nice to port UWPs
FlyoutShowOptions
that allows to control exact position where the flyout opens.The text was updated successfully, but these errors were encountered: