password


SUBMITTED BY: Guest

DATE: Dec. 11, 2013, 6:23 a.m.

FORMAT: Text only

SIZE: 970 Bytes

HITS: 851

  1. <Grid>
  2. <Grid.Resources>
  3. <l:MatchedPairConverter x:Key="_PasswordMatchConverter" />
  4. <Style TargetType="{x:Type TextBox}" BasedOn="{StaticResource {x:Type TextBox}}" x:Key="MatchedPairBound">
  5. <Setter Property="Background">
  6. <Setter.Value>
  7. <MultiBinding Converter="{StaticResource _PasswordMatchConverter}">
  8. <Binding Path="Text" ElementName="FIRST" />
  9. <Binding Path="Text" ElementName="SECOND" />
  10. </MultiBinding>
  11. </Setter.Value>
  12. </Setter>
  13. </Style>
  14. </Grid.Resources>
  15. <TextBox Grid.Row="0" Grid.Column="0" Name="Password1" Text="P"
  16. Style="{StaticResource MatchedPairBound, ElementNames=Password1, Password2}" />

comments powered by Disqus