Skip to content

Commit

Permalink
Add Mode=OneWay to switch to x:Bind in XML comment for State Triggers
Browse files Browse the repository at this point in the history
Apply suggestions from code review
  • Loading branch information
michael-hawker authored and Arlodotexe committed Oct 30, 2024
1 parent fa5579c commit 894dc33
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/Triggers/src/CompareStateTrigger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace CommunityToolkit.WinUI;
/// <para>
/// Example: Trigger if a value is greater than 0
/// <code lang="xaml">
/// &lt;triggers:CompareStateTrigger Value="{x:Bind MyValue}" CompareTo="0" Comparison="GreaterThan" />
/// &lt;triggers:CompareStateTrigger Value="{x:Bind MyValue, Mode=OneWay}" CompareTo="0" Comparison="GreaterThan" />
/// </code>
/// </para>
/// </remarks>
Expand Down
2 changes: 1 addition & 1 deletion components/Triggers/src/IsEqualStateTrigger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace CommunityToolkit.WinUI;
/// <para>
/// Example: Trigger if a value is null
/// <code lang="xaml">
/// &lt;triggers:EqualsStateTrigger Value="{x:Bind MyObject}" EqualTo="{x:Null}" />
/// &lt;triggers:EqualsStateTrigger Value="{x:Bind MyObject, Mode=OneWay}" EqualTo="{x:Null}" />
/// </code>
/// </para>
/// </remarks>
Expand Down

0 comments on commit 894dc33

Please sign in to comment.