-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMainPage.xaml
93 lines (93 loc) · 6.76 KB
/
MainPage.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
<Page
x:Class="CountDown_Day.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:CountDown_Day"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:controls="using:Microsoft.Toolkit.Uwp.UI.Controls"
mc:Ignorable="d"
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"
MinWidth="644" MinHeight="396"
Loaded="Page_Loaded" SizeChanged="Page_SizeChanged">
<Page.Resources>
<Storyboard x:Name="TextLightToDark">
<ColorAnimation Duration="0:0:0.5" From="AliceBlue" To="#FF0C0C0C" Storyboard.TargetName="TTime" Storyboard.TargetProperty="(TTime.Foreground).(SolidColorBrush.Color)"/>
<ColorAnimation Duration="0:0:0.5" From="AliceBlue" To="#FF0C0C0C" Storyboard.TargetName="TAction" Storyboard.TargetProperty="(TAction.Foreground).(SolidColorBrush.Color)"/>
<ColorAnimation Duration="0:0:0.5" From="AliceBlue" To="#FF0C0C0C" Storyboard.TargetName="TD0" Storyboard.TargetProperty="(TD0.Foreground).(SolidColorBrush.Color)"/>
</Storyboard>
<Storyboard x:Name="TextDarkToLight">
<ColorAnimation Duration="0:0:0.5" From="#FF0C0C0C" To="AliceBlue" Storyboard.TargetName="TTime" Storyboard.TargetProperty="(TTime.Foreground).(SolidColorBrush.Color)"/>
<ColorAnimation Duration="0:0:0.5" From="#FF0C0C0C" To="AliceBlue" Storyboard.TargetName="TAction" Storyboard.TargetProperty="(TAction.Foreground).(SolidColorBrush.Color)"/>
<ColorAnimation Duration="0:0:0.5" From="#FF0C0C0C" To="AliceBlue" Storyboard.TargetName="TD0" Storyboard.TargetProperty="(TD0.Foreground).(SolidColorBrush.Color)"/>
</Storyboard>
<Style TargetType="Button" x:Key="Button_Lable_Light">
<Setter Property="Background">
<Setter.Value>
<ImageBrush ImageSource="Assets/button_lable_light.png" Stretch="None" AlignmentX="Left" AlignmentY="Top"></ImageBrush>
</Setter.Value>
</Setter>
</Style>
<Style TargetType="Button" x:Key="Button_Lable_Dark">
<Setter Property="Background">
<Setter.Value>
<ImageBrush ImageSource="Assets/button_lable_dark.png" Stretch="None" AlignmentX="Left" AlignmentY="Top"></ImageBrush>
</Setter.Value>
</Setter>
</Style>
</Page.Resources>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="3*" />
<ColumnDefinition x:Name="GDyn" Width="500" />
</Grid.ColumnDefinitions>
<Grid x:Name="rgrid" Grid.Column="1">
<Image x:Name="IBg" Source="/Assets/normal-bg.jpg" Stretch="UniformToFill"/>
<Grid Margin="0,0,0,0" Height="300" Width="400" VerticalAlignment="Center" HorizontalAlignment="Center" Loaded="Grid_Num_Loaded">
<Border x:Name="BFore" Margin="0,0,0,0" Height="300" Width="400" HorizontalAlignment="Center" VerticalAlignment="Center" CornerRadius="30">
<Border.Background>
<ImageBrush x:Name="BForeImageBrush">
<ImageBrush.ImageSource>
<BitmapImage UriSource="/Assets/Transfer.png"/>
</ImageBrush.ImageSource>
</ImageBrush>
</Border.Background>
<Grid>
<TextBlock Text="{Binding Text, ElementName=TTime}" FontSize="184" Margin="0,0,0,0" Foreground="#22000000" VerticalAlignment="Center" HorizontalAlignment="Center"></TextBlock>
<TextBlock x:Name="TTime" Text="" FontSize="184" Foreground="AliceBlue" VerticalAlignment="Center" HorizontalAlignment="Center" Tapped="TTime_Tapped"></TextBlock>
<TextBlock x:Name="TAction" Text="" FontSize="36" Margin="0,0,0,0" Foreground="AliceBlue" VerticalAlignment="Top" HorizontalAlignment="Center"></TextBlock>
<TextBlock x:Name="TD0" Text="天" FontSize="36" Margin="0,0,10,10" Foreground="AliceBlue" VerticalAlignment="Bottom" HorizontalAlignment="Right"></TextBlock>
</Grid>
</Border>
</Grid>
</Grid>
<Grid x:Name="lgrid" Grid.Column="0">
<Grid Margin="0,0" Background="#22888888" Width="48" HorizontalAlignment="Left">
<Button x:Name="BAdd" Width="48" Height="48" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="0,0,0,0" Click="BAdd_Click">
<Image x:Name="IBAdd" Source="/Assets/button-add.png" Margin="0,0,0,0" Stretch="Uniform"/>
</Button>
<Button x:Name="BRefresh" Width="48" Height="48" HorizontalAlignment="Center" VerticalAlignment="Top" Click="BRefresh_Click" Margin="0,48,0,0">
<Image x:Name="IBRefresh" Source="/Assets/refresh.png" Margin="0,0,0,0" Stretch="Uniform"/>
</Button>
<Button x:Name="BSetting" Width="48" Height="48" HorizontalAlignment="Center" VerticalAlignment="Bottom" Margin="0,0" Click="BSetting_Click">
<Image x:Name="IBSetting" Source="/Assets/button-settings.png" Margin="0,0,0,0" Stretch="Uniform"/>
</Button>
</Grid>
<Grid Margin="48,0,0,0" Background="#22888888" Height="48" VerticalAlignment="Bottom">
<Grid Margin="0,0,0,0" Height="48" Width="192" HorizontalAlignment="Right">
<Button x:Name="BDown" Margin="0,0,0,0" HorizontalAlignment="Right" VerticalAlignment="Center" Width="48" Height="48" Click="BDown_Click">
<Image x:Name="IBDown" Source="/Assets/button-down.png"/>
</Button>
<Button x:Name="BUp" Margin="0,0,144,0" HorizontalAlignment="Right" VerticalAlignment="Center" Width="48" Height="48" Click="BUp_Click">
<Image x:Name="IBUp" Source="/Assets/button-up.png"/>
</Button>
<TextBlock x:Name="TPage" Text="0/0" FontSize="24" Margin="48,0,48,0" HorizontalTextAlignment="Center" VerticalAlignment="Center" FontFamily="Consolas"/>
</Grid>
</Grid>
<Grid x:Name="IFrame" x:FieldModifier="Public" Margin="48,1,1,48" DataContext="{Binding}"></Grid>
<Grid Margin="48,1,1,48" x:FieldModifier="Public">
<Image x:Name="IEmpty" Source="/Assets/calendar-empty.png" Width="400" Height="400" HorizontalAlignment="Center" VerticalAlignment="Center" Stretch="Fill" Visibility="Collapsed"/>
</Grid>
</Grid>
</Grid>
</Page>