-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainWindow.xaml
More file actions
52 lines (52 loc) · 3.3 KB
/
MainWindow.xaml
File metadata and controls
52 lines (52 loc) · 3.3 KB
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
<Window x:Class="MyClock.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:MyClock"
mc:Ignorable="d" d:DesignWidth="600" d:DesignHeight="400"
Title="MainWindow" ResizeMode="NoResize" WindowState="Maximized" WindowStyle="None"
ShowInTaskbar="False"
AllowsTransparency="True" Background="Transparent" Topmost="True">
<!-- Window.Resources removed for transparency -->
<Grid Background="Transparent">
<StackPanel Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Bottom" Background="Transparent">
<TextBlock Text=" " HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="{Binding FontSize}" FontWeight="Bold" Foreground="White"/>
<TextBlock Text="{Binding Hour}" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="{Binding FontSize}" FontWeight="Bold" Foreground="{Binding Foreground}"/>
<TextBlock Text=":" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="{Binding FontSize}" FontWeight="Bold" Foreground="{Binding Foreground}"/>
<TextBlock Text="{Binding Minute}" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="{Binding FontSize}" FontWeight="Bold" Foreground="{Binding Foreground}"/>
<TextBlock Text=":" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="{Binding FontSize}" FontWeight="Bold" Foreground="{Binding Foreground}"/>
<TextBlock Text="{Binding Second}" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="{Binding FontSize}" FontWeight="Bold" Foreground="{Binding Foreground}"/>
<TextBlock Text=" " HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="{Binding FontSize}" FontWeight="Bold" Foreground="White"/>
<ItemsControl ItemsSource="{Binding ProcessItems, Mode=TwoWay}" Height="35">
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<WrapPanel Orientation="Vertical"/>
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
<ItemsControl.ItemTemplate>
<DataTemplate DataType="{x:Type local:ProcessItem}">
<Rectangle Width="{Binding Width}" Height="{Binding Height}" StrokeThickness="{Binding StrokeThickness}" Margin="1 1 0 0">
<Rectangle.Style>
<Style TargetType="Rectangle">
<Setter Property="Fill" Value="{Binding HollowFill}"/>
<Setter Property="Stroke" Value="{Binding HollowStroke}"/>
<Style.Triggers>
<DataTrigger Binding="{Binding IsSolid}" Value="2">
<Setter Property="Fill" Value="{Binding SolidFill}"/>
<Setter Property="Stroke" Value="{Binding SolidStroke}"/>
</DataTrigger>
<DataTrigger Binding="{Binding IsSolid}" Value="3">
<Setter Property="Fill" Value="{Binding SolidBiddingFill}"/>
<Setter Property="Stroke" Value="{Binding SolidBiddingStroke}"/>
</DataTrigger>
</Style.Triggers>
</Style>
</Rectangle.Style>
</Rectangle>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
</StackPanel>
</Grid>
</Window>