mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-04-13 12:46:36 +08:00
附加信息准备中
This commit is contained in:
@@ -18,11 +18,20 @@ namespace AIStudio.Wpf.Mind.Controls
|
||||
/// <summary>
|
||||
/// RateControl.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class RateControl : UserControl
|
||||
public class RateControl : Control
|
||||
{
|
||||
public RateControl()
|
||||
|
||||
/// <summary>Identifies the <see cref="Rate"/> dependency property.</summary>
|
||||
public static readonly DependencyProperty RateProperty
|
||||
= DependencyProperty.Register(nameof(Rate), typeof(double), typeof(RateControl));
|
||||
|
||||
/// <summary>
|
||||
/// Whether or not the "popup" menu for this control is currently open
|
||||
/// </summary>
|
||||
public double Rate
|
||||
{
|
||||
InitializeComponent();
|
||||
get => (double)this.GetValue(RateProperty);
|
||||
set => this.SetValue(RateProperty, (double)value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user