Hi
When I run my WPF test and the application opens a RadWindow dialog, the application/dialog freezes part-way through fading-in (see attached). The code I am using to open the RadWinow is below
Do you kow why this is happening?
Thanks,
Mike.
When I run my WPF test and the application opens a RadWindow dialog, the application/dialog freezes part-way through fading-in (see attached). The code I am using to open the RadWinow is below
var dp =
new
DialogParameters
{
CancelButtonContent =
"Cancel"
,
Content = msg.ToString(),
DialogStartupLocation = WindowStartupLocation.CenterOwner,
Header =
"Continue?"
,
OkButtonContent =
"Continue"
,
Owner = Window.GetWindow(
this
),
Closed = (dpSender, dpArgs) =>
{
if
(dpArgs.DialogResult ==
true
)
(DataContext
as
PvaAvaCaptureViewModel).ImportGridCommand.Execute(fileInfo);
}
};
RadWindow.Confirm(dp);
Do you kow why this is happening?
Thanks,
Mike.
10 Answers, 1 is accepted
0
Hi Mike,
No we have no idea that would be happening. Can you generate a small sample WPF application that reproduces this problem and send it to us to study? We'd like to reproduce the problem on our own machines to figure out what's going on.
I look forward to hearing back from you!
Regards,
Cody
Telerik
No we have no idea that would be happening. Can you generate a small sample WPF application that reproduces this problem and send it to us to study? We'd like to reproduce the problem on our own machines to figure out what's going on.
I look forward to hearing back from you!
Regards,
Cody
Telerik
0
Mike
Top achievements
Rank 1
answered on 06 Feb 2015, 02:15 PM
Hi
I have created a simple application which reproduces this issue.
Essentially the application opens an OpenFileDialog followed by a RadWindow.
In order to cause it to freeze, the user needs to input a file (I used C:\Temp\Test.xlsx) and click OK. It doesn't freeze if you click Cancel on the OpenFileDialog.
See attached.
Thanks,
Mike.
I have created a simple application which reproduces this issue.
Essentially the application opens an OpenFileDialog followed by a RadWindow.
In order to cause it to freeze, the user needs to input a file (I used C:\Temp\Test.xlsx) and click OK. It doesn't freeze if you click Cancel on the OpenFileDialog.
See attached.
Thanks,
Mike.
0
Hello Mike,
There's something wrong with your sample application such that it is crashing all on it's own which invalidates any Test Studio problem investigation. If you can fix this crash and send me an updated sample application I'll be happy to have another look. Here's a video demonstration of the crash.
http://screencast.com/t/AjZwl0tU2
Regards,
Cody
Telerik
There's something wrong with your sample application such that it is crashing all on it's own which invalidates any Test Studio problem investigation. If you can fix this crash and send me an updated sample application I'll be happy to have another look. Here's a video demonstration of the crash.
http://screencast.com/t/AjZwl0tU2
Regards,
Cody
Telerik
0
Mike
Top achievements
Rank 1
answered on 10 Feb 2015, 06:31 AM
Hi Cody.
Apologies for that. You just need to add a reference to Telerik.Windows.Controls.Input and it should work.
Thanks,
Mike.
Apologies for that. You just need to add a reference to Telerik.Windows.Controls.Input and it should work.
Thanks,
Mike.
0
Hello Mike,
I tried that but it did not help. Here's a video demonstration, including the version of the WPF controls I'm using.
http://screencast.com/t/GrrWWzHfqt
Regards,
Cody
Telerik
I tried that but it did not help. Here's a video demonstration, including the version of the WPF controls I'm using.
http://screencast.com/t/GrrWWzHfqt
Regards,
Cody
Telerik
0
Mike
Top achievements
Rank 1
answered on 11 Feb 2015, 06:24 AM
Hi Cody
I had a screen-sharing session yesterday with Andy Wieland. We worked through this issue but were unable to resolve it. He said he would speak to you.
Maybe the easiest thing for you to do is to create a new project with a button and add the following click handler:
When you get it working (i.e. freezing), if you change the Handle dialog step to use CANCEL it doesn't cause it to freeze and the RadWindow is displayed ok.
We are using older Telerik controls, so I will try upgrading as well.
Thanks,
Mike.
I had a screen-sharing session yesterday with Andy Wieland. We worked through this issue but were unable to resolve it. He said he would speak to you.
Maybe the easiest thing for you to do is to create a new project with a button and add the following click handler:
private
void
Button_Click(
object
sender, RoutedEventArgs e)
{
OpenFileDialog dialog =
new
OpenFileDialog();
dialog.ShowDialog();
var dp =
new
DialogParameters
{
CancelButtonContent =
"Cancel"
,
Content =
"hello"
,
DialogStartupLocation = WindowStartupLocation.CenterOwner,
Header =
"Proceed"
,
OkButtonContent =
"Continue"
,
Owner = Window.GetWindow(
this
)
};
RadWindow.Confirm(dp);
}
When you get it working (i.e. freezing), if you change the Handle dialog step to use CANCEL it doesn't cause it to freeze and the RadWindow is displayed ok.
We are using older Telerik controls, so I will try upgrading as well.
Thanks,
Mike.
0
Mike
Top achievements
Rank 1
answered on 11 Feb 2015, 06:45 AM
Hi Cody
I have just tried it with the latest controls version (2014.3.1202.40) but the same issue remains.
Mike.
I have just tried it with the latest controls version (2014.3.1202.40) but the same issue remains.
Mike.
0
Hello Mike,
I switched from VS2013 to VS2010 and now your sample application is working properly. Still no repro:
http://screencast.com/t/FvkAVlTNAgP
Regards,
Cody
Telerik
I switched from VS2013 to VS2010 and now your sample application is working properly. Still no repro:
http://screencast.com/t/FvkAVlTNAgP
Regards,
Cody
Telerik
0
Mike
Top achievements
Rank 1
answered on 13 Feb 2015, 06:22 AM
Hi Cody
I noticed that in your video you chose a file which it couldn't find.
You need to choose a file which exists for it to freeze.
If I cancel the dialog or choose a file that doesn't exist, it works fine and it doesn't freeze.
I just tried it with a different file in a different path and it still freezes.
Thanks,
Mike.
I noticed that in your video you chose a file which it couldn't find.
You need to choose a file which exists for it to freeze.
If I cancel the dialog or choose a file that doesn't exist, it works fine and it doesn't freeze.
I just tried it with a different file in a different path and it still freezes.
Thanks,
Mike.
0
Hello Mike,
You;re right. That makes a difference. Thanks for pointing that out. I've filed a problem report on it here.
Regards,
Cody
Telerik
You;re right. That makes a difference. Thanks for pointing that out. I've filed a problem report on it here.
Regards,
Cody
Telerik