schangxiang@126.com
2025-11-04 f5ed29dc26c7cd952d56ec5721a2efc43cd25992
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<Window x:Class="XHandler.View.ColorPicker.ColorPickerEx"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:local="clr-namespace:XHandler.View.MethodProperty"
             xmlns:str="clr-namespace:XHandler.Properties"
             mc:Ignorable="d" WindowStartupLocation="CenterOwner"
             xmlns:hc="https://handyorg.github.io/handycontrol" 
             WindowStyle="None" AllowsTransparency="True" ResizeMode="NoResize" Background="#00FFFFFF"  Loaded="Window_Loaded" PreviewKeyDown="Window_PreviewKeyDown">
 
    <Grid x:Name="grid" HorizontalAlignment="Center" VerticalAlignment="Center" Width="auto" Height="auto" >
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        
        <Border Grid.Row="0" Background="White" CornerRadius="0 0 10 10" BorderThickness="2" BorderBrush="{DynamicResource blueBrush}">
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="*"/>
                </Grid.RowDefinitions>
 
                <hc:ColorPicker Name="ColorPicker" Height="360" Margin="2"
                        Canceled="ColorPicker_Canceled" Confirmed="ColorPicker_Confirmed" />
     
            </Grid>
        </Border>
    </Grid>
</Window>