GlobalColorPickerWindow.xaml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <Window x:Class="GeekDesk.Control.Windows.GlobalColorPickerWindow"
  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:local="clr-namespace:GeekDesk.Control.Windows"
  7. xmlns:hc="https://handyorg.github.io/handycontrol"
  8. WindowStyle="None"
  9. AllowsTransparency="True"
  10. Background="Transparent"
  11. KeyDown="OnKeyDown"
  12. >
  13. <Border CornerRadius="8"
  14. Background="White"
  15. Height="385"
  16. Width="228">
  17. <StackPanel>
  18. <Border MouseDown="DragMove"
  19. VerticalAlignment="Top"
  20. CornerRadius="8,8,0,0"
  21. Height="20"
  22. Background="White"
  23. >
  24. <Button Width="18" Height="18"
  25. hc:IconElement.Geometry="{StaticResource ErrorGeometry}"
  26. Padding="0"
  27. Background="Transparent"
  28. Opacity="0.6"
  29. Margin="0,0,5,0"
  30. Click="Button_Click"
  31. HorizontalAlignment="Right"
  32. MouseEnter="Button_MouseEnter"
  33. MouseLeave="Button_MouseLeave"
  34. VerticalAlignment="Center">
  35. </Button>
  36. </Border>
  37. <hc:ColorPicker HorizontalAlignment="Center"
  38. VerticalAlignment="Bottom"
  39. SelectedColorChanged="MyColorPicker_SelectedColorChanged"
  40. x:Name="MyColorPicker"
  41. Confirmed="MyColorPicker_Confirmed"
  42. Canceled="MyColorPicker_Canceled"
  43. ToggleButton.Checked="MyColorPicker_Checked"/>
  44. </StackPanel>
  45. </Border>
  46. </Window>