Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
540
DialogWindow
posted

I am trying to make DialogWindow as a  user control.

I am creating instance of that user control and then doing control.Show but dialog window is not showing up I also tried doing the following but with no success.

Any help is appreciated.

public  void  Show()

{

 

 

 

this.xamWindow.WindowState = Infragistics.Controls.Interactions.WindowState

.Normal;

 

 

 

this.xamWindow.LayoutUpdated += centerWindow;

 

 

 

this.xamWindow.Show();

}

 

 

 

void xamWindow_LayoutUpdated(object sender, EventArgs e)

{

 

 

 

this.xamWindow.CenterDialogWindow();

 

 

 

this.xamWindow.LayoutUpdated -= centerWindow;

}