public static void Initialize(UIElement rootVisual) #endif { _objectWrapper = new _ObjectWrapper(); #if SILVERLIGHT _rootVisual = rootVisual; _dispatcher = System.Windows.Deployment.Current.Dispatcher; #endif CurrentApplication.Startup += CurrentApplication_Startup; #if !SILVERLIGHT CurrentApplication.StartupUri = new Uri(uri, UriKind.Relative); #endif #if NET4 if (Application.Current != null) { MEFHelper.ComposeParts(Application.Current); } #endif }
public _ObjectWrapper() { #if NET4 MEFHelper.ComposeParts(this); #endif }