MyColorPickerDialog.xaml 1.1 KB

123456789101112131415161718192021222324252627282930
  1. <Border x:Class="GeekDesk.Control.Other.MyColorPickerDialog"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:hc="https://handyorg.github.io/handycontrol"
  5. CornerRadius="4"
  6. >
  7. <Grid>
  8. <StackPanel>
  9. <Grid Width="750"
  10. Height="550"
  11. Panel.ZIndex="0"
  12. MouseDown="DragMove"
  13. >
  14. <Grid.Background>
  15. <SolidColorBrush Color="Black" Opacity="0.01"/>
  16. </Grid.Background>
  17. </Grid>
  18. <hc:ColorPicker x:Name="MyColorPicker"
  19. Panel.ZIndex="99"
  20. Margin="0,-500,0,0"
  21. Confirmed="MyColorPicker_Confirmed"
  22. Canceled="MyColorPicker_Canceled"
  23. ToggleButton.Checked="MyColorPicker_Checked"
  24. SelectedColorChanged="MyColorPicker_SelectedColorChanged"/>
  25. </StackPanel>
  26. </Grid>
  27. </Border>