public Stylesheet() { DesktopStyle = new DesktopStyle(); TextBlockStyle = new TextBlockStyle(); TextFieldStyle = new TextFieldStyle(); ButtonStyle = new ButtonStyle(); CheckBoxStyle = new ButtonStyle(); RadioButtonStyle = new ButtonStyle(); ImageButtonStyle = new ImageButtonStyle(); SpinButtonStyle = new SpinButtonStyle(); TextButtonStyle = new TextButtonStyle(); HorizontalSliderStyle = new SliderStyle(); VerticalSliderStyle = new SliderStyle(); HorizontalProgressBarStyle = new ProgressBarStyle(); VerticalProgressBarStyle = new ProgressBarStyle(); HorizontalSeparatorStyle = new SeparatorStyle(); VerticalSeparatorStyle = new SeparatorStyle(); ComboBoxStyle = new ComboBoxStyle(); ListBoxStyle = new ListBoxStyle(); TabControlStyle = new TabControlStyle(); TreeStyle = new TreeStyle(); HorizontalSplitPaneStyle = new SplitPaneStyle(); VerticalSplitPaneStyle = new SplitPaneStyle(); ScrollPaneStyle = new ScrollPaneStyle(); HorizontalMenuStyle = new MenuStyle(); VerticalMenuStyle = new MenuStyle(); WindowStyle = new WindowStyle(); DialogStyle = new DialogStyle(); }
private void LoadSeparatorStyleFromSource(JObject source, SeparatorStyle result) { LoadWidgetStyleFromSource(source, result); string name; if (source.GetStyle(ImageName, out name)) { result.Image = GetDrawable(name); } if (source.GetStyle(ThicknessName, out name)) { result.Thickness = int.Parse(name); } }