Label TextColor = blue when label text property is != 0

                            <Label Grid.Row="0" Grid.Column="0" Text="{Binding ValueMove}"   FontSize="16">
                                <Label.Triggers>
                                    <Trigger TargetType="Label" Property="Text" Value="">
                                        <Setter Property="TextColor" Value="Blue" />
                                    </Trigger>
                                </Label.Triggers>
                            </Label>

Answers

  • ColeXColeX Member, Xamarin Team Xamurai
            <Label.Triggers>
                <Trigger TargetType="Label" Property="Text" Value="0">
                    <Setter Property="TextColor" Value="Blue"/>
                </Trigger>
            </Label.Triggers>
    

Sign In or Register to comment.