ToDoWindow.xaml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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="550"
  11. Width="1000"
  12. Title="Task"
  13. ResizeMode="NoResize"
  14. WindowStyle="None"
  15. AllowsTransparency="True"
  16. Background="Transparent" ShowInTaskbar="False"
  17. Focusable="True"
  18. KeyDown="OnKeyDown"
  19. >
  20. <Grid Margin="50">
  21. <Grid.Effect>
  22. <DropShadowEffect BlurRadius="20" Direction="-90" Color="Gray"
  23. RenderingBias="Quality" ShadowDepth="2"/>
  24. </Grid.Effect>
  25. <Border Style="{StaticResource BorderBG}">
  26. <Grid>
  27. <Grid.RowDefinitions>
  28. <RowDefinition Height="*"/>
  29. </Grid.RowDefinitions>
  30. <Grid.ColumnDefinitions>
  31. <ColumnDefinition Width="140"/>
  32. <ColumnDefinition Width="*"/>
  33. </Grid.ColumnDefinitions>
  34. <hc:Card Grid.Row="0" Grid.Column="0" Background="Transparent" BorderThickness="0">
  35. <hc:SideMenu BorderThickness="0"
  36. AutoSelect="True"
  37. Background="Transparent"
  38. Margin="5"
  39. >
  40. <hc:SideMenu.ItemContainerStyle>
  41. <Style TargetType="hc:SideMenuItem" BasedOn="{StaticResource MyMenuStyle}"/>
  42. </hc:SideMenu.ItemContainerStyle>
  43. <hc:SideMenuItem Header="待办列表"
  44. IsSelected="True"
  45. Selected="MemuClick"
  46. Tag="ExeList"
  47. >
  48. <hc:SideMenuItem.Icon>
  49. <Button Background="Transparent"
  50. IsEnabled="False"
  51. Opacity="1"
  52. BorderThickness="0"
  53. hc:IconElement.Geometry="{StaticResource List}"
  54. hc:IconElement.Height="18"
  55. hc:IconElement.Width="18"
  56. HorizontalAlignment="Right"
  57. />
  58. </hc:SideMenuItem.Icon>
  59. </hc:SideMenuItem>
  60. <hc:SideMenuItem Header="历史待办"
  61. Tag="History"
  62. Selected="MemuClick">
  63. <hc:SideMenuItem.Icon>
  64. <Button Background="Transparent"
  65. IsEnabled="False"
  66. Opacity="1"
  67. BorderThickness="0"
  68. hc:IconElement.Geometry="{StaticResource History}"
  69. hc:IconElement.Height="18"
  70. hc:IconElement.Width="18"
  71. HorizontalAlignment="Right"
  72. />
  73. </hc:SideMenuItem.Icon>
  74. </hc:SideMenuItem>
  75. </hc:SideMenu>
  76. </hc:Card>
  77. <UniformGrid x:Name="UFG" Grid.Column="1" Grid.Row="0">
  78. <hc:TransitioningContentControl TransitionMode="Left2RightWithFade">
  79. <hc:Card x:Name="RightCard" VerticalAlignment="Top" MouseDown="DragMove" Background="Transparent" BorderThickness="0" Height="410"/>
  80. </hc:TransitioningContentControl>
  81. </UniformGrid>
  82. <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"/>
  83. <Button Content="新建待办"
  84. Panel.ZIndex="1"
  85. Style="{StaticResource MyBtnStyle}"
  86. Grid.Column="1"
  87. Margin="669,400,0,0"
  88. Click="CreateBacklog_BtnClick" HorizontalAlignment="Left" VerticalAlignment="Top"/>
  89. </Grid>
  90. </Border>
  91. </Grid>
  92. </Window>