Hi team,
I have a silverlight application in which I am drawing a rectangle. The background of this rectangle must be set according to a color stored in a SDE database. The field in the database is a string and stored e.g. "Green".
I retrieve the string from the SDE database:
var col = "StoredcolorVal ue." + RoadBridgeData. Attributes["COLOR"].ToString();
But I dont know how the set the code below so that the part in brackets (Colors.Storedc olorValue) will use my color from the database.
The normal way to di it is useing one of the systems colors like below:
Rectangle.Fill = new SolidColorBrush (Colors.Green);
Any help will be appreciated.
I have a silverlight application in which I am drawing a rectangle. The background of this rectangle must be set according to a color stored in a SDE database. The field in the database is a string and stored e.g. "Green".
I retrieve the string from the SDE database:
var col = "StoredcolorVal ue." + RoadBridgeData. Attributes["COLOR"].ToString();
But I dont know how the set the code below so that the part in brackets (Colors.Storedc olorValue) will use my color from the database.
The normal way to di it is useing one of the systems colors like below:
Rectangle.Fill = new SolidColorBrush (Colors.Green);
Any help will be appreciated.
Comment