menu

UWP

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ShapeSetting - UWP API Reference | Syncfusion

    Show / Hide Table of Contents

    Class ShapeSetting

    Represents the ShapeSetting of the SfMap. Inherited from the Windows.UI.Xaml.DependencyObject

    Inheritance
    System.Object
    ShapeSetting
    Namespace: Syncfusion.UI.Xaml.Maps
    Assembly: Syncfusion.SfMaps.UWP.dll
    Syntax
    public class ShapeSetting : DependencyObject
    Remarks

    ShapeSetting class contains the member for Customizing the appearance of the MapShapes and determine the under bound values. It was inherited from the Windows.UI.Xaml.DependencyObject class.

    Examples

    Refer the following code to know how to set the ShapeSettings

    using Syncfusion.UI.Xaml.Maps;
    using System;
    using System.Collections.Generic;
    using System.IO;
    using System.Linq;
    using Windows.Foundation;
    using Windows.Foundation.Collections;
    using Windows.UI;
    using Windows.UI.Xaml;
    using Windows.UI.Xaml.Controls;
    using Windows.UI.Xaml.Controls.Primitives;
    using Windows.UI.Xaml.Data;
    using Windows.UI.Xaml.Input;
    using Windows.UI.Xaml.Media;
    using Windows.UI.Xaml.Navigation;
    

    namespace MapApp { public sealed partial class MainPage : Page { public MainPage() { this.InitializeComponent(); SfMap syncMap = new SfMap(); ViewModel viewModel = new ViewModel(); ShapeFileLayer layer = new ShapeFileLayer(); layer.Uri = "MapApp.world1.shp"; layer.ItemsSource = viewModel.Models; layer.ShapeIDPath = "Country"; layer.ShapeIDTableField = "NAME"; ShapeSetting shapeSetting = new ShapeSetting(); shapeSetting.ShapeValuePath = "CurrentTemperature"; shapeSetting.ShapeFill = new SolidColorBrush(Colors.Salmon); shapeSetting.ShapeStroke = new SolidColorBrush(Colors.Black); shapeSetting.ShapeStrokeThickness = 2d; shapeSetting.SelectedShapeColor = new SolidColorBrush(Colors.Blue); ShapeFillSetting shapeFillSetting = new ShapeFillSetting(); shapeFillSetting.AutoFillColors = true; shapeSetting.FillSetting = shapeFillSetting; layer.ShapeSettings = shapeSetting; syncMap.Layers.Add(layer);

        }
    
    }
    public class Weather
    {
    
        public int CurrentTemperature { get; set; }
        public int AverageHighTemperature { get; set; }
        public int AverageLowTemperature { get; set; }
        public string Country { get; set; }
        public string Continent { get; set; }
        public string City { get; set; }
        public string WeatherDescription { get; set; }
        public int Humidity { get; set; }
        public string Longitude { get; set; }
        public string Latitude { get; set; }
    
        public static List<Weather> GetWeatherData()
        {
            List<Weather> weatherCollection = new List<Weather>();
            weatherCollection.Add(new Weather() { Humidity = 86, CurrentTemperature = 44, AverageHighTemperature = 63, AverageLowTemperature = 46, City = "Chicago", Continent = "North America", Country = "United States", WeatherDescription = "Partly Cloudy", Latitude = "41.8500N", Longitude = "87.6500W" });
            weatherCollection.Add(new Weather() { Humidity = 94, CurrentTemperature = 77, AverageHighTemperature = 89, AverageLowTemperature = 75, City = "Chennai", Continent = "Asia", Country = "India", WeatherDescription = "Rainy", Latitude = "12.5810N", Longitude = "76.0740E" });
            weatherCollection.Add(new Weather() { Humidity = 63, CurrentTemperature = 59, AverageHighTemperature = 66, AverageLowTemperature = 45, City = "Beiging", Continent = "Asia", Country = "China", WeatherDescription = "Partly Cloudy", Longitude = "39.9100N", Latitude = "116.4000E" });
            weatherCollection.Add(new Weather() { Humidity = 60, CurrentTemperature = 70, AverageHighTemperature = 70, AverageLowTemperature = 57, City = "Tokyo", Continent = "Asia", Country = "Japan", WeatherDescription = "Partly Cloudy", Latitude = "35.6833N", Longitude = "139.7667E" });
            weatherCollection.Add(new Weather() { Humidity = 72, CurrentTemperature = 55, AverageHighTemperature = 47, AverageLowTemperature = 38, City = "Moscow", Continent = "Asia", Country = "Russia", WeatherDescription = "Clear", Latitude = "55.7517N", Longitude = "37.6178E" });
            weatherCollection.Add(new Weather() { Humidity = 70, CurrentTemperature = 53, AverageHighTemperature = 69, AverageLowTemperature = 54, City = "Cape Town", Continent = "Africa", Country = "South Africa", WeatherDescription = "Partly Cloudy", Latitude = "33.9767S", Longitude = "18.4244E" });
            weatherCollection.Add(new Weather() { Humidity = 77, CurrentTemperature = 64, AverageHighTemperature = 69, AverageLowTemperature = 56, City = "Anchorage", Continent = "North America", Country = "United States", WeatherDescription = "Mostly Cloudy", Latitude = "61.1919N", Longitude = "149.7621W" });
            weatherCollection.Add(new Weather() { Humidity = 55, CurrentTemperature = 91, AverageHighTemperature = 95, AverageLowTemperature = 74, City = "Panama", Continent = "South America", Country = "Republic Of  Panama", WeatherDescription = "Fair", Latitude = "8.7515N", Longitude = "79.8772W" });
            weatherCollection.Add(new Weather() { Humidity = 88, CurrentTemperature = 61, AverageHighTemperature = 76, AverageLowTemperature = 59, City = "Sao Paulo", Continent = "South America", Country = "Brazil", WeatherDescription = "Fair", Latitude = "23.5000S", Longitude = "46.6167W" });
            weatherCollection.Add(new Weather() { Humidity = 83, CurrentTemperature = 70, AverageHighTemperature = 85, AverageLowTemperature = 72, City = "Cairo", Continent = "Africa", Country = "Egypt", WeatherDescription = "Mostly Cloudy", Latitude = "31.2262E", Longitude = "30.0566N" });
            weatherCollection.Add(new Weather() { Humidity = 78, CurrentTemperature = 70, AverageHighTemperature = 85, AverageLowTemperature = 72, City = "Melbourne", Continent = "Oceania", Country = "Australia", WeatherDescription = "Cloudy", Latitude = "35.0833S", Longitude = "142.0667E" });
            return weatherCollection;
        }
    }
    public class ViewModel
    {
        public List<Weather> Models
        {
            get;
            set;
        }
    
        public ViewModel()
        {
    
            this.Models = new List<Weather>();
            this.Models = Weather.GetWeatherData();
    
        }
    }
    

    }

    Constructors

    ShapeSetting()

    Initializes a new instance of the ShapeSetting class.

    Declaration
    public ShapeSetting()

    Fields

    ColorPaletteProperty

    // Using a DependencyProperty as the backing store for ColorPalette. This enables animation, styling, binding, etc...

    Declaration
    public static readonly DependencyProperty ColorPaletteProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    CustomColorsProperty

    // Using a DependencyProperty as the backing store for CustomColors. This enables animation, styling, binding, etc...

    Declaration
    public static readonly DependencyProperty CustomColorsProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    FillSettingProperty

    // Using a DependencyProperty as the backing store for FillSetting. This enables animation, styling, binding, etc...

    Declaration
    public static readonly DependencyProperty FillSettingProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    SelectedShapeColorProperty

    // Using a DependencyProperty as the backing store for SelectedShapeColor. This enables animation, styling, binding, etc...

    Declaration
    public static readonly DependencyProperty SelectedShapeColorProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    SelectedShapeStrokeProperty

    // Using a DependencyProperty as the backing store for SelectedShapeStroke. This enables animation, styling, binding, etc...

    Declaration
    public static readonly DependencyProperty SelectedShapeStrokeProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    SelectedShapeStrokeThicknessProperty

    // Using a DependencyProperty as the backing store for ShapeStrokeThickness. This enables animation, styling, binding, etc...

    Declaration
    public static readonly DependencyProperty SelectedShapeStrokeThicknessProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    ShapeColorValuePathProperty

    // Using a DependencyProperty as the backing store for ShapeValuePath. This enables animation, styling, binding, etc...

    Declaration
    public static readonly DependencyProperty ShapeColorValuePathProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    ShapeFillProperty

    // Using a DependencyProperty as the backing store for ShapeFill. This enables animation, styling, binding, etc...

    Declaration
    public static readonly DependencyProperty ShapeFillProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    ShapeStrokeProperty

    // Using a DependencyProperty as the backing store for ShapeStroke. This enables animation, styling, binding, etc...

    Declaration
    public static readonly DependencyProperty ShapeStrokeProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    ShapeStrokeThicknessProperty

    // Using a DependencyProperty as the backing store for ShapeStrokeThickness. This enables animation, styling, binding, etc...

    Declaration
    public static readonly DependencyProperty ShapeStrokeThicknessProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    ShapeValuePathProperty

    // Using a DependencyProperty as the backing store for ShapeValuePath. This enables animation, styling, binding, etc...

    Declaration
    public static readonly DependencyProperty ShapeValuePathProperty
    Field Value
    Type
    Windows.UI.Xaml.DependencyProperty

    Properties

    ColorPalette

    Gets or set ColorPalette for the map shapes.

    Declaration
    public ColorPalettes ColorPalette { get; set; }
    Property Value
    Type Description
    ColorPalettes

    Type :ColorPalettes

    Remarks

    ColorPalette is the set of colors that are applied on the map shapes.There are two build in color palette available.

    Metro and CoolBlue

    Examples
    using Syncfusion.UI.Xaml.Maps;
    using System;
    using System.Collections.Generic;
    using System.IO;
    using System.Linq;
    using Windows.Foundation;
    using Windows.Foundation.Collections;
    using Windows.UI;
    using Windows.UI.Xaml;
    using Windows.UI.Xaml.Controls;
    using Windows.UI.Xaml.Controls.Primitives;
    using Windows.UI.Xaml.Data;
    using Windows.UI.Xaml.Input;
    using Windows.UI.Xaml.Media;
    using Windows.UI.Xaml.Navigation;
    
    
    namespace MapApp
    {
        public sealed partial class MainPage : Page
        {
            public MainPage()
            {
                this.InitializeComponent();
                SfMap syncMap = new SfMap();
    
                ShapeFileLayer layer = new ShapeFileLayer();
                layer.Uri = "MapApp.world1.shp";           
                ShapeSetting shapeSetting = new ShapeSetting();            
                shapeSetting.ShapeFill = new SolidColorBrush(Colors.Salmon);
                shapeSetting.ShapeStroke = new SolidColorBrush(Colors.Black);
                shapeSetting.ShapeStrokeThickness = 2d;
                shapeSetting.SelectedShapeColor = new SolidColorBrush(Colors.Blue);
                shapeSetting.ColorPalette = ColorPalettes.Metro;
                ShapeFillSetting shapeFillSetting = new ShapeFillSetting();
                shapeFillSetting.AutoFillColors = true;
                hapeSetting.FillSetting = shapeFillSetting;
                layer.ShapeSettings = shapeSetting;
                syncMap.Layers.Add(layer);
    
            }
    
        }
    
    }

    CustomColors

    Gets or sets the list of colors for CustomPalette.

    Declaration
    public ObservableCollection<MapColorPalette> CustomColors { get; set; }
    Property Value
    Type
    System.Collections.ObjectModel.ObservableCollection<MapColorPalette>
    Remarks

    CustomColors property used to set the colors for CustomPalette. These colors applied on the shapes when ColorPalette set as CustomPalette.

    Examples
    using Syncfusion.UI.Xaml.Maps;
    using System;
    using System.Collections.Generic;
    using System.IO;
    using System.Linq;
    using Windows.Foundation;
    using Windows.Foundation.Collections;
    using Windows.UI;
    using Windows.UI.Xaml;
    using Windows.UI.Xaml.Controls;
    using Windows.UI.Xaml.Controls.Primitives;
    using Windows.UI.Xaml.Data;
    using Windows.UI.Xaml.Input;
    using Windows.UI.Xaml.Media;
    using Windows.UI.Xaml.Navigation;
    
    
    namespace MapApp
    {
        public sealed partial class MainPage : Page
        {
            public MainPage()
            {
                this.InitializeComponent();
                SfMap syncMap = new SfMap();
                ViewModel viewModel = new ViewModel();
                ShapeFileLayer layer = new ShapeFileLayer();
                layer.Uri = "MapApp.world1.shp";
                layer.ItemsSource = viewModel.Models;
                layer.ShapeIDPath = "Country";
                layer.ShapeIDTableField = "NAME";
                ShapeSetting shapeSetting = new ShapeSetting();
                shapeSetting.ShapeValuePath = "CurrentTemperature";           
                shapeSetting.SelectedShapeColor = new SolidColorBrush(Colors.Blue);
                shapeSetting.ColorPalette = ColorPalettes.CustomPalette;
                shapeSetting.CustomColors.Add(new MapColorPalette { FillBrush=new SolidColorBrush(Colors.Blue) });
                shapeSetting.CustomColors.Add(new MapColorPalette { FillBrush = new SolidColorBrush(Colors.Gray) });
                shapeSetting.CustomColors.Add(new MapColorPalette { FillBrush = new SolidColorBrush(Colors.RoyalBlue });
                shapeSetting.CustomColors.Add(new MapColorPalette { FillBrush = new SolidColorBrush(Colors.Orchid) });
                ShapeFillSetting shapeFillSetting = new ShapeFillSetting();
                shapeFillSetting.AutoFillColors = true;
                shapeSetting.FillSetting = shapeFillSetting;
                layer.ShapeSettings = shapeSetting;
                syncMap.Layers.Add(layer);
    
            }
    
        }
        public class Weather
        {
    
            public int CurrentTemperature { get; set; }
            public int AverageHighTemperature { get; set; }
            public int AverageLowTemperature { get; set; }
            public string Country { get; set; }
            public string Continent { get; set; }
            public string City { get; set; }
            public string WeatherDescription { get; set; }
            public int Humidity { get; set; }
            public string Longitude { get; set; }
            public string Latitude { get; set; }
    
            public static List<Weather> GetWeatherData()
            {
                List<Weather> weatherCollection = new List<Weather>();
                weatherCollection.Add(new Weather() { Humidity = 86, CurrentTemperature = 44, AverageHighTemperature = 63, AverageLowTemperature = 46, City = "Chicago", Continent = "North America", Country = "United States", WeatherDescription = "Partly Cloudy", Latitude = "41.8500N", Longitude = "87.6500W" });
                weatherCollection.Add(new Weather() { Humidity = 94, CurrentTemperature = 77, AverageHighTemperature = 89, AverageLowTemperature = 75, City = "Chennai", Continent = "Asia", Country = "India", WeatherDescription = "Rainy", Latitude = "12.5810N", Longitude = "76.0740E" });
                weatherCollection.Add(new Weather() { Humidity = 63, CurrentTemperature = 59, AverageHighTemperature = 66, AverageLowTemperature = 45, City = "Beiging", Continent = "Asia", Country = "China", WeatherDescription = "Partly Cloudy", Longitude = "39.9100N", Latitude = "116.4000E" });
                weatherCollection.Add(new Weather() { Humidity = 60, CurrentTemperature = 70, AverageHighTemperature = 70, AverageLowTemperature = 57, City = "Tokyo", Continent = "Asia", Country = "Japan", WeatherDescription = "Partly Cloudy", Latitude = "35.6833N", Longitude = "139.7667E" });
                weatherCollection.Add(new Weather() { Humidity = 72, CurrentTemperature = 55, AverageHighTemperature = 47, AverageLowTemperature = 38, City = "Moscow", Continent = "Asia", Country = "Russia", WeatherDescription = "Clear", Latitude = "55.7517N", Longitude = "37.6178E" });
                weatherCollection.Add(new Weather() { Humidity = 70, CurrentTemperature = 53, AverageHighTemperature = 69, AverageLowTemperature = 54, City = "Cape Town", Continent = "Africa", Country = "South Africa", WeatherDescription = "Partly Cloudy", Latitude = "33.9767S", Longitude = "18.4244E" });
                weatherCollection.Add(new Weather() { Humidity = 77, CurrentTemperature = 64, AverageHighTemperature = 69, AverageLowTemperature = 56, City = "Anchorage", Continent = "North America", Country = "United States", WeatherDescription = "Mostly Cloudy", Latitude = "61.1919N", Longitude = "149.7621W" });
                weatherCollection.Add(new Weather() { Humidity = 55, CurrentTemperature = 91, AverageHighTemperature = 95, AverageLowTemperature = 74, City = "Panama", Continent = "South America", Country = "Republic Of  Panama", WeatherDescription = "Fair", Latitude = "8.7515N", Longitude = "79.8772W" });
                weatherCollection.Add(new Weather() { Humidity = 88, CurrentTemperature = 61, AverageHighTemperature = 76, AverageLowTemperature = 59, City = "Sao Paulo", Continent = "South America", Country = "Brazil", WeatherDescription = "Fair", Latitude = "23.5000S", Longitude = "46.6167W" });
                weatherCollection.Add(new Weather() { Humidity = 83, CurrentTemperature = 70, AverageHighTemperature = 85, AverageLowTemperature = 72, City = "Cairo", Continent = "Africa", Country = "Egypt", WeatherDescription = "Mostly Cloudy", Latitude = "31.2262E", Longitude = "30.0566N" });
                weatherCollection.Add(new Weather() { Humidity = 78, CurrentTemperature = 70, AverageHighTemperature = 85, AverageLowTemperature = 72, City = "Melbourne", Continent = "Oceania", Country = "Australia", WeatherDescription = "Cloudy", Latitude = "35.0833S", Longitude = "142.0667E" });
                return weatherCollection;
            }
        }
        public class ViewModel
        {
            public List<Weather> Models
            {
                get;
                set;
            }
    
            public ViewModel()
            {
    
                this.Models = new List<Weather>();
                this.Models = Weather.GetWeatherData();
    
            }
        }
    
    }

    FillSetting

    Gets or sets the settings for filling color of the shapes.

    Declaration
    public ShapeFillSetting FillSetting { get; set; }
    Property Value
    Type Description
    ShapeFillSetting

    Type :ShapeFillSetting

    Remarks

    FillSetting properties contains the members to provide the tree map like support for the map shapes.

    Examples
    using Syncfusion.UI.Xaml.Maps;
    using System;
    using System.Collections.Generic;
    using System.IO;
    using System.Linq;
    using Windows.Foundation;
    using Windows.Foundation.Collections;
    using Windows.UI;
    using Windows.UI.Xaml;
    using Windows.UI.Xaml.Controls;
    using Windows.UI.Xaml.Controls.Primitives;
    using Windows.UI.Xaml.Data;
    using Windows.UI.Xaml.Input;
    using Windows.UI.Xaml.Media;
    using Windows.UI.Xaml.Navigation;
    
    
    namespace MapApp
    {
        public sealed partial class MainPage : Page
        {
            public MainPage()
            {
                this.InitializeComponent();
                SfMap syncMap = new SfMap();
                ViewModel viewModel = new ViewModel();
                ShapeFileLayer layer = new ShapeFileLayer();
                layer.Uri = "MapApp.world1.shp";
                layer.ItemsSource = viewModel.Models;
                layer.ShapeIDPath = "Country";
                layer.ShapeIDTableField = "NAME";
                ShapeSetting shapeSetting = new ShapeSetting();
                shapeSetting.ShapeValuePath = "CurrentTemperature";        
                ShapeFillSetting shapeFillSetting = new ShapeFillSetting();
                shapeFillSetting.AutoFillColors = false;
                shapeFillSetting.ColorMappings.Add(new RangeColorMapping { Range = 0, Color = Colors.White });
                shapeFillSetting.ColorMappings.Add(new RangeColorMapping { Range = 50, Color = Colors.Red });
                shapeFillSetting.ColorMappings.Add(new RangeColorMapping { Range = 100, Color = Colors.Purple });           
                shapeSetting.FillSetting = shapeFillSetting;
                layer.ShapeSettings = shapeSetting;
                syncMap.Layers.Add(layer);
    
            }
    
        }
        public class Weather
        {
    
            public int CurrentTemperature { get; set; }
            public int AverageHighTemperature { get; set; }
            public int AverageLowTemperature { get; set; }
            public string Country { get; set; }
            public string Continent { get; set; }
            public string City { get; set; }
            public string WeatherDescription { get; set; }
            public int Humidity { get; set; }
            public string Longitude { get; set; }
            public string Latitude { get; set; }
    
            public static List<Weather> GetWeatherData()
            {
                List<Weather> weatherCollection = new List<Weather>();
                weatherCollection.Add(new Weather() { Humidity = 86, CurrentTemperature = 44, AverageHighTemperature = 63, AverageLowTemperature = 46, City = "Chicago", Continent = "North America", Country = "United States", WeatherDescription = "Partly Cloudy", Latitude = "41.8500N", Longitude = "87.6500W" });
                weatherCollection.Add(new Weather() { Humidity = 94, CurrentTemperature = 77, AverageHighTemperature = 89, AverageLowTemperature = 75, City = "Chennai", Continent = "Asia", Country = "India", WeatherDescription = "Rainy", Latitude = "12.5810N", Longitude = "76.0740E" });
                weatherCollection.Add(new Weather() { Humidity = 63, CurrentTemperature = 59, AverageHighTemperature = 66, AverageLowTemperature = 45, City = "Beiging", Continent = "Asia", Country = "China", WeatherDescription = "Partly Cloudy", Longitude = "39.9100N", Latitude = "116.4000E" });
                weatherCollection.Add(new Weather() { Humidity = 60, CurrentTemperature = 70, AverageHighTemperature = 70, AverageLowTemperature = 57, City = "Tokyo", Continent = "Asia", Country = "Japan", WeatherDescription = "Partly Cloudy", Latitude = "35.6833N", Longitude = "139.7667E" });
                weatherCollection.Add(new Weather() { Humidity = 72, CurrentTemperature = 55, AverageHighTemperature = 47, AverageLowTemperature = 38, City = "Moscow", Continent = "Asia", Country = "Russia", WeatherDescription = "Clear", Latitude = "55.7517N", Longitude = "37.6178E" });
                weatherCollection.Add(new Weather() { Humidity = 70, CurrentTemperature = 53, AverageHighTemperature = 69, AverageLowTemperature = 54, City = "Cape Town", Continent = "Africa", Country = "South Africa", WeatherDescription = "Partly Cloudy", Latitude = "33.9767S", Longitude = "18.4244E" });
                weatherCollection.Add(new Weather() { Humidity = 77, CurrentTemperature = 64, AverageHighTemperature = 69, AverageLowTemperature = 56, City = "Anchorage", Continent = "North America", Country = "United States", WeatherDescription = "Mostly Cloudy", Latitude = "61.1919N", Longitude = "149.7621W" });
                weatherCollection.Add(new Weather() { Humidity = 55, CurrentTemperature = 91, AverageHighTemperature = 95, AverageLowTemperature = 74, City = "Panama", Continent = "South America", Country = "Republic Of  Panama", WeatherDescription = "Fair", Latitude = "8.7515N", Longitude = "79.8772W" });
                weatherCollection.Add(new Weather() { Humidity = 88, CurrentTemperature = 61, AverageHighTemperature = 76, AverageLowTemperature = 59, City = "Sao Paulo", Continent = "South America", Country = "Brazil", WeatherDescription = "Fair", Latitude = "23.5000S", Longitude = "46.6167W" });
                weatherCollection.Add(new Weather() { Humidity = 83, CurrentTemperature = 70, AverageHighTemperature = 85, AverageLowTemperature = 72, City = "Cairo", Continent = "Africa", Country = "Egypt", WeatherDescription = "Mostly Cloudy", Latitude = "31.2262E", Longitude = "30.0566N" });
                weatherCollection.Add(new Weather() { Humidity = 78, CurrentTemperature = 70, AverageHighTemperature = 85, AverageLowTemperature = 72, City = "Melbourne", Continent = "Oceania", Country = "Australia", WeatherDescription = "Cloudy", Latitude = "35.0833S", Longitude = "142.0667E" });
                return weatherCollection;
            }
        }
        public class ViewModel
        {
            public List<Weather> Models
            {
                get;
                set;
            }
    
            public ViewModel()
            {
    
                this.Models = new List<Weather>();
                this.Models = Weather.GetWeatherData();
    
            }
        }
    
    }

    SelectedShapeColor

    Gets or sets the color for selected map shapes in the ShapeFileLayer.

    Declaration
    public Brush SelectedShapeColor { get; set; }
    Property Value
    Type Description
    Windows.UI.Xaml.Media.Brush

    Type :Windows.UI.Xaml.Media.Brush

    Remarks

    SelectedShapeColor sets the color of the SelectedMapShapes of the ShapeFileLayer

    Examples
    using Syncfusion.UI.Xaml.Maps;
    using System;
    using System.Collections.Generic;
    using System.IO;
    using System.Linq;
    using Windows.Foundation;
    using Windows.Foundation.Collections;
    using Windows.UI;
    using Windows.UI.Xaml;
    using Windows.UI.Xaml.Controls;
    using Windows.UI.Xaml.Controls.Primitives;
    using Windows.UI.Xaml.Data;
    using Windows.UI.Xaml.Input;
    using Windows.UI.Xaml.Media;
    using Windows.UI.Xaml.Navigation;
    
    
    namespace MapApp
    {
        public sealed partial class MainPage : Page
        {
            public MainPage()
            {
                this.InitializeComponent();
                SfMap syncMap = new SfMap();            
                ShapeFileLayer layer = new ShapeFileLayer();
                layer.Uri = "MapApp.world1.shp";           
                ShapeSetting shapeSetting = new ShapeSetting();
                shapeSetting.ShapeFill = new SolidColorBrush(Colors.Salmon);
                shapeSetting.ShapeStroke = new SolidColorBrush(Colors.Black);
                shapeSetting.ShapeStrokeThickness = 2d;
                shapeSetting.SelectedShapeColor = new SolidColorBrush(Colors.Blue);           
                layer.ShapeSettings = shapeSetting;
                syncMap.Layers.Add(layer);
    
            }
    
        }
    
    }

    SelectedShapeStroke

    Gets or sets the stroke color for the selected map shapes in ShapeFileLayer. This property is used to highlight selected shape by stroke color.

    Declaration
    public Brush SelectedShapeStroke { get; set; }
    Property Value
    Type
    Windows.UI.Xaml.Media.Brush

    SelectedShapeStrokeThickness

    Gets or sets the stroke thickness for the selected map shapes in ShapeFileLayer. This property is used to highlight selected shape by stroke thickness.

    Declaration
    public double SelectedShapeStrokeThickness { get; set; }
    Property Value
    Type
    System.Double

    ShapeColorValuePath

    Gets or Sets ShapeColorValuePath for map shapes

    Declaration
    public string ShapeColorValuePath { get; set; }
    Property Value
    Type
    System.String

    ShapeFill

    Gets or sets the fill color for the map shape.

    Declaration
    public Brush ShapeFill { get; set; }
    Property Value
    Type Description
    Windows.UI.Xaml.Media.Brush

    Type :Windows.UI.Xaml.Media.Brush

    Remarks

    ShapeFill property is used to set the fill color for the map shapes.

    Examples
    using Syncfusion.UI.Xaml.Maps;
    using System;
    using System.Collections.Generic;
    using System.IO;
    using System.Linq;
    using Windows.Foundation;
    using Windows.Foundation.Collections;
    using Windows.UI;
    using Windows.UI.Xaml;
    using Windows.UI.Xaml.Controls;
    using Windows.UI.Xaml.Controls.Primitives;
    using Windows.UI.Xaml.Data;
    using Windows.UI.Xaml.Input;
    using Windows.UI.Xaml.Media;
    using Windows.UI.Xaml.Navigation;
    
    
    namespace MapApp
    {
        public sealed partial class MainPage : Page
        {
            public MainPage()
            {
                this.InitializeComponent();
                SfMap syncMap = new SfMap();
                ViewModel viewModel = new ViewModel();
                ShapeFileLayer layer = new ShapeFileLayer();
                layer.Uri = "MapApp.world1.shp";
                layer.ItemsSource = viewModel.Models;
                layer.ShapeIDPath = "Country";
                layer.ShapeIDTableField = "NAME";
                ShapeSetting shapeSetting = new ShapeSetting();
                shapeSetting.ShapeValuePath = "CurrentTemperature";
                shapeSetting.ShapeFill = new SolidColorBrush(Colors.Salmon);
                shapeSetting.ShapeStroke = new SolidColorBrush(Colors.Black);
                shapeSetting.ShapeStrokeThickness = 2d;
                shapeSetting.SelectedShapeColor = new SolidColorBrush(Colors.Blue);
                ShapeFillSetting shapeFillSetting = new ShapeFillSetting();
                shapeFillSetting.AutoFillColors = false;
                shapeSetting.FillSetting = shapeFillSetting;
                layer.ShapeSettings = shapeSetting;
                syncMap.Layers.Add(layer);
    
            }
    
        }
        public class Weather
        {
    
            public int CurrentTemperature { get; set; }
            public int AverageHighTemperature { get; set; }
            public int AverageLowTemperature { get; set; }
            public string Country { get; set; }
            public string Continent { get; set; }
            public string City { get; set; }
            public string WeatherDescription { get; set; }
            public int Humidity { get; set; }
            public string Longitude { get; set; }
            public string Latitude { get; set; }
    
            public static List<Weather> GetWeatherData()
            {
                List<Weather> weatherCollection = new List<Weather>();
                weatherCollection.Add(new Weather() { Humidity = 86, CurrentTemperature = 44, AverageHighTemperature = 63, AverageLowTemperature = 46, City = "Chicago", Continent = "North America", Country = "United States", WeatherDescription = "Partly Cloudy", Latitude = "41.8500N", Longitude = "87.6500W" });
                weatherCollection.Add(new Weather() { Humidity = 94, CurrentTemperature = 77, AverageHighTemperature = 89, AverageLowTemperature = 75, City = "Chennai", Continent = "Asia", Country = "India", WeatherDescription = "Rainy", Latitude = "12.5810N", Longitude = "76.0740E" });
                weatherCollection.Add(new Weather() { Humidity = 63, CurrentTemperature = 59, AverageHighTemperature = 66, AverageLowTemperature = 45, City = "Beiging", Continent = "Asia", Country = "China", WeatherDescription = "Partly Cloudy", Longitude = "39.9100N", Latitude = "116.4000E" });
                weatherCollection.Add(new Weather() { Humidity = 60, CurrentTemperature = 70, AverageHighTemperature = 70, AverageLowTemperature = 57, City = "Tokyo", Continent = "Asia", Country = "Japan", WeatherDescription = "Partly Cloudy", Latitude = "35.6833N", Longitude = "139.7667E" });
                weatherCollection.Add(new Weather() { Humidity = 72, CurrentTemperature = 55, AverageHighTemperature = 47, AverageLowTemperature = 38, City = "Moscow", Continent = "Asia", Country = "Russia", WeatherDescription = "Clear", Latitude = "55.7517N", Longitude = "37.6178E" });
                weatherCollection.Add(new Weather() { Humidity = 70, CurrentTemperature = 53, AverageHighTemperature = 69, AverageLowTemperature = 54, City = "Cape Town", Continent = "Africa", Country = "South Africa", WeatherDescription = "Partly Cloudy", Latitude = "33.9767S", Longitude = "18.4244E" });
                weatherCollection.Add(new Weather() { Humidity = 77, CurrentTemperature = 64, AverageHighTemperature = 69, AverageLowTemperature = 56, City = "Anchorage", Continent = "North America", Country = "United States", WeatherDescription = "Mostly Cloudy", Latitude = "61.1919N", Longitude = "149.7621W" });
                weatherCollection.Add(new Weather() { Humidity = 55, CurrentTemperature = 91, AverageHighTemperature = 95, AverageLowTemperature = 74, City = "Panama", Continent = "South America", Country = "Republic Of  Panama", WeatherDescription = "Fair", Latitude = "8.7515N", Longitude = "79.8772W" });
                weatherCollection.Add(new Weather() { Humidity = 88, CurrentTemperature = 61, AverageHighTemperature = 76, AverageLowTemperature = 59, City = "Sao Paulo", Continent = "South America", Country = "Brazil", WeatherDescription = "Fair", Latitude = "23.5000S", Longitude = "46.6167W" });
                weatherCollection.Add(new Weather() { Humidity = 83, CurrentTemperature = 70, AverageHighTemperature = 85, AverageLowTemperature = 72, City = "Cairo", Continent = "Africa", Country = "Egypt", WeatherDescription = "Mostly Cloudy", Latitude = "31.2262E", Longitude = "30.0566N" });
                weatherCollection.Add(new Weather() { Humidity = 78, CurrentTemperature = 70, AverageHighTemperature = 85, AverageLowTemperature = 72, City = "Melbourne", Continent = "Oceania", Country = "Australia", WeatherDescription = "Cloudy", Latitude = "35.0833S", Longitude = "142.0667E" });
                return weatherCollection;
            }
        }
        public class ViewModel
        {
            public List<Weather> Models
            {
                get;
                set;
            }
    
            public ViewModel()
            {
    
                this.Models = new List<Weather>();
                this.Models = Weather.GetWeatherData();
    
            }
        }
    
    }

    ShapeStroke

    Gets or sets the border color for the MapShape.

    Declaration
    public Brush ShapeStroke { get; set; }
    Property Value
    Type Description
    Windows.UI.Xaml.Media.Brush

    Type :Windows.UI.Xaml.Media.Brush

    Remarks

    ShapeStroke property is set the border color for the map shape.

    Examples
    using Syncfusion.UI.Xaml.Maps;
    using System;
    using System.Collections.Generic;
    using System.IO;
    using System.Linq;
    using Windows.Foundation;
    using Windows.Foundation.Collections;
    using Windows.UI;
    using Windows.UI.Xaml;
    using Windows.UI.Xaml.Controls;
    using Windows.UI.Xaml.Controls.Primitives;
    using Windows.UI.Xaml.Data;
    using Windows.UI.Xaml.Input;
    using Windows.UI.Xaml.Media;
    using Windows.UI.Xaml.Navigation;
    
    
    namespace MapApp
    {
        public sealed partial class MainPage : Page
        {
            public MainPage()
            {
                this.InitializeComponent();
                SfMap syncMap = new SfMap();
                ViewModel viewModel = new ViewModel();
                ShapeFileLayer layer = new ShapeFileLayer();
                layer.Uri = "MapApp.world1.shp";
                layer.ItemsSource = viewModel.Models;
                layer.ShapeIDPath = "Country";
                layer.ShapeIDTableField = "NAME";
                ShapeSetting shapeSetting = new ShapeSetting();
                shapeSetting.ShapeValuePath = "CurrentTemperature";
                shapeSetting.ShapeFill = new SolidColorBrush(Colors.Salmon);
                shapeSetting.ShapeStroke = new SolidColorBrush(Colors.Black);
                shapeSetting.ShapeStrokeThickness = 2d;
                shapeSetting.SelectedShapeColor = new SolidColorBrush(Colors.Blue);          
                ShapeFillSetting shapeFillSetting = new ShapeFillSetting();
                shapeFillSetting.AutoFillColors = false;                
                shapeSetting.FillSetting = shapeFillSetting;
                layer.ShapeSettings = shapeSetting;
                syncMap.Layers.Add(layer);
    
            }
    
        }
        public class Weather
        {
    
            public int CurrentTemperature { get; set; }
            public int AverageHighTemperature { get; set; }
            public int AverageLowTemperature { get; set; }
            public string Country { get; set; }
            public string Continent { get; set; }
            public string City { get; set; }
            public string WeatherDescription { get; set; }
            public int Humidity { get; set; }
            public string Longitude { get; set; }
            public string Latitude { get; set; }
    
            public static List<Weather> GetWeatherData()
            {
                List<Weather> weatherCollection = new List<Weather>();
                weatherCollection.Add(new Weather() { Humidity = 86, CurrentTemperature = 44, AverageHighTemperature = 63, AverageLowTemperature = 46, City = "Chicago", Continent = "North America", Country = "United States", WeatherDescription = "Partly Cloudy", Latitude = "41.8500N", Longitude = "87.6500W" });
                weatherCollection.Add(new Weather() { Humidity = 94, CurrentTemperature = 77, AverageHighTemperature = 89, AverageLowTemperature = 75, City = "Chennai", Continent = "Asia", Country = "India", WeatherDescription = "Rainy", Latitude = "12.5810N", Longitude = "76.0740E" });
                weatherCollection.Add(new Weather() { Humidity = 63, CurrentTemperature = 59, AverageHighTemperature = 66, AverageLowTemperature = 45, City = "Beiging", Continent = "Asia", Country = "China", WeatherDescription = "Partly Cloudy", Longitude = "39.9100N", Latitude = "116.4000E" });
                weatherCollection.Add(new Weather() { Humidity = 60, CurrentTemperature = 70, AverageHighTemperature = 70, AverageLowTemperature = 57, City = "Tokyo", Continent = "Asia", Country = "Japan", WeatherDescription = "Partly Cloudy", Latitude = "35.6833N", Longitude = "139.7667E" });
                weatherCollection.Add(new Weather() { Humidity = 72, CurrentTemperature = 55, AverageHighTemperature = 47, AverageLowTemperature = 38, City = "Moscow", Continent = "Asia", Country = "Russia", WeatherDescription = "Clear", Latitude = "55.7517N", Longitude = "37.6178E" });
                weatherCollection.Add(new Weather() { Humidity = 70, CurrentTemperature = 53, AverageHighTemperature = 69, AverageLowTemperature = 54, City = "Cape Town", Continent = "Africa", Country = "South Africa", WeatherDescription = "Partly Cloudy", Latitude = "33.9767S", Longitude = "18.4244E" });
                weatherCollection.Add(new Weather() { Humidity = 77, CurrentTemperature = 64, AverageHighTemperature = 69, AverageLowTemperature = 56, City = "Anchorage", Continent = "North America", Country = "United States", WeatherDescription = "Mostly Cloudy", Latitude = "61.1919N", Longitude = "149.7621W" });
                weatherCollection.Add(new Weather() { Humidity = 55, CurrentTemperature = 91, AverageHighTemperature = 95, AverageLowTemperature = 74, City = "Panama", Continent = "South America", Country = "Republic Of  Panama", WeatherDescription = "Fair", Latitude = "8.7515N", Longitude = "79.8772W" });
                weatherCollection.Add(new Weather() { Humidity = 88, CurrentTemperature = 61, AverageHighTemperature = 76, AverageLowTemperature = 59, City = "Sao Paulo", Continent = "South America", Country = "Brazil", WeatherDescription = "Fair", Latitude = "23.5000S", Longitude = "46.6167W" });
                weatherCollection.Add(new Weather() { Humidity = 83, CurrentTemperature = 70, AverageHighTemperature = 85, AverageLowTemperature = 72, City = "Cairo", Continent = "Africa", Country = "Egypt", WeatherDescription = "Mostly Cloudy", Latitude = "31.2262E", Longitude = "30.0566N" });
                weatherCollection.Add(new Weather() { Humidity = 78, CurrentTemperature = 70, AverageHighTemperature = 85, AverageLowTemperature = 72, City = "Melbourne", Continent = "Oceania", Country = "Australia", WeatherDescription = "Cloudy", Latitude = "35.0833S", Longitude = "142.0667E" });
                return weatherCollection;
            }
        }
        public class ViewModel
        {
            public List<Weather> Models
            {
                get;
                set;
            }
    
            public ViewModel()
            {
    
                this.Models = new List<Weather>();
                this.Models = Weather.GetWeatherData();
    
            }
        }
    
    }

    ShapeStrokeThickness

    Gets or sets border thickness of the map shapes.

    Declaration
    public double ShapeStrokeThickness { get; set; }
    Property Value
    Type Description
    System.Double

    Type :System.Double

    Remarks

    ShapeStrokeThickness sets the border thickness of the map shapes.

    Examples
    using Syncfusion.UI.Xaml.Maps;
    using System;
    using System.Collections.Generic;
    using System.IO;
    using System.Linq;
    using Windows.Foundation;
    using Windows.Foundation.Collections;
    using Windows.UI;
    using Windows.UI.Xaml;
    using Windows.UI.Xaml.Controls;
    using Windows.UI.Xaml.Controls.Primitives;
    using Windows.UI.Xaml.Data;
    using Windows.UI.Xaml.Input;
    using Windows.UI.Xaml.Media;
    using Windows.UI.Xaml.Navigation;
    
    
    namespace MapApp
    {
        public sealed partial class MainPage : Page
        {
            public MainPage()
            {
                this.InitializeComponent();
                SfMap syncMap = new SfMap();
                ViewModel viewModel = new ViewModel();
                ShapeFileLayer layer = new ShapeFileLayer();
                layer.Uri = "MapApp.world1.shp";
                layer.ItemsSource = viewModel.Models;
                layer.ShapeIDPath = "Country";
                layer.ShapeIDTableField = "NAME";
                ShapeSetting shapeSetting = new ShapeSetting();
                shapeSetting.ShapeValuePath = "CurrentTemperature";
                shapeSetting.ShapeFill = new SolidColorBrush(Colors.Salmon);
                shapeSetting.ShapeStroke = new SolidColorBrush(Colors.Black);
                shapeSetting.ShapeStrokeThickness = 2d;
                shapeSetting.SelectedShapeColor = new SolidColorBrush(Colors.Blue);
                shapeSetting.ColorPalette = ColorPalettes.CustomPalette;
                shapeFillSetting.AutoFillColors = false;
                  shapeSetting.FillSetting = shapeFillSetting;
                layer.ShapeSettings = shapeSetting;
                syncMap.Layers.Add(layer);
    
            }
    
        }
        public class Weather
        {
    
            public int CurrentTemperature { get; set; }
            public int AverageHighTemperature { get; set; }
            public int AverageLowTemperature { get; set; }
            public string Country { get; set; }
            public string Continent { get; set; }
            public string City { get; set; }
            public string WeatherDescription { get; set; }
            public int Humidity { get; set; }
            public string Longitude { get; set; }
            public string Latitude { get; set; }
    
            public static List<Weather> GetWeatherData()
            {
                List<Weather> weatherCollection = new List<Weather>();
                weatherCollection.Add(new Weather() { Humidity = 86, CurrentTemperature = 44, AverageHighTemperature = 63, AverageLowTemperature = 46, City = "Chicago", Continent = "North America", Country = "United States", WeatherDescription = "Partly Cloudy", Latitude = "41.8500N", Longitude = "87.6500W" });
                weatherCollection.Add(new Weather() { Humidity = 94, CurrentTemperature = 77, AverageHighTemperature = 89, AverageLowTemperature = 75, City = "Chennai", Continent = "Asia", Country = "India", WeatherDescription = "Rainy", Latitude = "12.5810N", Longitude = "76.0740E" });
                weatherCollection.Add(new Weather() { Humidity = 63, CurrentTemperature = 59, AverageHighTemperature = 66, AverageLowTemperature = 45, City = "Beiging", Continent = "Asia", Country = "China", WeatherDescription = "Partly Cloudy", Longitude = "39.9100N", Latitude = "116.4000E" });
                weatherCollection.Add(new Weather() { Humidity = 60, CurrentTemperature = 70, AverageHighTemperature = 70, AverageLowTemperature = 57, City = "Tokyo", Continent = "Asia", Country = "Japan", WeatherDescription = "Partly Cloudy", Latitude = "35.6833N", Longitude = "139.7667E" });
                weatherCollection.Add(new Weather() { Humidity = 72, CurrentTemperature = 55, AverageHighTemperature = 47, AverageLowTemperature = 38, City = "Moscow", Continent = "Asia", Country = "Russia", WeatherDescription = "Clear", Latitude = "55.7517N", Longitude = "37.6178E" });
                weatherCollection.Add(new Weather() { Humidity = 70, CurrentTemperature = 53, AverageHighTemperature = 69, AverageLowTemperature = 54, City = "Cape Town", Continent = "Africa", Country = "South Africa", WeatherDescription = "Partly Cloudy", Latitude = "33.9767S", Longitude = "18.4244E" });
                weatherCollection.Add(new Weather() { Humidity = 77, CurrentTemperature = 64, AverageHighTemperature = 69, AverageLowTemperature = 56, City = "Anchorage", Continent = "North America", Country = "United States", WeatherDescription = "Mostly Cloudy", Latitude = "61.1919N", Longitude = "149.7621W" });
                weatherCollection.Add(new Weather() { Humidity = 55, CurrentTemperature = 91, AverageHighTemperature = 95, AverageLowTemperature = 74, City = "Panama", Continent = "South America", Country = "Republic Of  Panama", WeatherDescription = "Fair", Latitude = "8.7515N", Longitude = "79.8772W" });
                weatherCollection.Add(new Weather() { Humidity = 88, CurrentTemperature = 61, AverageHighTemperature = 76, AverageLowTemperature = 59, City = "Sao Paulo", Continent = "South America", Country = "Brazil", WeatherDescription = "Fair", Latitude = "23.5000S", Longitude = "46.6167W" });
                weatherCollection.Add(new Weather() { Humidity = 83, CurrentTemperature = 70, AverageHighTemperature = 85, AverageLowTemperature = 72, City = "Cairo", Continent = "Africa", Country = "Egypt", WeatherDescription = "Mostly Cloudy", Latitude = "31.2262E", Longitude = "30.0566N" });
                weatherCollection.Add(new Weather() { Humidity = 78, CurrentTemperature = 70, AverageHighTemperature = 85, AverageLowTemperature = 72, City = "Melbourne", Continent = "Oceania", Country = "Australia", WeatherDescription = "Cloudy", Latitude = "35.0833S", Longitude = "142.0667E" });
                return weatherCollection;
            }
        }
        public class ViewModel
        {
            public List<Weather> Models
            {
                get;
                set;
            }
    
            public ViewModel()
            {
    
                this.Models = new List<Weather>();
                this.Models = Weather.GetWeatherData();
    
            }
        }
    
    }

    ShapeValuePath

    Gets or sets the property name to set the value for the map shape from the under bound object.

    Declaration
    public string ShapeValuePath { get; set; }
    Property Value
    Type Description
    System.String

    Type :System.String

    Remarks

    ShapeValuePath sets the name of the property of the under bound object to set the value for the map shapes.

    Examples
    using Syncfusion.UI.Xaml.Maps;
    using System;
    using System.Collections.Generic;
    using System.IO;
    using System.Linq;
    using Windows.Foundation;
    using Windows.Foundation.Collections;
    using Windows.UI;
    using Windows.UI.Xaml;
    using Windows.UI.Xaml.Controls;
    using Windows.UI.Xaml.Controls.Primitives;
    using Windows.UI.Xaml.Data;
    using Windows.UI.Xaml.Input;
    using Windows.UI.Xaml.Media;
    using Windows.UI.Xaml.Navigation;
    
    
    namespace MapApp
    {
        public sealed partial class MainPage : Page
        {
            public MainPage()
            {
                this.InitializeComponent();
                SfMap syncMap = new SfMap();
                ViewModel viewModel = new ViewModel();
                ShapeFileLayer layer = new ShapeFileLayer();
                layer.Uri = "MapApp.world1.shp";
                layer.ItemsSource = viewModel.Models;
                layer.ShapeIDPath = "Country";
                layer.ShapeIDTableField = "NAME";
                ShapeSetting shapeSetting = new ShapeSetting();
                shapeSetting.ShapeValuePath = "CurrentTemperature";
                shapeSetting.ShapeFill = new SolidColorBrush(Colors.Salmon);
                shapeSetting.ShapeStroke = new SolidColorBrush(Colors.Black);
                shapeSetting.ShapeStrokeThickness = 2d;
                shapeSetting.SelectedShapeColor = new SolidColorBrush(Colors.Blue);
                layer.ShapeSettings = shapeSetting;
                syncMap.Layers.Add(layer);
    
            }
    
        }
        public class Weather
        {
    
            public int CurrentTemperature { get; set; }
            public int AverageHighTemperature { get; set; }
            public int AverageLowTemperature { get; set; }
            public string Country { get; set; }
            public string Continent { get; set; }
            public string City { get; set; }
            public string WeatherDescription { get; set; }
            public int Humidity { get; set; }
            public string Longitude { get; set; }
            public string Latitude { get; set; }
    
            public static List<Weather> GetWeatherData()
            {
                List<Weather> weatherCollection = new List<Weather>();
                weatherCollection.Add(new Weather() { Humidity = 86, CurrentTemperature = 44, AverageHighTemperature = 63, AverageLowTemperature = 46, City = "Chicago", Continent = "North America", Country = "United States", WeatherDescription = "Partly Cloudy", Latitude = "41.8500N", Longitude = "87.6500W" });
                weatherCollection.Add(new Weather() { Humidity = 94, CurrentTemperature = 77, AverageHighTemperature = 89, AverageLowTemperature = 75, City = "Chennai", Continent = "Asia", Country = "India", WeatherDescription = "Rainy", Latitude = "12.5810N", Longitude = "76.0740E" });
                weatherCollection.Add(new Weather() { Humidity = 63, CurrentTemperature = 59, AverageHighTemperature = 66, AverageLowTemperature = 45, City = "Beiging", Continent = "Asia", Country = "China", WeatherDescription = "Partly Cloudy", Longitude = "39.9100N", Latitude = "116.4000E" });
                weatherCollection.Add(new Weather() { Humidity = 60, CurrentTemperature = 70, AverageHighTemperature = 70, AverageLowTemperature = 57, City = "Tokyo", Continent = "Asia", Country = "Japan", WeatherDescription = "Partly Cloudy", Latitude = "35.6833N", Longitude = "139.7667E" });
                weatherCollection.Add(new Weather() { Humidity = 72, CurrentTemperature = 55, AverageHighTemperature = 47, AverageLowTemperature = 38, City = "Moscow", Continent = "Asia", Country = "Russia", WeatherDescription = "Clear", Latitude = "55.7517N", Longitude = "37.6178E" });
                weatherCollection.Add(new Weather() { Humidity = 70, CurrentTemperature = 53, AverageHighTemperature = 69, AverageLowTemperature = 54, City = "Cape Town", Continent = "Africa", Country = "South Africa", WeatherDescription = "Partly Cloudy", Latitude = "33.9767S", Longitude = "18.4244E" });
                weatherCollection.Add(new Weather() { Humidity = 77, CurrentTemperature = 64, AverageHighTemperature = 69, AverageLowTemperature = 56, City = "Anchorage", Continent = "North America", Country = "United States", WeatherDescription = "Mostly Cloudy", Latitude = "61.1919N", Longitude = "149.7621W" });
                weatherCollection.Add(new Weather() { Humidity = 55, CurrentTemperature = 91, AverageHighTemperature = 95, AverageLowTemperature = 74, City = "Panama", Continent = "South America", Country = "Republic Of  Panama", WeatherDescription = "Fair", Latitude = "8.7515N", Longitude = "79.8772W" });
                weatherCollection.Add(new Weather() { Humidity = 88, CurrentTemperature = 61, AverageHighTemperature = 76, AverageLowTemperature = 59, City = "Sao Paulo", Continent = "South America", Country = "Brazil", WeatherDescription = "Fair", Latitude = "23.5000S", Longitude = "46.6167W" });
                weatherCollection.Add(new Weather() { Humidity = 83, CurrentTemperature = 70, AverageHighTemperature = 85, AverageLowTemperature = 72, City = "Cairo", Continent = "Africa", Country = "Egypt", WeatherDescription = "Mostly Cloudy", Latitude = "31.2262E", Longitude = "30.0566N" });
                weatherCollection.Add(new Weather() { Humidity = 78, CurrentTemperature = 70, AverageHighTemperature = 85, AverageLowTemperature = 72, City = "Melbourne", Continent = "Oceania", Country = "Australia", WeatherDescription = "Cloudy", Latitude = "35.0833S", Longitude = "142.0667E" });
                return weatherCollection;
            }
        }
        public class ViewModel
        {
            public List<Weather> Models
            {
                get;
                set;
            }
    
            public ViewModel()
            {
    
                this.Models = new List<Weather>();
                this.Models = Weather.GetWeatherData();
    
            }
        }
    
    }

    Extension Methods

    DateTimeExtension.ToDateTime(Object)
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved