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

Loading…
Cancel
Save