更新整理
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 824 B |
@@ -56,7 +56,7 @@ public class ThumbRate : System.Windows.Controls.Control
|
||||
|
||||
private static void OnStateChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
|
||||
{
|
||||
if(d is not ThumbRate thumbRate)
|
||||
if (d is not ThumbRate thumbRate)
|
||||
{
|
||||
return;
|
||||
}
|
||||
@@ -75,7 +75,7 @@ public class ThumbRate : System.Windows.Controls.Control
|
||||
/// </summary>
|
||||
protected virtual void OnTemplateButtonClick(ThumbRateState parameter)
|
||||
{
|
||||
if(State == parameter)
|
||||
if (State == parameter)
|
||||
{
|
||||
SetCurrentValue(StateProperty, ThumbRateState.None);
|
||||
return;
|
||||
@@ -96,5 +96,5 @@ public class ThumbRate : System.Windows.Controls.Control
|
||||
/// <summary>
|
||||
/// Gets the command triggered when clicking the button.
|
||||
/// </summary>
|
||||
public IRelayCommand TemplateButtonCommand => (IRelayCommand)GetValue(TemplateButtonCommandProperty);
|
||||
internal IRelayCommand TemplateButtonCommand => (IRelayCommand)GetValue(TemplateButtonCommandProperty);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user