终端一体化运控平台
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

49 lines
2.0 KiB

  1. <UserControl x:Class="BPASmartClient.SCADAControl.CustomerControls.DateTimeUI"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:BPASmartClient.SCADAControl.CustomerControls"
  7. mc:Ignorable="d"
  8. x:Name="main"
  9. d:DesignHeight="30" d:DesignWidth="100">
  10. <UserControl.Resources>
  11. <ResourceDictionary>
  12. <ResourceDictionary.MergedDictionaries>
  13. <ResourceDictionary Source="/BPASmartClient.SCADAControl;component/Themes/Generic.xaml" />
  14. </ResourceDictionary.MergedDictionaries>
  15. </ResourceDictionary>
  16. </UserControl.Resources>
  17. <Grid>
  18. <Grid.RowDefinitions>
  19. <RowDefinition Height="20" />
  20. <RowDefinition />
  21. </Grid.RowDefinitions>
  22. <StackPanel Grid.Row="0" Orientation="Horizontal">
  23. <TextBlock
  24. x:Name="time"
  25. FontFamily="../Fonts/#Quartz M"
  26. FontSize="16" Foreground="{Binding Foreground, ElementName=main}">
  27. 14:48:30
  28. </TextBlock>
  29. <Image Margin="10,0,0,0" Style="{DynamicResource timeImage}" />
  30. </StackPanel>
  31. <StackPanel Grid.Row="1" Orientation="Horizontal">
  32. <TextBlock
  33. x:Name="dateRL" Foreground="{Binding Foreground, ElementName=main}"
  34. FontFamily="../Fonts/#Quartz M"
  35. FontSize="10">
  36. 星期一
  37. </TextBlock>
  38. <TextBlock
  39. x:Name="date"
  40. Margin="10,0,0,0" Foreground="{Binding Foreground, ElementName=main}"
  41. FontFamily="../Fonts/#Quartz M"
  42. FontSize="10">
  43. 2021-11-13
  44. </TextBlock>
  45. </StackPanel>
  46. </Grid>
  47. </UserControl>