Skip to main content

Microsoft Silverlight

Answered Question Open childwindow in initializeRSS Feed

(0)

Agnushallard
Agnushal...

Member

Member

54 points

140 Posts

Open childwindow in initialize

 

Using

Visual Studio 2008
Silverlight 3
WCF
MySQL

Sledge70
Sledge70

Contributor

Contributor

5986 points

1,049 Posts

Answered Question

Re: Open childwindow in initialize

The simple answer is you can't. (You could achieve it but would require the child not being added to the control that is currently initialising).

You need to open it in the loaded event. In your initialise event put the following:

 

public MainPage()
{
    InitializeComponent();
    Loaded += new RoutedEventHandler(MainPage_Loaded);
}

void MainPage_Loaded(object sender, RoutedEventArgs e)
{
    // Open your child window here
}
 

______________________________________________________
Please mark replies as answers if they answered your question...

Flexman on Silverlight
  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities