When I close a cofirm radwindow (showdialog()), it won't focus on a textbox. If I change it to a regular wpf window and close it, everything is fine.
When I debug it and step through it, it works so it could be some race condition.
When I debug it and step through it, it works so it could be some race condition.
RadWindow.Confirm(
new
DialogParameters(){
Owner = myMainpage,
DialogStartupLocation = WindowStartupLocation.CenterOwner,
Content =
message,
Closed = Cancel_Click
...
private
void
Cancel_Click(
object
sender, Telerik.Windows.Controls.WindowClosedEventArgs e)
{
Dispatcher.BeginInvoke(DispatcherPriority.ApplicationIdle, (System.Threading.ThreadStart)delegate()
{
myTextBox.Focus();
});
//set the focus here