ChildWindow HorizontalAlignment and VerticalAlignment Issue

Jun 30, 2011 at 4:36 PM

First of all, thank you very much for creating this great WPF toolkit!

I built a sample that uses ChildWindow as an error window. When I set HorizontalAlignment to Center and VerticalAlignment to Center, the ChildWindow just looks weird inside the main window. Is that a bug?

The sample is called "Northwind Sample" and it is within the Downloads section of You can easily trigger the error window by not having a database running.


Jun 30, 2011 at 5:45 PM
Edited Jun 30, 2011 at 5:46 PM

Don't set the Horizontal or Vertical alignments.  Instead use the WindowStartupLocation property.  Replace what you have with the following in your ErrorWindowStyle

<Setter Property="WindowStartupLocation" Value="Center" />



Jun 30, 2011 at 8:10 PM

Thank you so much! I get the problem fixed.