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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
|
<Page
x:Class="App1.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:App1"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">
<Viewbox>
<Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}" Margin="10">
<Grid HorizontalAlignment="Center" VerticalAlignment="Center" Height="768" Margin="0,0,0,0" Width="1366" Background="Black" RenderTransformOrigin="-0.005,0.518"/>
<Grid x:Name="Output">
<StackPanel Orientation="Vertical" Margin="0,10,10,10" HorizontalAlignment="Center" Width="1366">
<StackPanel x:Name="topPanel" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center">
<Image x:Name="imgTop" Source="{Binding topImage}" Width="640" Margin="5,0,0,0" Height="496" VerticalAlignment="Center" />
<Canvas Width="670" Height="460">
<Canvas.Background>
<ImageBrush ImageSource="cornice.png" ></ImageBrush>
</Canvas.Background>
<ScrollViewer x:Name="scroller" Height="380" Width="670" Canvas.Top="40">
<TextBlock x:Name="testoTop" FontSize="35" Width="580" Height="600" TextAlignment="Center" TextWrapping="Wrap" Foreground="Wheat" Margin="40,0,40,40" Text="{Binding text}">
</TextBlock>
</ScrollViewer>
</Canvas>
</StackPanel>
<StackPanel x:Name="buttonPanel1" Visibility="Visible" HorizontalAlignment="Center" Margin="5,0,0,0">
<Button x:ConnectionId='12' x:Name="button11" Width="1320" Height="250" FontSize="100" Foreground="Black" >
<Button.Background>
<ImageBrush ImageSource="images/bkimag.jpg" />
</Button.Background>
<TextBlock x:Name="textB11" Text="{Binding bottoni[0].testo }" TextWrapping="Wrap" ></TextBlock>
</Button>
</StackPanel>
<StackPanel x:Name="buttonPanel2" Orientation="Horizontal" Visibility="Collapsed" HorizontalAlignment="Center" Margin="5,0,0,0">
<Button x:ConnectionId='10' x:Name="button21" Width="660" Height="250" FontSize="50" Foreground="Black" >
<Button.Background>
<ImageBrush ImageSource="images/bkimag.jpg" />
</Button.Background>
<TextBlock x:Name="textB21" Text="{Binding bottoni[0].testo }" TextWrapping="Wrap" ></TextBlock>
</Button>
<Button x:ConnectionId='11' x:Name="button22" Width="660" Height="250" FontSize="50" Foreground="Black" >
<Button.Background>
<ImageBrush ImageSource="images/bkimag.jpg" />
</Button.Background>
<TextBlock x:Name="textB22" Text="{Binding bottoni[1].testo }" TextWrapping="Wrap" ></TextBlock>
</Button>
</StackPanel>
<StackPanel x:Name="buttonPanel3" Orientation="Horizontal" Visibility="Collapsed" HorizontalAlignment="Center" Margin="5,0,0,0">
<Button x:ConnectionId='7' x:Name="button31" Width="440" Height="250" FontSize="30" Foreground="Black" >
<Button.Background>
<ImageBrush ImageSource="images/bkimag.jpg" />
</Button.Background>
<TextBlock x:Name="textB31" Text="{Binding bottoni[0].testo }" TextWrapping="Wrap" ></TextBlock>
</Button>
<Button x:ConnectionId='8' x:Name="button32" Width="440" Height="250" FontSize="30" Foreground="Black" >
<Button.Background>
<ImageBrush ImageSource="images/bkimag.jpg" />
</Button.Background>
<TextBlock x:Name="textB32" Text="{Binding bottoni[1].testo }" TextWrapping="Wrap" ></TextBlock>
</Button>
<Button x:ConnectionId='9' x:Name="button33" Width="440" Height="250" FontSize="30" Foreground="Black" >
<Button.Background>
<ImageBrush ImageSource="images/bkimag.jpg" />
</Button.Background>
<TextBlock x:Name="textB33" Text="{Binding bottoni[2].testo }" TextWrapping="Wrap" ></TextBlock>
</Button>
</StackPanel>
<StackPanel x:Name="buttonPanel4" Orientation="Vertical" Visibility="Collapsed" HorizontalAlignment="Center" Margin="5,0,0,0">
<StackPanel Orientation="Horizontal">
<Button x:ConnectionId='5' x:Name="button41" Width="660" Height="125" FontSize="18" Foreground="Black" >
<Button.Background>
<ImageBrush ImageSource="images/bkimag.jpg" />
</Button.Background>
<TextBlock x:Name="textB41" Text="{Binding bottoni[0].testo }" TextWrapping="Wrap" ></TextBlock>
</Button>
<Button x:ConnectionId='6' x:Name="button42" Width="660" Height="125" FontSize="18" Foreground="Black" >
<Button.Background>
<ImageBrush ImageSource="images/bkimag.jpg" />
</Button.Background>
<TextBlock x:Name="textB42" Text="{Binding bottoni[1].testo }" TextWrapping="Wrap" ></TextBlock>
</Button>
</StackPanel>
<StackPanel Orientation="Horizontal">
<Button x:ConnectionId='3' x:Name="button43" Width="660" Height="125" FontSize="18" Foreground="Black" >
<Button.Background>
<ImageBrush ImageSource="images/bkimag.jpg" />
</Button.Background>
<TextBlock x:Name="textB43" Text="{Binding bottoni[2].testo }" TextWrapping="Wrap" ></TextBlock>
</Button>
<Button x:ConnectionId='4' x:Name="button44" Width="660" Height="125" FontSize="18" Foreground="Black" >
<Button.Background>
<ImageBrush ImageSource="images/bkimag.jpg" />
</Button.Background>
<TextBlock x:Name="textB44" Text="{Binding bottoni[3].testo }" TextWrapping="Wrap" ></TextBlock>
</Button>
</StackPanel>
</StackPanel>
<!--<Border BorderBrush="Blue" BorderThickness="5" Width="1320" Height="260" Margin="0,-10,0,0">
</Border>-->
</StackPanel>
<Canvas x:Name="replay" Visibility="Collapsed">
<Canvas.Background>
<ImageBrush ImageSource="sfondoFine.png" Stretch="UniformToFill" />
</Canvas.Background>
<StackPanel Margin="0,100,0,0" Orientation="Vertical" Width="1366">
<TextBlock HorizontalAlignment="Center" FontSize="68" FontWeight="Bold" Foreground="Black">DO YOU WANT TO PLAY AGAIN?</TextBlock>
<StackPanel Margin="0,100,0,0" Orientation="Horizontal" HorizontalAlignment="Center">
<Button x:ConnectionId='1' x:Name="botSi" Width="500" Height="200" >
<TextBlock FontSize="70" Foreground="Wheat">YES</TextBlock>
</Button>
<Button x:ConnectionId='2' x:Name="botNo" Width="500" Height="200" >
<TextBlock FontSize="70" Foreground="Wheat">NO, QUIT</TextBlock>
</Button>
</StackPanel>
</StackPanel>
</Canvas>
</Grid>
</Grid>
</Viewbox>
</Page>
|