fix: fix AllowHalf initialization.
This commit is contained in:
@@ -179,16 +179,13 @@ public class Rating : TemplatedControl
|
||||
Items.Add(new RatingCharacter());
|
||||
}
|
||||
|
||||
foreach (var item in Items)
|
||||
{
|
||||
item.AllowHalf = AllowHalf;
|
||||
}
|
||||
SetCurrentValue(ValueProperty, DefaultValue);
|
||||
}
|
||||
|
||||
protected override void OnLoaded(RoutedEventArgs e)
|
||||
{
|
||||
base.OnLoaded(e);
|
||||
UpdateItemsByValue(Value);
|
||||
AdjustWidth(Value);
|
||||
}
|
||||
|
||||
public void Preview(RatingCharacter o)
|
||||
{
|
||||
var index = Items.IndexOf(o);
|
||||
|
||||
Reference in New Issue
Block a user