コード例 #1
0
 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);
 }
コード例 #2
0
 protected void SkinResourcesWereChanged()
 {
     ReloadSkins();
     SkinResourcesMessaging.SendSkinResourcesMessage(SkinResourcesMessaging.MessageType.SkinResourcesChanged);
 }