Friday, June 11, 2010

How to get the parent window for a control in C#, WPF

Window parentWindow = Window.GetWindow(userControlRefernce);

More can be found at:
http://stackoverflow.com/questions/302839/wpf-user-control-parent

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.