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 DesktopStyle LoadDesktopStyleFromSource() { var result = new DesktopStyle(); Dictionary <string, object> source; if (!_root.GetStyle(DesktopName, out source) || source == null) { return(result); } string name; if (source.GetStyle(BackgroundName, out name)) { result.Background = GetDrawable(name); } return(result); }