嘿家伙我有一个程序,我现在在xamarin形式工作的一个xamarin形式是这样的: 如何设置选项卡2在启动选项卡页面设置为默认选项卡
当应用程序加载的朋友选项卡是加载的第一个选项卡,我应该如何将其设置为应用程序启动时要加载的第一个选项卡?
继承人我的XAML代码:
<?xml version="1.0" encoding="UTF-8"?>
<TabbedPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:AppName;assembly=AppName"
x:Class="AppName.HomePage">
<TabbedPage.Children>
<NavigationPage x:Name="Friends" Title="Friends" Icon="firendstab.png">
<x:Arguments>
<local:FriendPage />
</x:Arguments>
</NavigationPage >
<NavigationPage x:Name="Snap" Title="Snap" Icon="snaptab.png">>
<x:Arguments>
<local:CameraPage />
</x:Arguments>
</NavigationPage>
<NavigationPage x:Name="Notes" Title="Notes" Icon="notetab.png">
<x:Arguments>
<local:NotePage />
</x:Arguments>
</NavigationPage>
</TabbedPage.Children>
</TabbedPage>
继承人我的代码背后:在最近两天
using System;
using System.Collections.Generic;
using Xamarin.Forms;
namespace AppName
{
public partial class HomePage : TabbedPage
{
public HomePage()
{
InitializeComponent();
}
}
}
我搜索谷歌,所以我觉得是时候要问!
在此先感谢:)
非常感谢您的支持! – Phoneswapshop