RangeColorMapping rangeColorMapping = new RangeColorMapping () rangeColorMapping. For example, consider the following color ranges: The fill color of a particular bubble fill can be determined by its under-bound value and the color range. Gets or sets the color values for a given range. Gets or sets the value range of the bubble. Range color mapping is one of the features used to differentiate the bubble fill, based on its under-bound value and color ranges. ConvertFrom ( "#E5E5E5" )) shapeFileLayer. ShapeFill = ( SolidColorBrush )( new BrushConverter (). ShapeStroke = ( SolidColorBrush )( new BrushConverter (). Resources as DataTemplate ShapeSetting setting = new ShapeSetting () setting. Add ( rangeColorMapping ) shapeFileLayer. ConvertFromString ( "#7FED2D95" ) bubbleMarkerSetting. Add ( rangeColorMapping ) rangeColorMapping = new RangeColorMapping () rangeColorMapping. ConvertFromString ( "#7FEB737C" ) bubbleMarkerSetting. ConvertFromString ( "#7F1DA249" ) bubbleMarkerSetting. ![]() ConvertFromString ( "#7FF1B21A" ) bubbleMarkerSetting. ConvertFromString ( "#7FA7CE38" ) bubbleMarkerSetting. ![]() ConvertFromString ( "#7F20BCEE" ) bubbleMarkerSetting. BubbleMarkerSetting = bubbleMarkerSetting RangeColorMapping rangeColorMapping = new RangeColorMapping () rangeColorMapping. ValuePath = "Population" bubbleMarkerSetting. ColorValuePath = "Population" bubbleMarkerSetting. AutoFillColor = false bubbleMarkerSetting. Add ( shapeFileLayer ) BubbleMarkerSetting bubbleMarkerSetting = new BubbleMarkerSetting () bubbleMarkerSetting. ShapeIDTableField = "NAME" shapeFileLayer. ViewModel viewModel = new ViewModel () SfMap map = new SfMap () ShapeFileLayer shapeFileLayer = new ShapeFileLayer () shapeFileLayer. Gets or sets the template to customize the bubble. Gets or sets the type of bubble symbol needed to be used in maps. Also, bubbles can be customized by setting the CustomTemplate of the BubbleMarkerSetting. The shape of the bubble symbol can be modified by using built-in symbols like circle, rectangle, diamond, triangle, trapezoid, star, pentagon, and pushpin that are available in the BubbleType enum property. Create the Model and ViewModel as illustrated in the Data Binding topic and add the following code.Īlso set the MaxSize, MinSize, and ValuePath properties as illustrated in the following code example. Set the AutoFillColor as true and set the Fill property. To add bubbles to a map, the bubble marker setting has to be added to the shape file layer. Gets the Size ratio for the bubbles based on the MinSize and MaxSize. Gets or sets the opacity of the bubble in the map. ![]() Gets or sets the border color of the bubble. Gets or sets the fill brush of the bubble when auto fill color is set to true. Gets or sets the name of the under-bound property in ItemsSource. Get or sets the border thickness of the bubbles. Gets or sets the minimum height and width of the bubble. ![]() Get or sets the maximum height and width of the bubble. Gets or sets whether the colors should be automatically filled. The following properties are available in BubbleMarkerSetting: Bubbles are scattered throughout map shapes that contain bound values.īubbles are included when data binding is set as mentioned above and the BubbleMarkerSetting is set. Bubbles in the WPF Maps control represent the under-bound data values of the map.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |