This works when running in browser. If you need to obtain this information when running OOB, see this article: http://www.pitorque.de/MisterGoodcat/post/Determine-screen-resolution-in-Silverlight-OOB.aspx[^].
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here