improve:计时器
This commit is contained in:
@@ -0,0 +1,95 @@
|
||||
<Window x:Class="Ink_Canvas.FullscreenTimerWindow"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:local="clr-namespace:Ink_Canvas"
|
||||
Topmost="True" Background="Black"
|
||||
mc:Ignorable="d" WindowStyle="None" AllowsTransparency="False"
|
||||
WindowState="Maximized" WindowStartupLocation="Manual"
|
||||
MouseLeftButtonDown="Window_MouseLeftButtonDown"
|
||||
KeyDown="Window_KeyDown">
|
||||
|
||||
<Window.Resources>
|
||||
<ResourceDictionary>
|
||||
<ResourceDictionary.MergedDictionaries>
|
||||
<ResourceDictionary Source="DigitResources.xaml" />
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
</ResourceDictionary>
|
||||
</Window.Resources>
|
||||
|
||||
<Grid Background="Black">
|
||||
<!-- 时间显示 -->
|
||||
<Grid HorizontalAlignment="Center" VerticalAlignment="Center">
|
||||
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
|
||||
<!-- 小时 -->
|
||||
<Path x:Name="FullHour1Display" Data="{StaticResource Digit0}"
|
||||
Fill="White"
|
||||
Width="120" Height="120"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
Stretch="Uniform"
|
||||
Margin="0,0,20,0"/>
|
||||
<Path x:Name="FullHour2Display" Data="{StaticResource Digit0}"
|
||||
Fill="White"
|
||||
Width="120" Height="120"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
Stretch="Uniform"
|
||||
Margin="0,0,20,0"/>
|
||||
|
||||
<!-- 冒号 -->
|
||||
<TextBlock Text=":" FontSize="120" FontWeight="Bold"
|
||||
Foreground="White"
|
||||
HorizontalAlignment="Center" VerticalAlignment="Center"
|
||||
Margin="0,0,20,0"/>
|
||||
|
||||
<!-- 分钟 -->
|
||||
<Path x:Name="FullMinute1Display" Data="{StaticResource Digit0}"
|
||||
Fill="White"
|
||||
Width="120" Height="120"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
Stretch="Uniform"
|
||||
Margin="0,0,20,0"/>
|
||||
<Path x:Name="FullMinute2Display" Data="{StaticResource Digit0}"
|
||||
Fill="White"
|
||||
Width="120" Height="120"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
Stretch="Uniform"
|
||||
Margin="0,0,20,0"/>
|
||||
|
||||
<!-- 冒号 -->
|
||||
<TextBlock Text=":" FontSize="120" FontWeight="Bold"
|
||||
Foreground="White"
|
||||
HorizontalAlignment="Center" VerticalAlignment="Center"
|
||||
Margin="0,0,20,0"/>
|
||||
|
||||
<!-- 秒 -->
|
||||
<Path x:Name="FullSecond1Display" Data="{StaticResource Digit0}"
|
||||
Fill="White"
|
||||
Width="120" Height="120"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
Stretch="Uniform"
|
||||
Margin="0,0,20,0"/>
|
||||
<Path x:Name="FullSecond2Display" Data="{StaticResource Digit0}"
|
||||
Fill="White"
|
||||
Width="120" Height="120"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
Stretch="Uniform"
|
||||
Margin="0,0,0,0"/>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
|
||||
<!-- 退出提示 -->
|
||||
<TextBlock Text="点击屏幕或按ESC键退出全屏"
|
||||
FontSize="16"
|
||||
Foreground="Gray"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Bottom"
|
||||
Margin="0,0,0,50"/>
|
||||
</Grid>
|
||||
</Window>
|
||||
Reference in New Issue
Block a user