Tag Archive: code

Feb 03

How can I get application’s directory in a WPF application?

string appPath = AppDomain.CurrentDomain.BaseDirectory;

Dec 06

How can I tell if Silverlight application is running out of browser?

Application.Current.IsRunningOutOfBrowser indicates whether application was launched as an out-of-browser application. Application.Current.HasElevatedPermissions indicates if application is running as an out-of-browser application with elevated permissions. Elevated permissions give you direct access to clipboard, user folder and COM enabled applications.