Example #1
0
        private bool WidgetSupportedStylePropertyCheckWithWidgetTagName(string widgetElementName, string stylePropertyName)
        {
            switch (widgetElementName)
            {
            case "FlowShape":
                return(FlowShape.SupportedStyleProperty(stylePropertyName));

            case "Shape":
                return(Shape.SupportedStyleProperty(stylePropertyName));

            case "Image":
            case "HamburgerMenuButton":
                return(Image.SupportedStyleProperty(stylePropertyName));

            case "DynamicPanel":
                return(DynamicPanel.SupportedStyleProperty(stylePropertyName));

            case "HamburgerMenu":
                return(HamburgerMenu.SupportedStyleProperty(stylePropertyName));

            case "Toast":
                return(Toast.SupportedStyleProperty(stylePropertyName));

            case "Line":
                return(Line.SupportedStyleProperty(stylePropertyName));

            case "HotSpot":
                return(HotSpot.SupportedStyleProperty(stylePropertyName));

            case "TextField":
                return(TextField.SupportedStyleProperty(stylePropertyName));

            case "TextArea":
                return(TextArea.SupportedStyleProperty(stylePropertyName));

            case "Droplist":
                return(Droplist.SupportedStyleProperty(stylePropertyName));

            case "ListBox":
                return(ListBox.SupportedStyleProperty(stylePropertyName));

            case "Checkbox":
                return(Checkbox.SupportedStyleProperty(stylePropertyName));

            case "RadioButton":
                return(RadioButton.SupportedStyleProperty(stylePropertyName));

            case "Button":
                return(Button.SupportedStyleProperty(stylePropertyName));

            case "Svg":
                return(Svg.SupportedStyleProperty(stylePropertyName));

            default:
                return(false);
            }
        }
Example #2
0
        private bool WidgetSupportedStylePropertyCheckWithDefaultStyleName(string widgetDefaultStyleName, string stylePropertyName)
        {
            switch (widgetDefaultStyleName)
            {
            case DefaultStyleNames.DEFAULT_FLOW_SHAPE_STYLE_NAME:
                return(FlowShape.SupportedStyleProperty(stylePropertyName));

            case DefaultStyleNames.DEFAULT_SHAPE_STYLE_NAME:
            case DefaultStyleNames.DEFAULT_SHAPE_RECTANGLE_STYLE_NAME:
            case DefaultStyleNames.DEFAULT_SHAPE_ROUNDED_RECTANGLE_STYLE_NAME:
            case DefaultStyleNames.DEFAULT_SHAPE_ELLIPSE_STYLE_NAME:
            case DefaultStyleNames.DEFAULT_SHAPE_DIAMOND_STYLE_NAME:
            case DefaultStyleNames.DEFAULT_SHAPE_TRIANGLE_STYLE_NAME:
            case DefaultStyleNames.DEFAULT_SHAPE_PARAGRAPH_STYLE_NAME:
                return(Shape.SupportedStyleProperty(stylePropertyName));

            case DefaultStyleNames.DEFAULT_IMAGE_STYLE_NAME:
                return(Image.SupportedStyleProperty(stylePropertyName));

            case DefaultStyleNames.DEFAULT_DYNAMICPANEL_STYLE_NAME:
                return(DynamicPanel.SupportedStyleProperty(stylePropertyName));

            case DefaultStyleNames.DEFAULT_HAMBURGERMENU_STYLE_NAME:
                return(HamburgerMenu.SupportedStyleProperty(stylePropertyName));

            case DefaultStyleNames.DEFAULT_TOAST_STYLE_NAME:
                return(Toast.SupportedStyleProperty(stylePropertyName));

            case DefaultStyleNames.DEFAULT_LINE_STYLE_NAME:
                return(Line.SupportedStyleProperty(stylePropertyName));

            case DefaultStyleNames.DEFAULT_HOTSPOT_STYLE_NAME:
                return(HotSpot.SupportedStyleProperty(stylePropertyName));

            case DefaultStyleNames.DEFAULT_TEXTFIELD_STYLE_NAME:
                return(TextField.SupportedStyleProperty(stylePropertyName));

            case DefaultStyleNames.DEFAULT_TEXTAREA_STYLE_NAME:
                return(TextArea.SupportedStyleProperty(stylePropertyName));

            case DefaultStyleNames.DEFAULT_DROPLIST_STYLE_NAME:
                return(Droplist.SupportedStyleProperty(stylePropertyName));

            case DefaultStyleNames.DEFAULT_LISTBOX_STYLE_NAME:
                return(ListBox.SupportedStyleProperty(stylePropertyName));

            case DefaultStyleNames.DEFAULT_CHECKBOX_STYLE_NAME:
                return(Checkbox.SupportedStyleProperty(stylePropertyName));

            case DefaultStyleNames.DEFAULT_RADIOBUTTON_STYLE_NAME:
                return(RadioButton.SupportedStyleProperty(stylePropertyName));

            case DefaultStyleNames.DEFAULT_BUTTON_STYLE_NAME:
                return(Button.SupportedStyleProperty(stylePropertyName));

            case DefaultStyleNames.DEFAULT_SVG_STYLE_NAME:
                return(Svg.SupportedStyleProperty(stylePropertyName));

            default:
                return(false);
            }
        }