How to set width of a FlyoutPage.Flyout?

stcmz 20 Reputation points
2023-02-03T00:36:33.8733333+00:00

In Shell we have the FlyoutWidth property but in FlyoutPage I cannot find anything similar.

I tried WidthRequest on the FlyoutPage.Flyout page and some other fields but none of them worked.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,861 questions
{count} votes

Accepted answer
  1. Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 35,291 Reputation points Microsoft Vendor
    2023-02-06T07:14:27.8466667+00:00

    Hello,

    Generally, for cross-platform UI classes, we use handlers for handling on MAUI, please refer to Handlers.

    For FlyoutPage, its corresponding handler is FlyoutViewHandler.

    However, in my tests, I found that setting the width still doesn't work for Android and Windows platforms, and MAUI hasn't implemented this handler for iOS. Here is the source code: FlyoutViewHandler.iOS.cs.

    Therefore, it is more recommended to post your issue on GitHub to make our product group aware of it, or use Shell.Flyout to implement this feature.

    Best Regards,

    Alec Liu.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

0 additional answers

Sort by: Most helpful