public SimpleFillSymbol()
        {
            simplemarkersymbol = new GISServer.Core.Client.Symbols.SimpleFillSymbol();
            InitializeComponent();

            UpdateJSONforInitialUI();
        }
        public SimpleFillSymbol()
        {
            simplemarkersymbol = new GISServer.Core.Client.Symbols.SimpleFillSymbol();
            InitializeComponent();

            UpdateJSONforInitialUI();
        }
        private void UpdateUI(GISServer.Core.Client.Symbols.SimpleFillSymbol simplemarkersymbol)
        {
            txttype.Text = simplemarkersymbol.Type;


            var colorbrush = new SolidColorBrush
            {
                Color = new System.Windows.Media.Color
                {
                    R = simplemarkersymbol.Color[0],
                    G = simplemarkersymbol.Color[1],
                    B = simplemarkersymbol.Color[2],
                    A = simplemarkersymbol.Color[3]
                }
            };

            reccolor.Fill = colorbrush;

            switch (simplemarkersymbol.Style)
            {
            case "esriSFSBackwardDiagonal":
                cbxstyle.SelectedIndex = 0;
                break;

            case "esriSFSCross":
                cbxstyle.SelectedIndex = 1;
                break;

            case "esriSFSDiagonalCross":
                cbxstyle.SelectedIndex = 2;
                break;

            case "esriSFSForwardDiagonal":
                cbxstyle.SelectedIndex = 3;
                break;

            case "esriSFSHorizontal":
                cbxstyle.SelectedIndex = 4;
                break;

            case "esriSFSNull":
                cbxstyle.SelectedIndex = 5;
                break;

            case "esriSFSSolid":
                cbxstyle.SelectedIndex = 6;
                break;

            case "esriSFSVertical":
                cbxstyle.SelectedIndex = 7;
                break;

            default:
                break;
            }
        }