Home > Not Working > Windowstartuplocation Centerowner Not Working

Windowstartuplocation Centerowner Not Working


Browse other questions tagged wpf xaml or ask your own question. This is equivalent to the user maximizing the window. To extend on what Will Eddins commented, you could create an overload method for ShowDialog() or Show() in your Window: public void ShowDialog(Window owner) { this.Owner = owner; this.ShowDialog(); } public Later when the Loaded event fires it sets DataContext and the window updates its content but the positioning has already occured. have a peek here

Alphabetically permute a string Dropping many values Does any organism use both photosynthesis and respiration? I'm sure its random because there is no owner set. If I then open just one of the instances, the width and height properties of all window instance are suddenly valid numbers, not just the width and height of the window Thanks! ;-) –James Nov 13 '14 at 12:49 add a comment| up vote 48 down vote You can still use the Screen class from a WPF app.

Windowstartuplocation Centerowner Not Working

up vote 11 down vote favorite 1 Here's the Window declaration: Here's the Style declaration: