or
<
telerik:RadMaskedNumericInput
Grid.Column
=
"1"
HorizontalAlignment
=
"Left"
Grid.Row
=
"2"
Margin
=
"5,0,0,0"
VerticalAlignment
=
"Bottom"
Mask
=
"####"
FontFamily
=
"Century Gothic"
FontSize
=
"16"
Value
=
"{Binding /ProbationStartYear}"
IsClearButtonVisible
=
"False"
AutoFillNumberGroupSeparators
=
"False"
/>
<
Window
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
x:Class
=
"RadTextChanged.MainWindow"
Title
=
"MainWindow"
Height
=
"350"
Width
=
"525"
>
<
Grid
>
<
StackPanel
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
TextBlock
Name
=
"txt123"
/>
<
telerik:RadMaskedTextInput
Margin
=
"10 0 0 0"
ValueChanged
=
"tbChange_ValueChanged"
Name
=
"tbChange"
Width
=
"200"
Height
=
"30"
/>
<
Button
Content
=
"Change Rad TextInput"
Margin
=
"10 0 0 0"
Click
=
"Button_Click"
Width
=
"200"
Height
=
"30"
/>
</
StackPanel
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
TextBlock
Name
=
"txtPlain"
/>
<
TextBox
Margin
=
"10 0 0 0"
TextChanged
=
"tbPlain_TextChanged"
Name
=
"tbPlain"
Width
=
"200"
Height
=
"30"
/>
<
Button
Content
=
"Change Textbox"
Name
=
"btnPlain"
Margin
=
"10 0 0 0"
Click
=
"btnPlain_Click"
Width
=
"200"
Height
=
"30"
/>
</
StackPanel
>
</
StackPanel
>
</
Grid
>
</
Window
>
namespace
RadTextChanged
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public
partial
class
MainWindow : Window
{
public
MainWindow()
{
InitializeComponent();
}
private
void
Button_Click(
object
sender, RoutedEventArgs e)
{
tbChange.Value =
"test123"
;
}
private
void
tbChange_ValueChanged(
object
sender, Telerik.Windows.RadRoutedEventArgs e)
{
txt123.Text =
"Hello"
;
}
private
void
tbPlain_TextChanged(
object
sender, TextChangedEventArgs e)
{
txtPlain.Text =
"Hello Plain"
;
}
private
void
btnPlain_Click(
object
sender, RoutedEventArgs e)
{
tbPlain.Text =
"TestPlain"
;
}
}
}