Open Agredo opened 2 years ago
Potentially fixed by https://github.com/dotnet/maui/pull/10768
We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.
Hello, i have the same problem. It seems that the TitleView always has the width of its content, so its not possible to center an image/logo in the TitleView, or do that what @Agredo wanted to do.
This is not fixed still.
Verified this issue with Visual Studio Enterprise 17.8.0 Preview 1.0. Can repro this issue with sample code.
Still an issue with VS 17.8.3
Only (very dirty!!!) workaround I found so far:
<NavigationPage.TitleView>
<Grid WidthRequest="{Binding Source={RelativeSource Self}, Path=Window.Width}">
</Grid>
</NavigationPage.TitleView>
Are there any updates on this? Seems the issue still persists in .NET8
Any updates on this?
Is this being worked on?
Only (very dirty!!!) workaround I found so far:
<NavigationPage.TitleView> <Grid WidthRequest="{Binding Source={RelativeSource Self}, Path=Window.Width}"> </Grid> </NavigationPage.TitleView>
Thanks for the workaround, I corrected it a bit for myself WidthRequest="{Binding Source={RelativeSource Self}, Path=Parent.Width}" or WidthRequest="{Binding Source={RelativeSource AncestorType={x:Type NavigationPage}}, Path=CurrentPage.Width}"
I am trying to port an app from XF with UWP to MAUI with WinUI3.
The Shell.TabView does not work correctly in MAUI. The content is not expanding horizontally. I can manually make the buttons wider but then its not more adaptive to the windows size.
Here is the copy and pasted Xamarin Forms code for the used NavigationPage.TitleView (The old project did not use Shell) `