Esempio n. 1
0
 private void ApplyNameScope(SilverlightNameScope nameScope)
 {
     foreach (KeyValuePair <string, object> keyValuePair in nameScope.InternalDictionary)
     {
         this.platformSurface.SetName(keyValuePair.Value, keyValuePair.Key);
     }
 }
Esempio n. 2
0
        public override void ShutdownVisualTree()
        {
            base.ShutdownVisualTree();
            this.imageHost.ShutdownVisualTree();
            SilverlightNameScope silverlightNameScope = this.rootNameScope as SilverlightNameScope;

            if (silverlightNameScope != null)
            {
                silverlightNameScope.InternalDictionary.Clear();
            }
            DesignSurfacePlatformCaches.GetOrCreateCache <Dictionary <string, List <IEasingFunctionDefinition> > >(this.Platform.Metadata, DesignSurfacePlatformCaches.EasingFunctionsCache).Clear();
        }