clock gadget
This commit is contained in:
45
PacticeSolution/ClockGadget/MainWindow.xaml
Normal file
45
PacticeSolution/ClockGadget/MainWindow.xaml
Normal file
@@ -0,0 +1,45 @@
|
||||
<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>
|
Reference in New Issue
Block a user