-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBindTest.xaml
37 lines (35 loc) · 1.57 KB
/
BindTest.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<Window x:Class="Test.BindTest"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:Test"
xmlns:hc="https://handyorg.github.io/handycontrol"
mc:Ignorable="d"
Title="BindTest" Height="450" Width="800">
<Grid>
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition />
<RowDefinition />
<RowDefinition />
<RowDefinition />
<RowDefinition />
</Grid.RowDefinitions>
<StackPanel VerticalAlignment="Center">
<TextBox
TextChanged="Text_OnTextChanged"
Text="{Binding Input, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
Height="40" Width="200" />
</StackPanel>
<StackPanel Grid.Row="1" VerticalAlignment="Center">
<ProgressBar IsIndeterminate="True" Height="5px"/>
</StackPanel>
<StackPanel Grid.Row="2">
<hc:TextBox x:Name="Text2" Text="{Binding Input, Mode=TwoWay}" Height="40" Width="200" ></hc:TextBox>
</StackPanel>
<StackPanel Grid.Row="3" >
<TextBlock x:Name="Text3" Height="40" Width="200" Text="{Binding Input, Mode=TwoWay}" TextAlignment="Center" Foreground="Red" FontSize="15px"></TextBlock>
</StackPanel>
</Grid>
</Window>