Starting with version 2.0, ChildWindow and MessageBox are derived from the WindowControl class and no longer manage their parent’s background or their position based on their parent’s size.
Starting with version 2.0, [[ChildWindow]] and [[MessageBox]] are derived from the [[WindowControl]] class and no longer manage their parent’s background or their position based on their parent’s size.
A WindowContainer should now be used to contain these controls. It provides an area where multiple WindowControl-derived controls (ChildWindow or MessageBox controls) can be displayed. This is particularly interesting in an XBAP application where windows can't be popped up. In this case the WindowContainer can be sized to fit the application and the window-like control can be moved around in the WindowContainer.
@ -15,7 +15,7 @@ It can be useful to set the WindowContainer over an application (with the same w
In the WindowContainer, the modal windows will always be in front, preventing the use of other windows from the WindowContainer or controls from the application.
{{
```
<xctk:WindowContainer>
<xctk:ChildWindowWindowBackground="Blue"
Left="75"
@ -38,12 +38,14 @@ In the WindowContainer, the modal windows will always be in front, preventing th
<xctk:MessageBoxCaption="MessageBox"
Text="This is a MessageBox"/>
</xctk:WindowContainer>
}}
Note: You can find complete documentation of the API [here](http://doc.xceedsoft.com/products/XceedWpfToolkit/). See the 'Live Explorer' application with source code that demonstrates the features of this class and others [here](http://wpftoolkit.com/try-it/).
```
## Properties
|| Property || Description
| ModalBackgroundBrush | Gets or sets a Background Color for the WindowContainer when using a modal window.
Note: You can find complete documentation of the API [here](http://doc.xceedsoft.com/products/XceedWpfToolkit/).
**Support this project, check out the [Plus Edition](https://xceed.com/xceed-toolkit-plus-for-wpf/).**
---
### Properties
| Property | Description |
| --- | --- |
| ModalBackgroundBrush | Gets or sets a Background Color for the WindowContainer when using a modal window. |
---
**Support this project, check out the [Plus Edition](https://xceed.com/xceed-toolkit-plus-for-wpf/).**