This project has moved. For the latest updates, please go here.
Project Description
The fastest and proven solution to make you ChildWindows closed by its overlay.

It's the ChildWindow Closed By Overlay solution.

You may use:
  1. Silverlight Behaviour,
  2. simple inheritance from the tweaked CildWindow,
  3. instantiating of the tweaked CildWindow class,
  4. or both.

The main idea of this project is to deliver the following things.
1. Guaranteed closing of the ChildWindow the first time.
2. Resolve the locking problem of RootVisual's controls after a ChildWindow closing.
3. Get a complete and proven solution.
4. Save the own time.

and !

5. I humbly hope that this common in the world of WEB 2.0 approach will be included in the ChildWindow.

How to use
Add .dll files to your project from the DOWNLOAD menu link above.
Use the next in code:

1. By the behavior
<!-- ... -->

2. By the inheritance or instantiating
	new ChildWindowWithClosingOverlay

		// !!! Custom settings.
		DisabledClosingOverlay = false,
		RightMouseButtonClosingTo = false,

		Title = "ChildWindow closed by Overlay",
		Content = content,

		OverlayBrush = new SolidColorBrush(Colors.Gray),
		OverlayOpacity = 0.4,
		HasCloseButton = false,

Live example:
ChildWindow Closed By Overlay solution

The example's screenshort:

Last edited Jul 6, 2015 at 8:11 AM by IliyaTretyakov, version 17