示例#1
0
        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);
        }
示例#2
0
 void ProcessMap(VectorItemBase vector, C1ShapeAttributes attribute, Location location)
 {
     InitialVectorItemBase(vector, attribute, location);
 }
示例#3
0
 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);
 }