improve:计时器
This commit is contained in:
@@ -10,7 +10,7 @@
|
|||||||
Loaded="Window_Loaded" Closing="Window_Closing" WindowStartupLocation="CenterScreen"
|
Loaded="Window_Loaded" Closing="Window_Closing" WindowStartupLocation="CenterScreen"
|
||||||
Title="Ink Canvas 画板 - 计时器" Height="450" Width="900">
|
Title="Ink Canvas 画板 - 计时器" Height="450" Width="900">
|
||||||
|
|
||||||
<Border Background="{DynamicResource SeewoTimerWindowBackground}" CornerRadius="15" BorderThickness="1" BorderBrush="{DynamicResource SeewoTimerWindowBorderBrush}" Margin="10" x:Name="MainBorder">
|
<Border Background="{DynamicResource SeewoTimerWindowBackground}" CornerRadius="15" BorderThickness="1" BorderBrush="{DynamicResource SeewoTimerWindowBorderBrush}" Margin="10" x:Name="MainBorder" MouseLeftButtonDown="WindowDragMove">
|
||||||
<Grid>
|
<Grid>
|
||||||
<!-- 主要内容区域 -->
|
<!-- 主要内容区域 -->
|
||||||
<Grid>
|
<Grid>
|
||||||
@@ -18,11 +18,11 @@
|
|||||||
<Viewbox x:Name="MainViewController" Margin="20,20,20,20">
|
<Viewbox x:Name="MainViewController" Margin="20,20,20,20">
|
||||||
<Grid Height="400" Width="900">
|
<Grid Height="400" Width="900">
|
||||||
<!-- 顶部标题栏 -->
|
<!-- 顶部标题栏 -->
|
||||||
<Grid Height="50" Background="{DynamicResource SeewoTimerWindowBackground}" x:Name="TitleBar" HorizontalAlignment="Stretch" VerticalAlignment="Top">
|
<Grid Height="50" Background="{DynamicResource SeewoTimerWindowBackground}" x:Name="TitleBar" HorizontalAlignment="Stretch" VerticalAlignment="Top" MouseLeftButtonDown="WindowDragMove">
|
||||||
<TextBlock Text="计时" FontSize="20" FontWeight="Bold"
|
<TextBlock Text="计时" FontSize="20" FontWeight="Bold"
|
||||||
HorizontalAlignment="Left" VerticalAlignment="Center"
|
HorizontalAlignment="Left" VerticalAlignment="Center"
|
||||||
Margin="22,0,0,0" Foreground="{DynamicResource SeewoTimerWindowTitleForeground}" x:Name="TitleText"/>
|
Margin="22,0,0,0" Foreground="{DynamicResource SeewoTimerWindowTitleForeground}" x:Name="TitleText"/>
|
||||||
<Border x:Name="BtnClose" MouseUp="BtnClose_MouseUp"
|
<Border x:Name="BtnClose" MouseLeftButtonDown="BtnClose_MouseLeftButtonDown"
|
||||||
HorizontalAlignment="Right" VerticalAlignment="Center"
|
HorizontalAlignment="Right" VerticalAlignment="Center"
|
||||||
Margin="0,0,22,0" Background="{DynamicResource SeewoTimerWindowButtonBackground}" Height="30" Width="30"
|
Margin="0,0,22,0" Background="{DynamicResource SeewoTimerWindowButtonBackground}" Height="30" Width="30"
|
||||||
CornerRadius="15" Cursor="Hand">
|
CornerRadius="15" Cursor="Hand">
|
||||||
|
|||||||
@@ -542,8 +542,9 @@ namespace Ink_Canvas
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void BtnClose_MouseUp(object sender, MouseButtonEventArgs e)
|
private void BtnClose_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
|
||||||
{
|
{
|
||||||
|
e.Handled = true;
|
||||||
Close();
|
Close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user