KentZhou
KentZhou

Reputation: 25573

How to access application object in Silverlight class library?

Suppose my solution have two project:

myApp: silverlight application project: the default application App

MyLib: silverlight class library project

then in code for those controls in Mylib, how to access the application object App?

Upvotes: 0

Views: 1224

Answers (1)

Muad'Dib
Muad'Dib

Reputation: 29226

Application.Current should do you right, box as necessary((MyAppClass)Application.Current).something

Upvotes: 3

Related Questions