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

51 lines
2.2 KiB
XML

<UserControl x:Class="Txgy.Controls.CalendarClock"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:Txgy.Controls"
xmlns:converter="clr-namespace:Txgy.Controls.Converters"
FontFamily="Microsoft YaHei"
mc:Ignorable="d">
<UserControl.Resources>
<ResourceDictionary>
<converter:ColorToBrushConverter x:Key="ctb" />
</ResourceDictionary>
</UserControl.Resources>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition />
</Grid.RowDefinitions>
<Label x:Name="lblTime"
Grid.ColumnSpan="2"
Content="00:33:15"
FontSize="30"
Background="{x:Null}"
BorderThickness="0"
Foreground="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=local:CalendarClock}, Path=ForegroundColor, Converter={StaticResource ctb}}" />
<Label x:Name="lblGL"
Grid.Row="1"
Margin="0,0,5,0"
Content="公历 2022年4月11日"
FontSize="18"
Background="{x:Null}"
BorderThickness="0"
Foreground="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=local:CalendarClock}, Path=ForegroundColor, Converter={StaticResource ctb}}" />
<Label x:Name="lblNL"
Grid.Row="1"
Grid.Column="1"
Margin="5,0,0,0"
Content="农历 4月11日 星期日"
FontSize="18"
Background="{x:Null}"
BorderThickness="0"
Foreground="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=local:CalendarClock}, Path=ForegroundColor, Converter={StaticResource ctb}}" />
</Grid>
</UserControl>