This commit is contained in:
kwai
2023-03-15 19:35:53 +08:00
parent 035a725da3
commit 70dac7d41c
10 changed files with 124 additions and 28 deletions

View File

@@ -27,15 +27,15 @@ namespace AIStudio.Wpf.Mind.Controls
/// <summary>Identifies the <see cref="Priority"/> dependency property.</summary>
public static readonly DependencyProperty PriorityProperty
= DependencyProperty.Register(nameof(Priority), typeof(double), typeof(PriorityControl));
= DependencyProperty.Register(nameof(Priority), typeof(double?), typeof(PriorityControl));
/// <summary>
/// Whether or not the "popup" menu for this control is currently open
/// </summary>
public double Priority
public double? Priority
{
get => (double)this.GetValue(PriorityProperty);
set => this.SetValue(PriorityProperty, (double)value);
get => (double?)this.GetValue(PriorityProperty);
set => this.SetValue(PriorityProperty, (double?)value);
}
}
}