This repository has been archived by the owner on Dec 11, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Home.xaml
193 lines (188 loc) · 11.8 KB
/
Home.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
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
<phone:PhoneApplicationPage
x:Class="Cloudsdale.Home"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
xmlns:mycontrols="clr-namespace:Cloudsdale.Controls"
mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="768"
FontFamily="Segoe WP"
FontSize="28"
Foreground="Black"
SupportedOrientations="Portrait" Orientation="Portrait"
shell:SystemTray.IsVisible="True"
shell:SystemTray.Opacity="0" shell:SystemTray.ForegroundColor="#FF1A91DB"
shell:SystemTray.BackgroundColor="Black">
<toolkit:TransitionService.NavigationInTransition>
<toolkit:NavigationInTransition>
<toolkit:NavigationInTransition.Backward>
<toolkit:SlideTransition Mode="SlideRightFadeIn" />
</toolkit:NavigationInTransition.Backward>
<toolkit:NavigationInTransition.Forward>
<toolkit:SlideTransition Mode="SlideLeftFadeIn" />
</toolkit:NavigationInTransition.Forward>
</toolkit:NavigationInTransition>
</toolkit:TransitionService.NavigationInTransition>
<toolkit:TransitionService.NavigationOutTransition>
<toolkit:NavigationOutTransition>
<toolkit:NavigationOutTransition.Backward>
<toolkit:SlideTransition Mode="SlideRightFadeOut" />
</toolkit:NavigationOutTransition.Backward>
<toolkit:NavigationOutTransition.Forward>
<toolkit:SlideTransition Mode="SlideLeftFadeOut" />
</toolkit:NavigationOutTransition.Forward>
</toolkit:NavigationOutTransition>
</toolkit:TransitionService.NavigationOutTransition>
<phone:PhoneApplicationPage.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="XamlResources.xaml" />
</ResourceDictionary.MergedDictionaries>
<DataTemplate x:Key="CloudsTemplate">
<Button Click="CloudClick" DataContext="{Binding}" Style="{StaticResource XTiltButtonStyle}"
HorizontalAlignment="Left" BorderBrush="Transparent" Padding="-10">
<StackPanel Orientation="Horizontal" HorizontalAlignment="Left">
<Image Source="{Binding Path=avatar.Preview}" Width="50" Height="50" Margin="0,0,5,0"
VerticalAlignment="Top"/>
<StackPanel Width="400">
<TextBlock Text="{Binding name}" Foreground="Black" FontSize="30" FontFamily="Segoe WP" />
<TextBlock Text="{Binding description, Converter={StaticResource Trim}}"
Foreground="#f777" FontSize="26" FontFamily="Segoe WP" TextWrapping="Wrap"/>
</StackPanel>
</StackPanel>
</Button>
</DataTemplate>
</ResourceDictionary>
</phone:PhoneApplicationPage.Resources>
<Grid x:Name="LayoutRoot" Background="{StaticResource PortraitBackgroundChat}" Margin="0,0,0,0">
<controls:Pivot Title="Cloudsdale" Name="pivotView" Margin="0,10,0,0" Foreground="{StaticResource PhoneChromeBrush}">
<controls:Pivot.HeaderTemplate>
<DataTemplate>
<TextBlock Text="{Binding}" FontFamily="Segoe WP" FontSize="48" Foreground="{StaticResource PhoneChromeBrush}"/>
</DataTemplate>
</controls:Pivot.HeaderTemplate>
<controls:PivotItem Header="home" Foreground="#FF2A81DB">
<Grid x:Name="UserInfoPane" Margin="0,-20,0,0">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<StackPanel Orientation="Horizontal">
<Image Source="{Binding Path=avatar.Normal}" Width="100" Height="100"
HorizontalAlignment="Left" VerticalAlignment="Top"/>
<StackPanel>
<TextBlock Margin="10,0,0,0" Foreground="#FF202020">
<Run Text="{Binding Path=name}" />
</TextBlock>
<Button Content="Logout" Margin="0"
HorizontalAlignment="Left" VerticalAlignment="Top" FontSize="20" Click="LogoutClick" />
</StackPanel>
</StackPanel>
<mycontrols:CloudTileManager Grid.Row="1" x:Name="CloudList" Margin="0,5,0,0" Loaded="CloudListLoaded"
CloudClicked="CloudClicked"/>
</Grid>
</controls:PivotItem>
<controls:PivotItem Header="explore" Foreground="Black">
<Grid>
<Grid Margin="-12,-26,-12,-30" Height="110" VerticalAlignment="Top">
<TextBox VerticalAlignment="Top" Margin="0,0,75,0" BorderBrush="#888888" Name="SearchQuery" />
<Button VerticalAlignment="Top" HorizontalAlignment="Right"
BorderBrush="Transparent" Margin="0,-9"
Style="{StaticResource XTiltButtonStyle}"
Click="SearchClick">
<Image Source="/Images/Icons/search.png" Width="50" />
</Button>
</Grid>
<ScrollViewer Margin="0,54,0,50">
<StackPanel Name="ExplorePanel">
<Button Visibility="{Binding Path=CanCreateCloud, Converter={StaticResource BoolToVis}}" Click="CreateCloudClick">Create Cloud</Button>
<ItemsControl x:Name="searchResults" ItemTemplate="{StaticResource CloudsTemplate}" />
</StackPanel>
</ScrollViewer>
<Button VerticalAlignment="Bottom" HorizontalAlignment="Left" Content="Popular"
Width="175" Margin="50,-8"
Click="PopularClick" />
<Button VerticalAlignment="Bottom" HorizontalAlignment="Right" Content="Recent"
Width="175" Margin="50,-8"
Click="RecentClick" />
</Grid>
</controls:PivotItem>
<controls:PivotItem Header="settings">
<Grid>
<ScrollViewer Foreground="#3a3a3a">
<StackPanel Name="SettingsPanel">
<Button Click="AboutClick">About</Button>
<TextBlock>Font</TextBlock>
<toolkit:ListPicker Name="FontPicker" SelectionChanged="FontPickerSelectionChanged" />
<TextBlock>Color Scheme</TextBlock>
<toolkit:ListPicker Name="ThemePicker" SelectionChanged="ThemePickerSelectionChanged">
<toolkit:ListPickerItem>My Phone's Color</toolkit:ListPickerItem>
<toolkit:ListPickerItem>Blue</toolkit:ListPickerItem>
<toolkit:ListPickerItem>Dark Blue</toolkit:ListPickerItem>
<toolkit:ListPickerItem>Black</toolkit:ListPickerItem>
</toolkit:ListPicker>
<TextBlock>Status</TextBlock>
<toolkit:ListPicker Name="StatusBox" SelectionChanged="StatusSelectionChanged">
<toolkit:ListPickerItem>Online</toolkit:ListPickerItem>
<toolkit:ListPickerItem>Away</toolkit:ListPickerItem>
<toolkit:ListPickerItem>Busy</toolkit:ListPickerItem>
<toolkit:ListPickerItem>Appear Offline</toolkit:ListPickerItem>
</toolkit:ListPicker>
<Button Click="ChangeAvatarClick">Change Avatar</Button>
<TextBlock>Name</TextBlock>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<TextBox Name="Username" Text="{Binding Path=name, Mode=OneWay}"
InputScope="PersonalFullName"/>
<Button Click="ChangeNameClick" Grid.Column="1" Name="UsernameBtn">Change</Button>
</Grid>
<TextBlock>Email</TextBlock>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<TextBox Name="Email" Text="{Binding Path=email, Mode=OneWay}"
InputScope="EmailNameOrAddress"/>
<Button Click="ChangeEmailClick" Grid.Column="1" Name="EmailBtn">Change</Button>
</Grid>
<TextBlock>Skype Name</TextBlock>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<TextBox Name="Skype" Text="{Binding Path=skype_name, Mode=OneWay}"
InputScope="EmailNameOrAddress"/>
<Button Click="ChangeSkypeClick" Grid.Column="1" Name="SkypeBtn">Change</Button>
</Grid>
<TextBlock>Password</TextBlock>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<PasswordBox Name="NewPassword"/>
<Button Click="ChangePasswordClick" Grid.Column="1" Name="NewPasswordBtn">Change</Button>
</Grid>
<CheckBox x:Name="allowaltcodes" Content="Enable alt code entry"
Checked="AllowaltcodesChecked" Foreground="#3a3a3a"
Unchecked="AllowaltcodesUnchecked" Visibility="Collapsed"/>
<CheckBox x:Name="recursivealtcodes" Content="Enter codes repeatedly"
Margin="50,-20,0,0" Visibility="Collapsed"
Checked="RecursivealtcodesChecked" Foreground="#3a3a3a"
Unchecked="RecursivealtcodesUnchecked"/>
</StackPanel>
</ScrollViewer>
</Grid>
</controls:PivotItem>
</controls:Pivot>
</Grid>
</phone:PhoneApplicationPage>