This question is locked. New answers and comments are not allowed.
Hello,
I encountered the next bug: when I set the Value property of RadMaskedTextInput programmatically, the ValueChanged event doesn't fire. I'm using Silverlight 5 and 2011 Q3 controls with dll version number 2011.3.1220.1040. A mock project to reproduce this contains only the main page:
and codebehind file:
The exception will be never thrown (nor breakpoint hit if set there). But if you first click and then type some text in the view, the exception will be thrown, so the ValueChanged event is fired normally.
This results in the fact I can't create a unit test for my custom controls using RadMaskedTextInput. Or should I use some other way to simulate user input to the RadMaskedTextInput control?
Thanks,
Mykhaylo
I encountered the next bug: when I set the Value property of RadMaskedTextInput programmatically, the ValueChanged event doesn't fire. I'm using Silverlight 5 and 2011 Q3 controls with dll version number 2011.3.1220.1040. A mock project to reproduce this contains only the main page:
<
UserControl
x:Class
=
"SilverlightMock.MainPage"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
mc:Ignorable
=
"d"
d:DesignHeight
=
"300"
d:DesignWidth
=
"400"
>
<
StackPanel
x:Name
=
"LayoutRoot"
Background
=
"White"
>
<
Button
Content
=
"Click"
Click
=
"Button_Click"
/>
<
telerik:RadMaskedTextInput
x:Name
=
"Box"
/>
</
StackPanel
>
</
UserControl
>
using
System;
using
System.Windows;
using
System.Windows.Controls;
namespace
SilverlightMock
{
public
partial
class
MainPage : UserControl
{
public
MainPage()
{
InitializeComponent();
}
private
void
Button_Click(
object
sender, RoutedEventArgs e)
{
var box =
this
.Box;
box.ValueChanged += box_ValueChanged;
box.Value =
"111"
;
box.Value =
"222"
;
box.Value =
"333"
;
}
void
box_ValueChanged(
object
sender, Telerik.Windows.RadRoutedEventArgs e)
{
throw
new
Exception();
}
}
}
This results in the fact I can't create a unit test for my custom controls using RadMaskedTextInput. Or should I use some other way to simulate user input to the RadMaskedTextInput control?
Thanks,
Mykhaylo