public static UXTimer GetTimer(int Pos) { return(UXControl.Get <UXTimer>(UITimer[Pos])); }
/// <summary> /// Render all CSS properties /// use a mapping to map ux properties and css properties /// </summary> /// <param name="control"></param> /// <param name="css"></param> public void RenderCSSProperties(UXControl control, CodeCSS css) { control.Get("Width", (s, v) => { css.Body.Add("width", v.Value.ToString() + "px"); }); control.Get("Height", (s, v) => { css.Body.Add("height", v.Value.ToString() + "px"); }); control.Get("BackColor", (s, v) => { css.BackgroundColor = new CSSColor(v.Value); }); control.Get("ForeColor", (s, v) => { css.ForegroundColor = new CSSColor(v.Value); }); control.Get("Padding", (s, v) => { css.Body.Add("padding", v.Value); }); control.Get("Margin", (s, v) => { css.Body.Add("margin", v.Value); }); control.Get("Border", (s, v) => { css.Body.Add("border", v.Value); }); control.Get("Border-Spacing", (s, v) => { css.Body.Add("border-spacing", v.Value); }); control.Get("Border-Width", (s, v) => { css.Body.Add("border-width", v.Value + "px"); }); control.Get("Border-Height", (s, v) => { css.Body.Add("border-height", v.Value + "px"); }); control.Get("Border-Color", (s, v) => { css.Body.Add("border-color", v.Value + "px"); }); control.Get("Height-Minimum", (s, v) => { css.Body.Add("min-height", v.Value.ToString() + "px"); }); control.Get("align", (s, v) => { css.Body.Add("text-align", v.Value); }); control.Get("valign", (s, v) => { css.Body.Add("vertical-align", v.Value); }); }
public static UXIcon GetPowers(int Pos) { return(UXControl.Get <UXIcon>(UIElements[Pos])); }