WPF

Code Examples Upgrade Guide User Guide Demos Support Forums Download
  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class MapShape

    Show / Hide Table of Contents

    Class MapShape

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

    Inheritance
    System.Object
    MapShape
    Implements
    System.IDisposable
    Namespace: Syncfusion.UI.Xaml.Maps
    Assembly: Syncfusion.SfMaps.WPF.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 Description
    System.Windows.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 Description
    System.Windows.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 Description
    System.Windows.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 Description
    System.Windows.DependencyProperty

    Properties

    ColorValue

    Gets or Sets ColorValue for shapes

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

    Shape

    Get the shape of the MapShape.

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

    Type :System.Windows.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 Description
    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
    public override void OnApplyTemplate()

    OnMouseEnter(MouseEventArgs)

    Declaration
    protected override void OnMouseEnter(MouseEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Input.MouseEventArgs e

    OnMouseLeave(MouseEventArgs)

    Declaration
    protected override void OnMouseLeave(MouseEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Input.MouseEventArgs e

    OnMouseLeftButtonDown(MouseButtonEventArgs)

    Declaration
    protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Input.MouseButtonEventArgs e

    OnMouseLeftButtonUp(MouseButtonEventArgs)

    Declaration
    protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Input.MouseButtonEventArgs e

    OnMouseMove(MouseEventArgs)

    Declaration
    protected override void OnMouseMove(MouseEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Input.MouseEventArgs e

    Implements

    System.IDisposable
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved