forked from zcbenz/sbbs-client-wp7
-
Notifications
You must be signed in to change notification settings - Fork 0
/
LoginPage.xaml
74 lines (70 loc) · 4.1 KB
/
LoginPage.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
<phone:PhoneApplicationPage
x:Class="sbbs_client_wp7.LoginPage"
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: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"
mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="768"
d:DataContext="{d:DesignData SampleData/MainViewModelSampleData.xaml}"
FontFamily="{StaticResource PhoneFontFamilyNormal}"
FontSize="{StaticResource PhoneFontSizeNormal}"
Foreground="{StaticResource PhoneForegroundBrush}"
SupportedOrientations="PortraitOrLandscape" Orientation="Portrait"
shell:SystemTray.IsVisible="True"
toolkit:TiltEffect.IsTiltEnabled="True">
<toolkit:TransitionService.NavigationInTransition>
<toolkit:NavigationInTransition>
<toolkit:NavigationInTransition.Backward>
<toolkit:TurnstileTransition Mode="BackwardIn"/>
</toolkit:NavigationInTransition.Backward>
<toolkit:NavigationInTransition.Forward>
<toolkit:TurnstileTransition Mode="ForwardIn"/>
</toolkit:NavigationInTransition.Forward>
</toolkit:NavigationInTransition>
</toolkit:TransitionService.NavigationInTransition>
<toolkit:TransitionService.NavigationOutTransition>
<toolkit:NavigationOutTransition>
<toolkit:NavigationOutTransition.Backward>
<toolkit:TurnstileTransition Mode="BackwardOut"/>
</toolkit:NavigationOutTransition.Backward>
<toolkit:NavigationOutTransition.Forward>
<toolkit:TurnstileTransition Mode="ForwardOut"/>
</toolkit:NavigationOutTransition.Forward>
</toolkit:NavigationOutTransition>
</toolkit:TransitionService.NavigationOutTransition>
<!--LayoutRoot is the root grid where all page content is placed-->
<Grid x:Name="LayoutRoot" Background="Transparent">
<!--Pivot Control-->
<controls:Pivot x:Name="LoginPivot" Title="虎踞龙蟠BBS">
<!--Pivot item one-->
<controls:PivotItem Header="登录">
<StackPanel>
<TextBlock Style="{StaticResource PhoneTextSubtleStyle}" Text="用户名"/>
<TextBox x:Name="Username" IsEnabled="{Binding IsLogining, Converter={StaticResource BoolReverseConverter}}"/>
<TextBlock Style="{StaticResource PhoneTextSubtleStyle}" Text="密码"/>
<PasswordBox x:Name="Password" IsEnabled="{Binding IsLogining, Converter={StaticResource BoolReverseConverter}}"/>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<toolkit:PerformanceProgressBar IsIndeterminate="{Binding IsLogining}" Visibility="{Binding IsLogining, Converter={StaticResource BoolVisibleConverter}}"/>
<Button IsEnabled="{Binding IsLogining, Converter={StaticResource BoolReverseConverter}}"
Content="登录" HorizontalAlignment="Right" Grid.Column="1"
Click="Login_Click"/>
</Grid>
</StackPanel>
</controls:PivotItem>
<!--Pivot item two-->
<controls:PivotItem Header="注册">
<ScrollViewer>
<TextBlock Text="未完成" HorizontalAlignment="Center" Style="{StaticResource PhoneTextExtraLargeStyle}" />
</ScrollViewer>
</controls:PivotItem>
</controls:Pivot>
</Grid>
</phone:PhoneApplicationPage>