コード例 #1
0
        public static void UpdateSkin()
        {
            Skin        skin       = MapSkins.GetSkin(CustomSkinProvider.Default);
            Skin        sourceSkin = MapSkins.GetSkin(DefaultSkinProvider.Default);
            SkinElement elem       = sourceSkin[MapSkins.SkinCustomElement];

            skin.RemoveElement(skin[MapSkins.SkinCustomElement]);
            SkinElement newElem = elem.Copy(skin);

            newElem.Info.ContentMargins = new SkinPaddingEdges(8);
            skin.AddElement(newElem);
            elem = CustomGalleryBorder;
        }