Skip Navigation LinksHome / Tips

Tips

+
Page 
Items Resolution

  • 0 comments  /  posted by  Denislav Savkov  on  Aug 29, 2008 (more than a year ago)

    System.Windows.Application is a special class dedicated to the application. Using it you can get a few useful references one of which is the RootVisual.

    C#

    UIElement applicationRoot = Application.Current.RootVisual;

    That's it!

    Share



Page