menu

UWP

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

    Show / Hide Table of Contents

    Class MapShape

    Represents the MapShape class in the SfMap.Inherited from Windows.UI.Xaml.Controls.Control class.

    Inheritance
    System.Object
    MapShape
    Implements
    System.IDisposable
    Namespace: Syncfusion.UI.Xaml.Maps
    Assembly: Syncfusion.SfMaps.UWP.dll
    Syntax
    public class MapShape : Control, IDisposable
    Remarks

    MapShape are core element of the SfMap. MapShape is generate from a record in the ShapeFile.

    Constructors

    MapShape()

    Initializes a new instance of the MapShape class.

    Declaration
    public MapShape()
    Remarks

    Intialize the instance of the MapShapeclass and attribute values.

    Fields

    ColorValueProperty

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

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

    ShapeDataProperty

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

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

    ShapeProperty

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

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

    ShapeValueProperty

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

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

    Properties

    ColorValue

    Gets or Sets ColorValue for shapes

    Declaration
    public object ColorValue { get; }
    Property Value
    Type
    System.Object

    Shape

    Get the shape of the MapShape.

    Declaration
    public Path Shape { get; }
    Property Value
    Type Description
    Windows.UI.Xaml.Shapes.Path

    Type :Windows.UI.Xaml.Shapes.Path

    Remarks

    Shape is the read only property. Value for the Shape is internally set.

    ShapeData

    Gets and Sets ShapeData values

    Declaration
    public object ShapeData { get; }
    Property Value
    Type
    System.Object

    ShapeValue

    Get the Under bound object value of the shape.

    Declaration
    public object ShapeValue { get; }
    Property Value
    Type Description
    System.Object

    Type :System.Object

    Remarks

    ShapeValue is the read only property. It contains under bound object value of the corresponding shape. Value for this property is internally set.

    Methods

    Dispose()

    Dispose method invokes while unloading mapshape

    Declaration
    public void Dispose()

    OnApplyTemplate()

    Defines OnApplyTemplate

    Declaration
    protected override void OnApplyTemplate()

    OnPointerMoved(PointerRoutedEventArgs)

    OnPointerMoved Event for selected mapshape

    Declaration
    protected override void OnPointerMoved(PointerRoutedEventArgs e)
    Parameters
    Type Name Description
    Windows.UI.Xaml.Input.PointerRoutedEventArgs e

    OnPointerPressed(PointerRoutedEventArgs)

    OnPointerPressed Event for selected mapshape

    Declaration
    protected override void OnPointerPressed(PointerRoutedEventArgs e)
    Parameters
    Type Name Description
    Windows.UI.Xaml.Input.PointerRoutedEventArgs e

    OnPointerReleased(PointerRoutedEventArgs)

    OnPointerReleased Event for selected mapshape

    Declaration
    protected override void OnPointerReleased(PointerRoutedEventArgs e)
    Parameters
    Type Name Description
    Windows.UI.Xaml.Input.PointerRoutedEventArgs e

    OnTapped(TappedRoutedEventArgs)

    OnTapped Event for selected mapshape

    Declaration
    protected override void OnTapped(TappedRoutedEventArgs e)
    Parameters
    Type Name Description
    Windows.UI.Xaml.Input.TappedRoutedEventArgs e

    Implements

    System.IDisposable

    Extension Methods

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