This repository has been archived by the owner on May 1, 2024. It is now read-only.
[Enhancement] using BoolToObjectConverter and VariableMultiValueConverter at the same time #1199
Replies: 2 comments 1 reply
-
<pages:BasePage.Resources>
<xct:VariableMultiValueConverter x:Key="AllTrueConverter" ConditionType="All" />
</pages:BasePage.Resources>
...
...
<Label>
<Label.Triggers>
<DataTrigger TargetType="Label" Value="true">
<DataTrigger.Binding>
<MultiBinding Converter="{StaticResource AllTrueConverter}">
<Binding Path="isSys" />
<Binding Path="isEditable" />
</MultiBinding>
</DataTrigger.Binding>
<Setter Property="TextColor" Value="Green" />
</DataTrigger>
</Label.Triggers>
</Label> |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
pictos
-
Moved to discussions |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
hello, I'm using XamarinCommunityToolkit's converter, and need to use BoolToObjectConverter and VariableMultiValueConverter at the same time
Intended Use Case
i am working in a view with list, the model in this view like this:
i need the set the special color for the item's name when (item.isSys && isEditable), so i found the converter
VariableMultiValueConverter
, but how can i do to convert the result to color when the ConditionType=All ?Who Will Do The Work?
Beta Was this translation helpful? Give feedback.
All reactions