Skip to content

Commit a477cd8

Browse files
committed
💄 ChangePropertyAction 限定值的颜色类型
1 parent a2cf95f commit a477cd8

File tree

1 file changed

+12
-16
lines changed

1 file changed

+12
-16
lines changed

src/BD.WTTS.Client.Plugins.Accelerator/UI/Views/Controls/GameAppItem.axaml

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -213,27 +213,23 @@
213213
Binding="{Binding PingValue}"
214214
ComparisonCondition="GreaterThan"
215215
Value="120">
216-
<ia:ChangePropertyAction
217-
PropertyName="Fill"
218-
TargetObject="PingEllipse"
219-
Value="#FF4F58" />
220-
<ia:ChangePropertyAction
221-
PropertyName="Foreground"
222-
TargetObject="PingText"
223-
Value="#FF4F58" />
216+
<ia:ChangePropertyAction PropertyName="Fill" TargetObject="PingEllipse">
217+
<SolidColorBrush Color="#FF4F58" />
218+
</ia:ChangePropertyAction>
219+
<ia:ChangePropertyAction PropertyName="Foreground" TargetObject="PingText">
220+
<SolidColorBrush Color="#FF4F58" />
221+
</ia:ChangePropertyAction>
224222
</ia:DataTriggerBehavior>
225223
<ia:DataTriggerBehavior
226224
Binding="{Binding PingValue}"
227225
ComparisonCondition="LessThanOrEqual"
228226
Value="120">
229-
<ia:ChangePropertyAction
230-
PropertyName="Fill"
231-
TargetObject="PingEllipse"
232-
Value="#47A42B" />
233-
<ia:ChangePropertyAction
234-
PropertyName="Foreground"
235-
TargetObject="PingText"
236-
Value="#47A42B" />
227+
<ia:ChangePropertyAction PropertyName="Fill" TargetObject="PingEllipse">
228+
<SolidColorBrush Color="#47A42B" />
229+
</ia:ChangePropertyAction>
230+
<ia:ChangePropertyAction PropertyName="Foreground" TargetObject="PingText">
231+
<SolidColorBrush Color="#47A42B" />
232+
</ia:ChangePropertyAction>
237233
</ia:DataTriggerBehavior>
238234
</i:Interaction.Behaviors>
239235
<TextBlock

0 commit comments

Comments
 (0)