Browse Source

use two way binding.

pull/4487/head
Dan Walmsley 6 years ago
parent
commit
a899f4040e
  1. 2
      samples/ControlCatalog/Pages/TextBoxPage.xaml

2
samples/ControlCatalog/Pages/TextBoxPage.xaml

@ -20,7 +20,7 @@
<Style Selector="TextBox.Password">
<Setter Property="InnerRightContent">
<Template>
<ToggleButton Content="ToggleButton" IsChecked="{Binding $parent[TextBox].ShowPassword, Mode=OneWay}"/>
<ToggleButton Content="ToggleButton" IsChecked="{Binding $parent[TextBox].ShowPassword, Mode=TwoWay}"/>
</Template>
</Setter>
</Style>

Loading…
Cancel
Save