how can I have a fixed size TitleView in windows?

Miguel Angel Barrera Muñoz 1 Reputation point
2023-11-27T10:05:45.2733333+00:00

If I add a title view with a height, the "See more" buttons appear and when I click on it, it expands the height. I want it to always be that height and not expand.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,207 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 38,911 Reputation points Microsoft Vendor
    2023-11-28T07:49:12.09+00:00

    Hello,

    There is no API in MAUI that allows you to change the height of the default TitleView.

    After testing, this behavior is the same as in Xamarin.Forms. Xamarin's documentation explains why clipping occurs:

    On iOS and the Universal Windows Platform (UWP), the height of the navigation bar can't be changed, and so clipping will occur if the view displayed in the navigation bar is larger than the default size of the navigation bar. However, on Android, the height of the navigation bar can be changed by setting the NavigationPage.BarHeight bindable property to a double representing the new height.

    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