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
|
<Window x:Class="EpiTuile.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:EpiTuile"
mc:Ignorable="d"
Title="EpiTuile" Height="350" Width="525" Icon="icons8-notification-50.png" Closing="Window_Closing" Loaded="Window_Loaded" >
<Window.TaskbarItemInfo>
<TaskbarItemInfo />
</Window.TaskbarItemInfo>
<Window.Resources>
<DataTemplate x:Key="OverlayIcon">
<Grid Width="40" Height="40">
<Ellipse Fill="White"
Stroke="Green"
StrokeThickness="2"/>
<TextBlock Text="{Binding}"
TextAlignment="Center"
Foreground="Black"
FontWeight="Regular"
Height="22"
VerticalAlignment="Center"
FontSize="20">
<TextBlock.Effect>
<DropShadowEffect ShadowDepth="0" />
</TextBlock.Effect>
</TextBlock>
</Grid>
</DataTemplate>
</Window.Resources>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="488*"/>
<ColumnDefinition Width="29*"/>
</Grid.ColumnDefinitions>
<TextBlock Height="23"
HorizontalAlignment="Left"
Margin="22,71,0,0"
x:Name="textBlock1"
Text="Count"
VerticalAlignment="Top" />
<TextBox Height="23"
HorizontalAlignment="Left"
Margin="92,68,0,0"
x:Name="EnteredCount"
VerticalAlignment="Top"
Width="120" />
<Button Content="Update"
Height="23"
HorizontalAlignment="Left"
Margin="92,105,0,0"
x:Name="UpdateCount"
VerticalAlignment="Top"
Width="75" Click="UpdateCount_Click" />
<Image x:Name="icons8_notification_50_png" Margin="414,247,23.842,22" Source="icons8-notification-50.png" Stretch="Fill"/>
</Grid>
</Window> |
Partager