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;

}

Parents
No Data
Reply
  • 540
    posted

    Also xamDialogWindow.Show() deson't work. I have to do something like that

    this.LayoutRoot.Children.Add(window);

    Is it possible to call its Show method like silverlight childwindow's show method.

     

Children