ToDoWindow.xaml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <Window x:Class="GeekDesk.Control.Windows.ToDoWindow"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:hc="https://handyorg.github.io/handycontrol"
  7. xmlns:local="clr-namespace:GeekDesk"
  8. mc:Ignorable="d"
  9. WindowStartupLocation="CenterScreen"
  10. Height="450"
  11. Width="850"
  12. Title="Task"
  13. WindowStyle="None"
  14. AllowsTransparency="True"
  15. Background="Transparent" ShowInTaskbar="False"
  16. >
  17. <Window.Resources>
  18. <Style x:Key="MenuStyle" TargetType="hc:SideMenuItem" BasedOn="{StaticResource SideMenuItemBaseStyle}">
  19. <Style.Setters>
  20. <Setter Property="Background" Value="AliceBlue"/>
  21. </Style.Setters>
  22. <Style.Triggers>
  23. <Trigger Property="IsMouseOver" Value="True">
  24. <Setter Property="Background" Value="#FFE2E2E2"/>
  25. </Trigger>
  26. <Trigger Property="IsSelected" Value="True">
  27. <Setter Property="Background" Value="#FFDAD7D7"/>
  28. </Trigger>
  29. </Style.Triggers>
  30. </Style>
  31. </Window.Resources>
  32. <Border CornerRadius="4" BorderThickness="0">
  33. <Border.Background>
  34. <SolidColorBrush Color="AliceBlue" Opacity="0.9"/>
  35. </Border.Background>
  36. <Grid>
  37. <Grid.RowDefinitions>
  38. <RowDefinition Height="*"/>
  39. </Grid.RowDefinitions>
  40. <Grid.ColumnDefinitions>
  41. <ColumnDefinition Width="140"/>
  42. <ColumnDefinition Width="*"/>
  43. </Grid.ColumnDefinitions>
  44. <hc:Card Grid.Row="0" Grid.Column="0">
  45. <hc:SideMenu BorderThickness="1"
  46. AutoSelect="True"
  47. >
  48. <hc:SideMenu.Background>
  49. <SolidColorBrush Color="AliceBlue"/>
  50. </hc:SideMenu.Background>
  51. <hc:SideMenu.ItemContainerStyle>
  52. <Style TargetType="hc:SideMenuItem" BasedOn="{StaticResource MenuStyle}"/>
  53. </hc:SideMenu.ItemContainerStyle>
  54. <hc:SideMenuItem Header="待办列表"
  55. IsSelected="True"
  56. Selected="MemuClick"
  57. Tag="ExeList"
  58. >
  59. <hc:SideMenuItem.Icon>
  60. <Button Background="Transparent"
  61. IsEnabled="False"
  62. Opacity="1"
  63. BorderThickness="0"
  64. hc:IconElement.Geometry="{StaticResource List}"
  65. hc:IconElement.Height="18"
  66. hc:IconElement.Width="18"
  67. HorizontalAlignment="Right"
  68. />
  69. </hc:SideMenuItem.Icon>
  70. </hc:SideMenuItem>
  71. <hc:SideMenuItem Header="历史待办"
  72. Tag="History"
  73. Selected="MemuClick">
  74. <hc:SideMenuItem.Icon>
  75. <Button Background="Transparent"
  76. IsEnabled="False"
  77. Opacity="1"
  78. BorderThickness="0"
  79. hc:IconElement.Geometry="{StaticResource History}"
  80. hc:IconElement.Height="18"
  81. hc:IconElement.Width="18"
  82. HorizontalAlignment="Right"
  83. />
  84. </hc:SideMenuItem.Icon>
  85. </hc:SideMenuItem>
  86. </hc:SideMenu>
  87. </hc:Card>
  88. <hc:Card Grid.Row="0" Grid.Column="1" x:Name="RightCard" Height="450" MouseDown="DragMove" />
  89. <Button Width="22" Height="22" Click="Close_Button_Click" Style="{StaticResource ButtonIcon}" Foreground="{DynamicResource {x:Static SystemColors.ControlDarkDarkBrushKey}}" hc:IconElement.Geometry="{StaticResource ErrorGeometry}" Padding="0" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,10,10,0" Grid.Column="1"/>
  90. <Button Content="新建待办"
  91. Panel.ZIndex="1"
  92. Background="#5BC0DE"
  93. Foreground="White"
  94. Grid.Column="1"
  95. Margin="590.01,29,10,384"
  96. Click="CreateBacklog_BtnClick"/>
  97. </Grid>
  98. </Border>
  99. </Window>