This question is locked. New answers and comments are not allowed.
Using Version 2014.2.617.3040
I've created a RadTextBox in XAML inside a Collapsed Grid and set the Focus programmatically using a Behavior (See FocusBehavior attached). The Grid won't be set to Visible.
Now I'm opening a RadMessageBox using "await RadMessageBox.ShowAsync()". That results in
How should I fix this? Removing the Focus programmatically before calling RadMessageBox.ShowAsync() ?
I've created a RadTextBox in XAML inside a Collapsed Grid and set the Focus programmatically using a Behavior (See FocusBehavior attached). The Grid won't be set to Visible.
Now I'm opening a RadMessageBox using "await RadMessageBox.ShowAsync()". That results in
{System.NullReferenceException: Object reference not
set
to an instance of an
object
.
at Telerik.Windows.Controls.RadTextBox.OnLostFocus(RoutedEventArgs e)
at System.Windows.Controls.Control.OnLostFocus(Control ctrl, EventArgs e)
at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName)}
How should I fix this? Removing the Focus programmatically before calling RadMessageBox.ShowAsync() ?