Ejemplo n.º 1
0
 public CustomSkin(ContentManager content) : base(content)
 {
     StyleSkins.Add("special", (c) =>
     {
         if (c is Button)
         {
             c.Width = 200;
         }
     });
 }
Ejemplo n.º 2
0
        public CustomSkin(ContentManager content) : base(content)
        {
            SoundEffect click = content.Load <SoundEffect>("click1");
            SoundEffect hover = content.Load <SoundEffect>("rollover5");

            StyleSkins.Add("special", (c) =>
            {
                if (c is Button)
                {
                    c.Width           = 200;
                    Button button     = c as Button;
                    button.ClickSound = click;
                    button.HoverSound = hover;
                }
            });
        }