Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Silverlight ChildWindow for WPF

is it possible to make a ChildWindow like ChildWindow in Silverlight, but for WPF? I tried to adapt the Silverlight ChildWindow to WPF but ran into issues with Transformations and not being able to set the Popup's Parent. I'm trying to make something that works simular so I do not have to add code to the XAML for popups. Any ideas?

like image 201
Jeff Avatar asked Feb 08 '10 23:02

Jeff


3 Answers

Just derive from Window and call ShowDialog from the parent window.

like image 166
Mike Pateras Avatar answered Oct 19 '22 22:10

Mike Pateras


Have a look at the BubbleBurst Sourcecode. The GameOverView does exactly what you are looking for.

like image 35
Stephan Puchegger Avatar answered Oct 19 '22 22:10

Stephan Puchegger


See the ChildWindow control thats available in the Extended WPF Toolkit here http://wpftoolkit.codeplex.com/wikipage?title=ChildWindow&referringTitle=Home

like image 26
Gary Barrett Avatar answered Oct 19 '22 22:10

Gary Barrett