public override void ApplyStylesheet(Stylesheet sheet) { if (!styleSetManual) { style = sheet.Lookup <ButtonStyle>(Style); } }
public void ApplyStyle(Stylesheet stylesheet) { Style = stylesheet.Lookup <ScrollbarStyle>(null); if (Style != null) { upbutton.SetStyle(Style.UpButton); downbutton.SetStyle(Style.DownButton); thumb.SetStyle(Style.Thumb); } }
public override void ApplyStylesheet(Stylesheet stylesheet) { Style = stylesheet.Lookup <HSliderStyle>(null); if (Style != null) { leftbutton.SetStyle(Style.LeftButton); rightbutton.SetStyle(Style.RightButton); thumb.SetStyle(Style.Thumb); thumbleft.SetStyle(Style.ThumbLeft); thumbright.SetStyle(Style.ThumbRight); } }