void InitialVectorItemBase(VectorItemBase vector, C1ShapeAttributes attribute, Location location) { string toolTip = string.Empty; vector.Stroke = new SolidColorBrush(Colors.LightGray); switch (location) { case Location.USA: vector.Fill = new SolidColorBrush(Colors.Purple); toolTip = (string)attribute["STATE_NAME"]; break; case Location.Japan: vector.Fill = new SolidColorBrush(Colors.Brown); toolTip = (string)attribute["NAME_UTF"]; break; } ToolTipService.SetToolTip(vector, toolTip); }
void ProcessMap(VectorItemBase vector, C1ShapeAttributes attribute, Location location) { InitialVectorItemBase(vector, attribute, location); }
void ProcessUSMap(C1VectorItemBase vector, C1ShapeAttributes attribute) { ToolTipService.SetToolTip(vector, attribute["STATE_NAME"]); vector.Fill = new SolidColorBrush(Color.FromArgb(255, 56, 64, 217)); vector.Stroke = new SolidColorBrush(Colors.LightGray); }