public void InstallSkinResources(SkinResources skinResources) { // Setup the resource chain and use the default skin as last fallback skinResources.SetupResourceChain(_skins, DefaultSkin); // Initialize SkinContext with new resource bundle SkinContext.SkinResources = skinResources; skinResources.InitializeStyleResourceLoading(); // Initializes the resource file dictionary Fonts.FontManager.Load(skinResources); // Needs an initialized resource file dictionary - loads font files skinResources.LoadAllStyleResources(); // Needs the FontManager // Notify others that we loaded a new skin or theme SkinResourcesMessaging.SendSkinResourcesMessage(SkinResourcesMessaging.MessageType.SkinOrThemeChanged); }
protected void SkinResourcesWereChanged() { ReloadSkins(); SkinResourcesMessaging.SendSkinResourcesMessage(SkinResourcesMessaging.MessageType.SkinResourcesChanged); }