This question is locked. New answers and comments are not allowed.
Hello,
I'm trying to understand the difference between the "CurrentText" and "Text" properties of the RadWatermarkTextBox control. Which property should I bind my data object to? One or the other or both?
I thought it made sense that when I was typing in the textbox, the "CurrentText" property was updated with each character entered, but the "Text" property was not actually updated until the textbox lost focus. But for a small demo project I put together, it doesn't seem to matter... As I type in the textbox, it looks like both the "Text" and "CurrentText" property are updated.
I'm trying to understand the difference between the "CurrentText" and "Text" properties of the RadWatermarkTextBox control. Which property should I bind my data object to? One or the other or both?
I thought it made sense that when I was typing in the textbox, the "CurrentText" property was updated with each character entered, but the "Text" property was not actually updated until the textbox lost focus. But for a small demo project I put together, it doesn't seem to matter... As I type in the textbox, it looks like both the "Text" and "CurrentText" property are updated.
<
Grid
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"1*"
/>
</
Grid.RowDefinitions
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
Width
=
"1*"
/>
<
ColumnDefinition
Width
=
"1*"
/>
</
Grid.ColumnDefinitions
>
<
StackPanel
Grid.Row
=
"0"
Grid.Column
=
"0"
Background
=
"Pink"
>
<
Border
Padding
=
"3"
>
<
telerik:RadWatermarkTextBox
x:Name
=
"tb1"
Text
=
"Text"
CurrentText
=
"CurrentText"
WatermarkContent
=
"WatermarkContent"
/>
</
Border
>
</
StackPanel
>
<
StackPanel
Grid.Row
=
"0"
Grid.Column
=
"1"
Background
=
"White"
>
<
Border
Padding
=
"3"
>
<
TextBlock
Text
=
"{Binding ElementName=tb1, Path=Text, StringFormat='@Text=\{0\}'}"
/>
</
Border
>
<
Border
Padding
=
"3"
>
<
TextBlock
Text
=
"{Binding ElementName=tb1, Path=CurrentText, StringFormat='@CurrentText=\{0\}'}"
/>
</
Border
>
<
Border
Padding
=
"3"
>
<
TextBlock
Text
=
"{Binding ElementName=tb1, Path=WatermarkContent, StringFormat='@WatermarkContent=\{0\}'}"
/>
</
Border
>
</
StackPanel
>
</
Grid
>