Files
Shrlalgo.RvKits/ShrlAlgoToolkit.RevitAddins/Common/Controls/ColorPickerWin.xaml

59 lines
2.6 KiB
Plaintext
Raw Normal View History

2026-01-02 17:30:41 +08:00
<ui:MelWindow
2026-02-22 20:03:42 +08:00
Height="390"
Icon="{DynamicResource RevitIcon}"
Title="颜色设置"
Width="340"
WindowStartupLocation="CenterOwner"
d:DataContext="{d:DesignInstance Type=windows:ColorPickerViewModel}"
mc:Ignorable="d"
x:Class="ShrlAlgoToolkit.RevitAddins.Common.Controls.ColorPickerWin"
2024-09-22 11:05:41 +08:00
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:b="http://schemas.microsoft.com/xaml/behaviors"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
2026-02-22 20:03:42 +08:00
xmlns:local="clr-namespace:ShrlAlgoToolkit.RevitAddins.Common.Controls"
2024-09-22 11:05:41 +08:00
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
2026-01-02 17:30:41 +08:00
xmlns:ui="https://github.com/ShrlAlgo/Melskin"
2026-02-22 20:03:42 +08:00
xmlns:windows="clr-namespace:ShrlAlgoToolkit.RevitAddins.Common.Controls"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
2024-09-22 11:05:41 +08:00
<Window.Resources>
2025-04-24 20:56:10 +08:00
<ResourceDictionary Source="pack://application:,,,/ShrlAlgoToolkit.RevitAddins;component/WPFUI.xaml" />
2024-09-22 11:05:41 +08:00
</Window.Resources>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="*" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<!--<controls:StandardColorPicker
x:Name="ColorPicker"
Grid.ColumnSpan="2"
SelectedColor="{Binding SelectedColor, Delay=25, UpdateSourceTrigger=PropertyChanged}">
<b:Interaction.Triggers>
<b:EventTrigger EventName="MouseLeftButtonUp">
<b:InvokeCommandAction Command="{Binding UpdateColorCommand}" CommandParameter="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=controls:ColorPicker}}" />
</b:EventTrigger>
</b:Interaction.Triggers>
</controls:StandardColorPicker>-->
2025-10-10 11:19:58 +08:00
<ui:ColorPanel
2024-09-22 11:05:41 +08:00
Grid.Column="0"
Grid.ColumnSpan="2"
2026-02-22 20:03:42 +08:00
Grid.Row="0"
SelectedColor="{Binding SelectedColor}"
x:Name="ColorPicker" />
2024-09-22 11:05:41 +08:00
<StackPanel
Grid.Column="0"
Grid.ColumnSpan="2"
2026-02-22 20:03:42 +08:00
Grid.Row="1"
2024-09-22 11:05:41 +08:00
HorizontalAlignment="Center"
Orientation="Horizontal">
<Button
Command="{Binding ConfirmCommand}"
CommandParameter="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=Window}}"
Content="确定" />
<Button Command="Close" Content="取消" />
</StackPanel>
</Grid>
2026-01-02 17:30:41 +08:00
</ui:MelWindow>