-
-
Notifications
You must be signed in to change notification settings - Fork 153
/
Copy pathPizzaPage.ux
54 lines (45 loc) · 2.08 KB
/
PizzaPage.ux
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<Page ux:Class="PizzaPage">
<DockPanel ux:Class="PizzaType" Padding="5">
<string ux:Property="Title"/>
<string ux:Property="Ingredients"/>
<Selectable Value="{ReadProperty this.Title}"/>
<Rectangle Layer="Background" CornerRadius="5" Color="#FFF" ux:Name="TheBack">
</Rectangle>
<Image Dock="Right" File="Assets/checkmark.png" Color="#060" ux:Name="TheCheck"
Visibility="Hidden" Width="20"/>
<Text FontSize="30" Dock="Top" Value="{ReadProperty this.Title}"/>
<Text FontSize="12" Value="{ReadProperty this.Ingredients}"/>
<WhileSelected>
<Change TheBack.Color="#AFA" Duration="0.2"/>
<Change TheCheck.Visibility="Visible"/>
</WhileSelected>
<Tapped>
<ToggleSelection/>
</Tapped>
</DockPanel>
<Selection MinCount="1" MaxCount="1" ux:Name="PizzaSel"/>
<DockPanel>
<Label Dock="Top" Value="Select one of our delicious wood stove pizzas" Margin="5"/>
<ScrollView>
<StackPanel ItemSpacing="5" Color="#CCC" Padding="10">
<PizzaType Title="Margherita" Ingredients="Mozarella, Basil, Tomatoes"/>
<PizzaType Title="Romana" Ingredients="Tomatoes, Mushrooms, Salami"/>
<PizzaType Title="Compagna" Ingredients="Ham, Mozarella, Peppers, Mushrooms"/>
<PizzaType Title="Capricciosa" Ingredients="Ham, Salami, Olives, Artichokes, Mushrooms"/>
<PizzaType Title="Quattro formaggi" Ingredients="Mozarella, Gruyere, Parmesan, Blue Cheese"/>
<PizzaType Title="Frutti di Mare" Ingredients="Mozarella, Seafood"/>
<PizzaType Title="Europa" Ingredients="Tuna, Egg, Spinach"/>
<PizzaType Title="Rucola" Ingredients="Tomatoes, Mozarella, Rucola, Peppers"/>
<PizzaType Title="Diavola" Ingredients="Salami, Hot Peppers, Rucola, Cheddar"/>
<PizzaType Title="Toscana" Ingredients="Eggplant, Onions, Corn"/>
</StackPanel>
</ScrollView>
<WhileString Value="{ReadProperty PizzaSel.Value}" Test="IsNotEmpty">
<Change TheNext.Visibility="Visible"/>
</WhileString>
<PizzaButton Dock="Bottom" Alignment="BottomRight" Text="Choose Toppings"
Visibility="Hidden" ux:Name="TheNext">
<Clicked><GoBack/></Clicked>
</PizzaButton>
</DockPanel>
</Page>