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
/
EditCloud.xaml
101 lines (97 loc) · 5.96 KB
/
EditCloud.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
<phone:PhoneApplicationPage
x:Class="Cloudsdale.EditCloud"
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:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
FontFamily="Segoe WP"
FontSize="26"
Foreground="Black"
SupportedOrientations="Portrait" Orientation="Portrait"
mc:Ignorable="d" d:DesignHeight="768" d:DesignWidth="480"
shell:SystemTray.IsVisible="True" shell:SystemTray.Opacity="0"
shell:SystemTray.ForegroundColor="White" 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>
<Grid x:Name="LayoutRoot" Background="{StaticResource PortraitBackground}">
<StackPanel VerticalAlignment="Top" Margin="0">
<TextBlock Foreground="White" FontSize="44" Margin="5,0">Edit</TextBlock>
<TextBlock Text="{Binding Path=name}" Foreground="White" FontSize="40" Width="450" Margin="10,0,0,0" />
</StackPanel>
<ScrollViewer Margin="0,114,0,0">
<StackPanel Margin="10,0">
<StackPanel Orientation="Horizontal">
<Image Source="{Binding Path=avatar.Normal}" Width="100" Height="100" />
<Button Click="ChangeAvatarClick">Change Avatar</Button>
</StackPanel>
<TextBlock FontSize="32" DoubleTap="NameTap">Title</TextBlock>
<Grid Margin="0,5,0,10">
<TextBlock Text="{Binding Path=name}" Name="CloudNameText" DoubleTap="NameTap" />
<TextBox Text="{Binding Path=name}" Name="CloudNameBox" Visibility="Collapsed" Width="460"
DoubleTap="StackPanelTap" KeyDown="CloudNameBoxKeyDown" />
</Grid>
<TextBlock FontSize="32" DoubleTap="DescriptionTextDoubleTap">Description</TextBlock>
<Grid Margin="0,5,0,10">
<TextBlock Text="{Binding Path=description}" Name="DescriptionText" DoubleTap="DescriptionTextDoubleTap"
Width="460" TextWrapping="Wrap" />
<TextBox Text="{Binding Path=description}" AcceptsReturn="True" MinHeight="240" Width="460" Name="DescriptionBox"
Visibility="Collapsed" TextWrapping="Wrap" DoubleTap="StackPanelTap"/>
</Grid>
<TextBlock FontSize="32" DoubleTap="StackPanelTap">Rules</TextBlock>
<Grid Margin="0,5,0,10">
<TextBlock Text="{Binding Path=rules}" Name="RulesText" DoubleTap="RulesTextDoubleTap"
Width="460" TextWrapping="Wrap" />
<TextBox Text="{Binding Path=rules}" AcceptsReturn="True" MinHeight="240" Width="460" Name="RulesBox"
Visibility="Collapsed" TextWrapping="Wrap" DoubleTap="StackPanelTap"/>
</Grid>
<CheckBox Name="IsHidden" IsChecked="{Binding Path=hidden}" Visibility="Collapsed"
Unchecked="IsHiddenUnchecked" Foreground="Black">Hidden</CheckBox>
<ItemsControl ItemsSource="{Binding Path=FullMods}" Visibility="{Binding Path=ShowMods}">
<ItemsControl.ItemTemplate>
<DataTemplate>
<Grid Margin="5,5">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<Image Source="{Binding Path=avatar.Normal}" Width="50" />
<TextBlock Grid.Column="1" Text="{Binding Path=name}" VerticalAlignment="Center" Margin="5" />
<Button Style="{StaticResource XTiltButtonStyle}" Grid.Column="2"
Click="RemoveModeratorClick" BorderBrush="Transparent">
<Image Source="/Images/Icons/delete.png" Width="30" />
</Button>
</Grid>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
</StackPanel>
</ScrollViewer>
<Popup Name="Pullover">
<Grid Width="480" Height="800" Background="#7F000000">
<ProgressBar Name="UploadBar" IsIndeterminate="True" IsEnabled="False" />
</Grid>
</Popup>
</Grid>
</phone:PhoneApplicationPage>