|
<Window x:Class="BindableConverterParameterTake2.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:BindableConverterParameterTake2"
Title="BindableConverterParameterTake2" Height="350" Width="525">
<Window.Resources >
<local:TestValueConverter x:Key="TestValueConverter"/>
<local:TestMultiValueConverter x:Key="TestMultiValueConverter"/>
</Window.Resources>
<Grid Initialized="Grid_Initialized" >
<StackPanel >
<TextBox Text="{Binding Path=FirstName,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
<!--<TextBox Text="{Binding Path=LastName,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>-->
<TextBox Text="{Binding Path=ConcatSign}" IsReadOnly="True" />
<TextBox Text="{Binding Path=FirstName,Converter={StaticResource TestValueConverter},ConverterParameter='Binding Path=ConcatSign',Mode=TwoWay}"
Tag="{Binding Path=LastName,Converter={StaticResource TestValueConverter},ConverterParameter='Binding Path=ConcatSign',Mode=TwoWay}"
/>
<Button Content="Click here to move focus from above TextBox and trigger the Two-Way Binding Target-to-Source"/>
</StackPanel>
</Grid>
</Window>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.