mind 工具栏

This commit is contained in:
艾竹
2023-03-19 12:38:08 +08:00
parent 8d87f61c07
commit c2f4d3c706
12 changed files with 312 additions and 213 deletions

View File

@@ -151,23 +151,6 @@ namespace AIStudio.Wpf.Mind.Controls
#endregion //ButtonStyle
#region DisplayColorAndName
public static readonly DependencyProperty DisplayColorAndNameProperty = DependencyProperty.Register("DisplayColorAndName", typeof(bool), typeof(ColorPicker), new UIPropertyMetadata(false));
public bool DisplayColorAndName
{
get
{
return (bool)GetValue(DisplayColorAndNameProperty);
}
set
{
SetValue(DisplayColorAndNameProperty, value);
}
}
#endregion //DisplayColorAndName
#region ColorMode
public static readonly DependencyProperty ColorModeProperty = DependencyProperty.Register("ColorMode", typeof(ColorMode), typeof(ColorPicker), new UIPropertyMetadata(ColorMode.ColorPalette));
@@ -530,6 +513,21 @@ namespace AIStudio.Wpf.Mind.Controls
#endregion //UsingAlphaChannel
/// <summary>Identifies the <see cref="Content"/> dependency property.</summary>
public static readonly DependencyProperty ContentProperty
= DependencyProperty.Register(nameof(Content),
typeof(object),
typeof(ColorPicker));
/// <summary>
/// Gets or sets the content of this control.
/// </summary>
public object Content
{
get => (object)this.GetValue(ContentProperty);
set => this.SetValue(ContentProperty, value);
}
#endregion //Properties
#region Constructors