附加信息准备中

This commit is contained in:
kwai
2023-03-13 19:44:30 +08:00
parent 414eb28867
commit 31872222bc
12 changed files with 146 additions and 73 deletions

View File

@@ -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);
}
}
}