xamarin.shell

Xamarin Forms Shell TitleView does not center image

我的未来我决定 提交于 2021-02-05 07:57:06
问题 I have an app that uses the new Shell in Xamarin.Forms. I added the following code to one of my pages in an attempt to use the TitleView area to display my app header image centered. (FYI - I have tried Center for both of the alignment options and it made no difference.) <Shell.TitleView> <Image Source="UCIApp.png" HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" /> </Shell.TitleView> What I get after doing this is the image in the title bar but centered in the space the

Is there a way to stop longer Xamarin Shell tab titles being truncated?

会有一股神秘感。 提交于 2020-07-01 23:33:24
问题 I'm doing some testing with the Tab Bar in Xamarin Shell. If the tab's title is too long it gets truncated even though there is clearly more than enough room to show the whole title. Is there a way to stop the text being truncated? In the example in the images I've attached, this happens only when the tab is selected because of the font size increase. But can happen even when the tab is unselected if the title is long enough. Longer title fitting on unselected tab. Longer title being

Setting a default page in the Xamarin.Forms shell menu

自作多情 提交于 2020-01-25 10:18:27
问题 Using the Xaminals example, I'm trying to set the default startup page. Here's the relevant code from the xaml: <FlyoutItem Route="animals" x:Name="shellAnimals" Title="Animals" FlyoutDisplayOptions="AsMultipleItems"> <Tab Title="Domestic" x:Name="shellDomestic" Route="domestic" Icon="paw.png"> <ShellContent Route="cats" x:Name="shellCats" Style="{StaticResource DomesticShell}" Title="Cats" Icon="cat.png" ContentTemplate="{DataTemplate views:CatsPage}" /> <ShellContent Route="dogs" x:Name=