private void ApplyNameScope(SilverlightNameScope nameScope) { foreach (KeyValuePair <string, object> keyValuePair in nameScope.InternalDictionary) { this.platformSurface.SetName(keyValuePair.Value, keyValuePair.Key); } }
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(); }