(X) Hide this
    • Login
    • Join
      • Generate New Image
        By clicking 'Register' you accept the terms of use .

Tip: How to get the root element of a Silverlight application?

(0 votes)
Denislav Savkov
>
Denislav Savkov
Joined Feb 11, 2008
Articles:   14
Comments:   6
More Articles
0 comments   /   posted on Aug 29, 2008
Tags:   denislav-savkov
Categories:   General

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!


Subscribe

Comments

No comments

Add Comment

Login to comment:
  *      *