Exemplo n.º 1
0
 public static IElement <TView> Style <TView>(this IElement <TView> element, params IStyle[] styles)
     where TView : View
 {
     if (styles != null)
     {
         foreach (var style in styles)
         {
             element.AddStyle(style);
         }
     }
     return(element);
 }
Exemplo n.º 2
0
        /*****************************************************************
         * Style, layout and apperance
         ****************************************************************/

        public static IElement <TView> Style <TView>(this IElement <TView> element, IStyle style) where TView : View
        {
            element.AddStyle(style);
            return(element);
        }