Created
July 20, 2022 13:58
-
-
Save somapatrik/82c2071159903558e77bfb78c77a7408 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Example of conditional styling --> | |
<Label Grid.Row="2" Grid.Column="1" Text="{Binding Material.ITEM_STATE_FORMAT}" HorizontalOptions="Center" Style="{StaticResource detailText}"> | |
<Label.Triggers> | |
<DataTrigger Binding="{Binding Material.State}" TargetType="Label" Value="B"> | |
<Setter Property="Style" Value="{StaticResource detailText}" /> | |
</DataTrigger> | |
<DataTrigger Binding="{Binding Material.State}" TargetType="Label" Value="N"> | |
<Setter Property="Style" Value="{StaticResource detailTextError}" /> | |
</DataTrigger> | |
</Label.Triggers> | |
</Label> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment