You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.7 KiB

2 years ago
<Window x:Class="ClockGadget.MainWindow"
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:ClockGadget"
mc:Ignorable="d"
Title="MainWindow" Height="200" Width="200"
WindowStyle="None"
AllowsTransparency="True"
Background="Transparent"
Loaded="Window_Loaded">
<Grid>
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<Ellipse Grid.RowSpan="7" Fill="White" Opacity="0.6"
MouseDown="Ellipse_MouseDown"/>
<TextBlock x:Name="tbDate"
Grid.Row="2"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Text="0000-00-00"/>
<TextBlock x:Name="tbTime"
Grid.Row="3"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Text="AM 00:00:00"/>
<Button x:Name="btnClose"
Grid.Row="5"
Width="100"
BorderBrush="Transparent"
Background="Transparent"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Content="Close"
Click="btnClose_Click"/>
</Grid>
</Window>