-
Notifications
You must be signed in to change notification settings - Fork 0
/
SeguePage.xaml
31 lines (29 loc) · 1.2 KB
/
SeguePage.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?xml version="1.0" encoding="UTF-8"?>
<ContentPage
xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:s="clr-namespace:Xamarin.Forms.Segues;assembly=Xamarin.Forms.Segues"
xmlns:sys="clr-namespace:System;assembly=mscorlib"
xmlns:local="using:Sample"
x:Class="Sample.SeguePage">
<ContentPage.BindingContext>
<local:SegueModel />
</ContentPage.BindingContext>
<StackLayout Orientation="Vertical" Spacing="0">
<!-- You specify segue destination using CommandParameter.
The simplest is to use a Type... -->
<Button
Text="Push to native (iOS only)"
Command="{s:Segue Push}"
CommandParameter="{x:Type local:NativeSegueDest}" />
<Label Text=" Segue to a Forms Page" BackgroundColor="LightGray" />
<ListView SelectedItem="{Binding Action, Mode=TwoWay}">
<ListView.ItemsSource>
<sys:Enum x:FactoryMethod="GetValues" x:Arguments="{x:Type s:NavigationAction}" />
</ListView.ItemsSource>
</ListView>
<Label Text=" Segue Type" BackgroundColor="LightGray" />
<ListView ItemsSource="{Binding TypeNames}" SelectedItem="{Binding Type, Mode=TwoWay}" />
<Button Text="Execute Segue" Clicked="Handle_Clicked" />
</StackLayout>
</ContentPage>