Posted 16 years ago
by Anurodh Ora
Hi,
Run time exception occurring when we call Close on loaded event.
Test scenario:
1) Have two ribbon windows(say R1 and R2).
2) Place a button(say Create) in R1 and on click event place following code3) On Loaded event of R2 place following code
4) In App.xaml set StartupUri="R1.xaml"
5) Run the application and click on Create. Notice the run time exception.
Note: Above scenario works fine if we use R2 as normal wpf window.
Is this a bug / are we doing something wrong here / any workaround ?
Thanks and Regards,
Anurodh
[Modified at 12/08/2008 12:31 AM]
Run time exception occurring when we call Close on loaded event.
Test scenario:
1) Have two ribbon windows(say R1 and R2).
2) Place a button(say Create) in R1 and on click event place following code
R2 window = new R2();
window.ShowDialog();
this.Close();
5) Run the application and click on Create. Notice the run time exception.
Note: Above scenario works fine if we use R2 as normal wpf window.
Is this a bug / are we doing something wrong here / any workaround ?
Thanks and Regards,
Anurodh
[Modified at 12/08/2008 12:31 AM]