public OutlineWindow(List<byte> Color, double Thickness) { InitializeComponent(); //Setting the initial Values outline = new GISServer.Core.Client.Symbols.Outline(Thickness, Color); var colorbrush = new SolidColorBrush { Color = new System.Windows.Media.Color { R = Color[0], G = Color[1], B = Color[2], A = Color[3] } }; reccolor.BorderThickness = new Thickness(Thickness); //Updating the UI based initial values reccolor.BorderBrush = colorbrush; colorchooser.R = Color[0]; colorchooser.G = Color[1]; colorchooser.B = Color[2]; colorchooser.A = Color[3]; txtwidth.Text = Thickness.ToString(); txtjson.Text = GISServer.Core.Client.Utilities.Serializer.ToJson(outline); }
public OutlineWindow(List <byte> Color, double Thickness) { InitializeComponent(); //Setting the initial Values outline = new GISServer.Core.Client.Symbols.Outline(Thickness, Color); var colorbrush = new SolidColorBrush { Color = new System.Windows.Media.Color { R = Color[0], G = Color[1], B = Color[2], A = Color[3] } }; reccolor.BorderThickness = new Thickness(Thickness); //Updating the UI based initial values reccolor.BorderBrush = colorbrush; colorchooser.R = Color[0]; colorchooser.G = Color[1]; colorchooser.B = Color[2]; colorchooser.A = Color[3]; txtwidth.Text = Thickness.ToString(); txtjson.Text = GISServer.Core.Client.Utilities.Serializer.ToJson(outline); }