Beispiel #1
0
 static InitializationModule()
 {
     ViewManagerEx.Initialize();
     if (ServiceProvider.DesignTimeManager.IsDesignMode)
     {
         ServiceProvider.AttachedValueProvider = new AttachedValueProvider();
     }
 }
Beispiel #2
0
        static InitializationModule()
        {
#if !WINDOWS_PHONE && !NETFX_CORE
            ViewManagerEx.Initialize();
#endif
            if (ServiceProvider.DesignTimeManager.IsDesignMode)
#if WINDOWS_PHONE && V71
            { ServiceProvider.AttachedValueProvider = new WeakReferenceAttachedValueProvider(); }
#else
            { ServiceProvider.AttachedValueProvider = new AttachedValueProvider(); }
#endif
        }