示例#1
0
 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();
 }
示例#2
0
        private void LoadTextButtonStyleFromSource(JObject source, TextButtonStyle result)
        {
            LoadButtonBaseStyleFromSource(source, result);

            JObject labelStyle;

            if (source.GetStyle(LabelStyleName, out labelStyle))
            {
                LoadTextBlockStyleFromSource(labelStyle, result.LabelStyle);
            }
        }
示例#3
0
 public Stylesheet()
 {
     TextBlockStyle             = new TextBlockStyle();
     TextFieldStyle             = new TextFieldStyle();
     ButtonStyle                = new ButtonStyle();
     CheckBoxStyle              = new ButtonStyle();
     ImageButtonStyle           = new ImageButtonStyle();
     SpinButtonStyle            = new SpinButtonStyle();
     TextButtonStyle            = new TextButtonStyle();
     HorizontalSliderStyle      = new SliderStyle();
     VerticalSliderStyle        = new SliderStyle();
     HorizontalProgressBarStyle = new ProgressBarStyle();
     VerticalProgressBarStyle   = new ProgressBarStyle();
     ComboBoxStyle              = new ComboBoxStyle();
     ListBoxStyle               = new ListBoxStyle();
     TreeStyle = new TreeStyle();
     HorizontalSplitPaneStyle = new SplitPaneStyle();
     VerticalSplitPaneStyle   = new SplitPaneStyle();
     ScrollPaneStyle          = new ScrollPaneStyle();
     HorizontalMenuStyle      = new MenuStyle();
     VerticalMenuStyle        = new MenuStyle();
     WindowStyle = new WindowStyle();
 }
        private void LoadTextButtonStyleFromSource(Dictionary <string, object> source, TextButtonStyle result)
        {
            LoadButtonStyleFromSource(source, result);

            Dictionary <string, object> labelStyle;

            if (source.GetStyle(LabelStyleName, out labelStyle))
            {
                result.LabelStyle = new TextBlockStyle();
                LoadTextBlockStyleFromSource(labelStyle, result.LabelStyle);
            }
        }