Skip to main content
Home Forums Silverlight Programming Programming with .NET - General Open childwindow in initialize
1 replies. Latest Post by Sledge70 on November 4, 2009.
(0)
Agnushal...
Member
54 points
140 Posts
11-04-2009 1:54 PM |
Sledge70
Contributor
5986 points
1,050 Posts
11-04-2009 3:13 PM |
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 }