fixed a render bug of rate
This commit is contained in:
1 parent
2b1973fd1c
commit
1457b9990e
4 files changed
+10
-26
No files matched your search
@@ -9687,14 +9687,6 @@
|
|||||||
</Style>
|
</Style>
|
||||||
<Style x:Key="RateRateItemBaseStyle" TargetType="hc:RateItem">
|
<Style x:Key="RateRateItemBaseStyle" TargetType="hc:RateItem">
|
||||||
<Setter Property="Focusable" Value="False" />
|
<Setter Property="Focusable" Value="False" />
|
||||||
<Setter Property="Margin" Value="{Binding ItemMargin,RelativeSource={RelativeSource AncestorType=hc:Rate}}" />
|
|
||||||
<Setter Property="Width" Value="{Binding ItemWidth,RelativeSource={RelativeSource AncestorType=hc:Rate}}" />
|
|
||||||
<Setter Property="Height" Value="{Binding ItemHeight,RelativeSource={RelativeSource AncestorType=hc:Rate}}" />
|
|
||||||
<Setter Property="AllowHalf" Value="{Binding AllowHalf,RelativeSource={RelativeSource AncestorType=hc:Rate}}" />
|
|
||||||
<Setter Property="AllowClear" Value="{Binding AllowClear,RelativeSource={RelativeSource AncestorType=hc:Rate}}" />
|
|
||||||
<Setter Property="Icon" Value="{Binding Icon,RelativeSource={RelativeSource AncestorType=hc:Rate}}" />
|
|
||||||
<Setter Property="IsReadOnly" Value="{Binding IsReadOnly,RelativeSource={RelativeSource AncestorType=hc:Rate}}" />
|
|
||||||
<Setter Property="Background" Value="{Binding Background,RelativeSource={RelativeSource AncestorType=hc:Rate}}" />
|
|
||||||
<Setter Property="Template">
|
<Setter Property="Template">
|
||||||
<Setter.Value>
|
<Setter.Value>
|
||||||
<ControlTemplate TargetType="hc:RateItem">
|
<ControlTemplate TargetType="hc:RateItem">
|
||||||
|
|||||||
@@ -198,7 +198,15 @@ namespace HandyControl.Controls
|
|||||||
{
|
{
|
||||||
var item = new RateItem
|
var item = new RateItem
|
||||||
{
|
{
|
||||||
Index = i
|
Index = i,
|
||||||
|
Width = ItemWidth,
|
||||||
|
Height = ItemHeight,
|
||||||
|
Margin = ItemMargin,
|
||||||
|
AllowHalf = AllowHalf,
|
||||||
|
AllowClear = AllowClear,
|
||||||
|
Icon = Icon,
|
||||||
|
IsReadOnly = IsReadOnly,
|
||||||
|
Background = Background
|
||||||
};
|
};
|
||||||
|
|
||||||
Items.Add(item);
|
Items.Add(item);
|
||||||
|
|||||||
@@ -11,14 +11,6 @@
|
|||||||
|
|
||||||
<Style x:Key="RateRateItemBaseStyle" TargetType="hc:RateItem">
|
<Style x:Key="RateRateItemBaseStyle" TargetType="hc:RateItem">
|
||||||
<Setter Property="Focusable" Value="False"/>
|
<Setter Property="Focusable" Value="False"/>
|
||||||
<Setter Property="Margin" Value="{Binding ItemMargin,RelativeSource={RelativeSource AncestorType=hc:Rate}}"/>
|
|
||||||
<Setter Property="Width" Value="{Binding ItemWidth,RelativeSource={RelativeSource AncestorType=hc:Rate}}"/>
|
|
||||||
<Setter Property="Height" Value="{Binding ItemHeight,RelativeSource={RelativeSource AncestorType=hc:Rate}}"/>
|
|
||||||
<Setter Property="AllowHalf" Value="{Binding AllowHalf,RelativeSource={RelativeSource AncestorType=hc:Rate}}"/>
|
|
||||||
<Setter Property="AllowClear" Value="{Binding AllowClear,RelativeSource={RelativeSource AncestorType=hc:Rate}}"/>
|
|
||||||
<Setter Property="Icon" Value="{Binding Icon,RelativeSource={RelativeSource AncestorType=hc:Rate}}"/>
|
|
||||||
<Setter Property="IsReadOnly" Value="{Binding IsReadOnly,RelativeSource={RelativeSource AncestorType=hc:Rate}}"/>
|
|
||||||
<Setter Property="Background" Value="{Binding Background,RelativeSource={RelativeSource AncestorType=hc:Rate}}"/>
|
|
||||||
<Setter Property="Template">
|
<Setter Property="Template">
|
||||||
<Setter.Value>
|
<Setter.Value>
|
||||||
<ControlTemplate TargetType="hc:RateItem">
|
<ControlTemplate TargetType="hc:RateItem">
|
||||||
@@ -86,4 +78,4 @@
|
|||||||
</Setter>
|
</Setter>
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
||||||
@@ -9805,14 +9805,6 @@
|
|||||||
</Style>
|
</Style>
|
||||||
<Style x:Key="RateRateItemBaseStyle" TargetType="hc:RateItem">
|
<Style x:Key="RateRateItemBaseStyle" TargetType="hc:RateItem">
|
||||||
<Setter Property="Focusable" Value="False" />
|
<Setter Property="Focusable" Value="False" />
|
||||||
<Setter Property="Margin" Value="{Binding ItemMargin,RelativeSource={RelativeSource AncestorType=hc:Rate}}" />
|
|
||||||
<Setter Property="Width" Value="{Binding ItemWidth,RelativeSource={RelativeSource AncestorType=hc:Rate}}" />
|
|
||||||
<Setter Property="Height" Value="{Binding ItemHeight,RelativeSource={RelativeSource AncestorType=hc:Rate}}" />
|
|
||||||
<Setter Property="AllowHalf" Value="{Binding AllowHalf,RelativeSource={RelativeSource AncestorType=hc:Rate}}" />
|
|
||||||
<Setter Property="AllowClear" Value="{Binding AllowClear,RelativeSource={RelativeSource AncestorType=hc:Rate}}" />
|
|
||||||
<Setter Property="Icon" Value="{Binding Icon,RelativeSource={RelativeSource AncestorType=hc:Rate}}" />
|
|
||||||
<Setter Property="IsReadOnly" Value="{Binding IsReadOnly,RelativeSource={RelativeSource AncestorType=hc:Rate}}" />
|
|
||||||
<Setter Property="Background" Value="{Binding Background,RelativeSource={RelativeSource AncestorType=hc:Rate}}" />
|
|
||||||
<Setter Property="Template">
|
<Setter Property="Template">
|
||||||
<Setter.Value>
|
<Setter.Value>
|
||||||
<ControlTemplate TargetType="hc:RateItem">
|
<ControlTemplate TargetType="hc:RateItem">
|
||||||
|
|||||||
Reference in new issue
Block a user