Skip to content

Instantly share code, notes, and snippets.

@joshayoung
Created July 19, 2021 20:45
Show Gist options
  • Save joshayoung/6ed54407d101e84dbc62c3cc4cb37f04 to your computer and use it in GitHub Desktop.
Save joshayoung/6ed54407d101e84dbc62c3cc4cb37f04 to your computer and use it in GitHub Desktop.

Revisions

  1. Josh Young created this gist Jul 19, 2021.
    11 changes: 11 additions & 0 deletions BasicTrigger.cs
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    <Entry Placeholder="Test Value">
    <Entry.Triggers>
    <Trigger TargetType="Entry" Property="Text" Value="Change When This Value">

    <!-- The 'Entry' field will get these values when the text in the Entry matches the 'Value' above -->
    <Setter Property="BackgroundColor" Value="Tomato" />
    <Setter Property="Scale" Value="2" />
    <Setter Property="TextColor" Value="White" />
    </Trigger>
    </Entry.Triggers>
    </Entry>