This commit is contained in:
Родитель
62b2bfdd3f
Коммит
54d6a6aeb8
|
@ -4,13 +4,7 @@
|
|||
x:Class="Xamarin.Forms.Sandbox.MainPage"
|
||||
xmlns:ios="clr-namespace:Xamarin.Forms.PlatformConfiguration.iOSSpecific;assembly=Xamarin.Forms.Core"
|
||||
ios:Page.UseSafeArea="true">
|
||||
|
||||
<NavigationPage.TitleView>
|
||||
<Grid>
|
||||
<Button Text="I am a Button" />
|
||||
</Grid>
|
||||
</NavigationPage.TitleView>
|
||||
<StackLayout>
|
||||
<Button Text="I am a Button" />
|
||||
<Button Text="I am a Button" Clicked="Button_Clicked" />
|
||||
</StackLayout>
|
||||
</ContentPage>
|
|
@ -16,5 +16,10 @@ namespace Xamarin.Forms.Sandbox
|
|||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
|
||||
void Button_Clicked(object sender, EventArgs e)
|
||||
{
|
||||
Navigation.PushModalAsync(new MainPage());
|
||||
}
|
||||
}
|
||||
}
|
|
@ -3,28 +3,11 @@
|
|||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||
x:Class="Xamarin.Forms.Sandbox.ShellPage"
|
||||
xmlns:ios="clr-namespace:Xamarin.Forms.PlatformConfiguration.iOSSpecific;assembly=Xamarin.Forms.Core"
|
||||
ios:Page.UseSafeArea="true">
|
||||
<!--<Shell.Resources>
|
||||
<StyleSheet Source="/Styles.css" />
|
||||
</Shell.Resources>-->
|
||||
<!--<Shell.FlyoutHeader>
|
||||
<StackLayout>
|
||||
<Button Text="I am a Button" />
|
||||
</StackLayout>
|
||||
</Shell.FlyoutHeader>-->
|
||||
ios:Page.UseSafeArea="true"
|
||||
xmlns:local="clr-namespace:Xamarin.Forms.Sandbox">
|
||||
<FlyoutItem Title="Sandbox">
|
||||
<Tab>
|
||||
<ShellContent>
|
||||
<ContentPage>
|
||||
<!--<Shell.TitleView>
|
||||
<StackLayout>
|
||||
<Button Text="I am a Button" />
|
||||
</StackLayout>
|
||||
</Shell.TitleView>-->
|
||||
<StackLayout>
|
||||
<Button Text="I am a Button" />
|
||||
</StackLayout>
|
||||
</ContentPage>
|
||||
<ShellContent ContentTemplate="{DataTemplate local:MainPage}">
|
||||
</ShellContent>
|
||||
</Tab>
|
||||
</FlyoutItem>
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 88577eac76e5a20fe1415ed0e67ac3e3d97bdd21
|
||||
Subproject commit 278c089f3ab63c0f5808adddea2bdd292daf11ad
|
Загрузка…
Ссылка в новой задаче