From 110ac1d36d68414fa0526f776dae2a3be6e25df2 Mon Sep 17 00:00:00 2001 From: DinoChan Date: Wed, 1 Apr 2020 15:54:53 +0800 Subject: [PATCH] fix #345 --- src/Shared/HandyControl_Shared/Controls/Rate/Rate.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Shared/HandyControl_Shared/Controls/Rate/Rate.cs b/src/Shared/HandyControl_Shared/Controls/Rate/Rate.cs index 7e15f681..a8acf741 100644 --- a/src/Shared/HandyControl_Shared/Controls/Rate/Rate.cs +++ b/src/Shared/HandyControl_Shared/Controls/Rate/Rate.cs @@ -40,7 +40,11 @@ namespace HandyControl.Controls Info = (double)e.NewValue }); - protected virtual void OnValueChanged(FunctionEventArgs e) => RaiseEvent(e); + protected virtual void OnValueChanged(FunctionEventArgs e) + { + RaiseEvent(e); + UpdateItems(); + } public static readonly DependencyProperty TextProperty = DependencyProperty.Register( "Text", typeof(string), typeof(Rate), new PropertyMetadata(default(string)));