예제 #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 LoadListBoxStyleFromSource(JObject source, ListBoxStyle result)
        {
            LoadWidgetStyleFromSource(source, result);

            JObject subStyle;

            if (source.GetStyle(ListBoxItemName, out subStyle))
            {
                LoadButtonStyleFromSource(subStyle, result.ListItemStyle);
            }
        }
예제 #3
0
        private void LoadListBoxStyleFromSource(Dictionary <string, object> source, ListBoxStyle result)
        {
            LoadWidgetStyleFromSource(source, result);

            Dictionary <string, object> subStyle;

            if (source.GetStyle(ListBoxItemName, out subStyle))
            {
                LoadButtonStyleFromSource(subStyle, result.ListItemStyle);
            }

            if (source.GetStyle(SeparatorName, out subStyle))
            {
                LoadSeparatorStyleFromSource(subStyle, result.SeparatorStyle);
            }
        }
예제 #4
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();
 }