protected override StyleUserControl CreateUI(StyleBuilderArguments styleArguments)
        {
            if (userControl == null)
            {
                StylePluginHelper.FillRequiredValueForStyleArguments(styleArguments);
                userControl = new FilterStyleUserControl(ConcreteObject as TextFilterStyle, styleArguments);

                if (Children.Count == 0)
                {
                    var textStylePlugin = GisEditor.StyleManager.GetDefaultStylePlugin(StyleCategories.Label);
                    if (textStylePlugin != null)
                    {
                        var textStyle = textStylePlugin.GetDefaultStyle() as TextStyle;
                        if (textStyle != null)
                        {
                            textStyle.TextColumnName = styleArguments.ColumnNames.FirstOrDefault();
                            var styleItem = GisEditor.StyleManager.GetStyleLayerListItem(textStyle);
                            Children.Add(styleItem);
                            UpdateConcreteObject();
                        }
                    }
                }
            }
            return(userControl);
        }
 protected override StyleUserControl CreateUI(StyleBuilderArguments styleArguments)
 {
     if (userControl == null)
     {
         StylePluginHelper.FillRequiredValueForStyleArguments(styleArguments);
         userControl = new TextStyleUserControl(ConcreteObject as IconTextStyle, styleArguments);
     }
     return(userControl);
 }
        protected override StyleUserControl CreateUI(StyleBuilderArguments styleArguments)
        {
            if (userControl == null)
            {
                StylePluginHelper.FillRequiredValueForStyleArguments(styleArguments);
                userControl = new FilterStyleUserControl(ConcreteObject as FilterStyle, styleArguments);

                if (Children.Count == 0)
                {
                    var pointStylePlugin = GisEditor.StyleManager.GetDefaultStylePlugin(styleArguments.AvailableStyleCategories);
                    if (pointStylePlugin != null)
                    {
                        var style = pointStylePlugin.GetDefaultStyle();
                        style.Name = pointStylePlugin.Name;
                        var styleItem = GisEditor.StyleManager.GetStyleLayerListItem(style);
                        Children.Add(styleItem);
                        UpdateConcreteObject();
                    }
                }
            }
            return(userControl);
        }