ToDoInfoWindow.xaml 3.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <Window x:Class="GeekDesk.Control.Windows.ToDoInfoWindow"
  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="670"
  11. Width="450"
  12. Title="TaskInfo"
  13. WindowStyle="None"
  14. AllowsTransparency="True"
  15. Background="Transparent" ShowInTaskbar="False"
  16. >
  17. <Window.Resources>
  18. </Window.Resources>
  19. <Border CornerRadius="3" BorderThickness="2" BorderBrush="Black" Margin="0,0,0,313.323" MouseDown="DragMove">
  20. <Border.Background>
  21. <SolidColorBrush Color="AliceBlue"/>
  22. </Border.Background>
  23. <Border.Resources>
  24. <Style x:Key="LeftTB" TargetType="TextBlock" BasedOn="{StaticResource TextBlockBaseStyle}">
  25. <Setter Property="Width" Value="65"/>
  26. <Setter Property="HorizontalAlignment" Value="Left"/>
  27. <Setter Property="VerticalAlignment" Value="Center"/>
  28. <Setter Property="FontSize" Value="14"/>
  29. </Style>
  30. </Border.Resources>
  31. <Grid Margin="0,0,0,8">
  32. <hc:SimplePanel Margin="20" HorizontalAlignment="Center">
  33. <hc:UniformSpacingPanel Spacing="10" Grid.ColumnSpan="4">
  34. <WrapPanel>
  35. <TextBlock Text="待办任务:" Style="{StaticResource LeftTB}"/>
  36. <TextBlock Text="*" Foreground="Red" />
  37. </WrapPanel>
  38. <TextBox x:Name="Title" Width="290" FontSize="14" />
  39. </hc:UniformSpacingPanel>
  40. <hc:UniformSpacingPanel Spacing="10" Grid.ColumnSpan="4" Margin="0,48.997,0,-48.997">
  41. <TextBlock Text="待办详情:" Style="{StaticResource LeftTB}"/>
  42. <TextBox x:Name="Msg" TextWrapping="Wrap"
  43. AcceptsReturn="True"
  44. VerticalScrollBarVisibility="Visible"
  45. Height="100" MaxHeight="150" MinHeight="100" Width="290" MinWidth="290"
  46. VerticalAlignment="Center" HorizontalAlignment="Center"/>
  47. </hc:UniformSpacingPanel>
  48. <hc:UniformSpacingPanel Spacing="10" Grid.ColumnSpan="4" Margin="0,167.622,0,-167.622">
  49. <TextBlock Text="待办时间*:" Style="{StaticResource LeftTB}"/>
  50. <hc:DateTimePicker x:Name="ExeTime" ErrorStr="test" Width="200"/>
  51. </hc:UniformSpacingPanel>
  52. <hc:UniformSpacingPanel Spacing="10" Grid.ColumnSpan="4" Margin="0,228,0,-228">
  53. <TextBlock Text="完成时间:" Style="{StaticResource LeftTB}"/>
  54. <TextBlock x:Name="DoneTime" Width="200"/>
  55. </hc:UniformSpacingPanel>
  56. <hc:UniformSpacingPanel Spacing="10" Margin="0,273.333,0,-93.333" Grid.ColumnSpan="4">
  57. <Button Content="保存" Background="#5BC0DE"
  58. Foreground="White" Margin="320,6,-208,-10"
  59. Click="Save_Button_Click"/>
  60. </hc:UniformSpacingPanel>
  61. </hc:SimplePanel>
  62. <Button Panel.ZIndex="2" 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"/>
  63. <StackPanel hc:Growl.GrowlParent="True" VerticalAlignment="Top" Margin="0,10,10,0"/>
  64. </Grid>
  65. </Border>
  66. </Window>