Class Tile
Tile is a UIElement that contains shape file layer and map Images
Inheritance
Implements
Namespace: Syncfusion.UI.Xaml.Maps
Assembly: Syncfusion.SfMaps.WPF.dll
Syntax
public class Tile : Control, IDisposable
Constructors
Tile()
Initializes a new instance of the BingMapApp.Tile class.
Declaration
public Tile()
Fields
TileImageProperty
Using a DependencyProperty as the backing store for TileImage. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty TileImageProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
TileImageSourceProperty
Identifies TileImageSource Property
Declaration
public static readonly DependencyProperty TileImageSourceProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
XProperty
Identifies X Property of the Tiles
Declaration
public static readonly DependencyProperty XProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
YProperty
Identifies Y Property of the Tile.
Declaration
public static readonly DependencyProperty YProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
Properties
TileImage
Gets or sets Image for Tile.
Declaration
public DependencyObject TileImage { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.DependencyObject | DependencyObject |
TileImageSource
Gets or sets TileImageSource for the Tile.
Declaration
public ImageSource TileImageSource { get; set; }
Property Value
Type |
---|
System.Windows.Media.ImageSource |
X
Gets or sets X Co-Ordinate For the Tile.
Declaration
public int X { get; }
Property Value
Type |
---|
System.Int32 |
Y
Gets or sets Y Co-Ordinate for the Tile.
Declaration
public int Y { get; }
Property Value
Type |
---|
System.Int32 |
Methods
Dispose()
Dispose method invokes while unloading Tile
Declaration
public void Dispose()
LatLongToPoint(Double, Double)
This method converts latitude longitude to point value
Declaration
public Point LatLongToPoint(double latitude, double longitude)
Parameters
Type | Name | Description |
---|---|---|
System.Double | latitude | Latitude |
System.Double | longitude | Longitude |
Returns
Type |
---|
System.Windows.Point |
LatLongToPoint(Double, Double, Int32)
Calculates Latitude and Longitude of Tiles which is to be generated
Declaration
public static Point LatLongToPoint(double latitude, double longitude, int zoomlevel)
Parameters
Type | Name | Description |
---|---|---|
System.Double | latitude | |
System.Double | longitude | |
System.Int32 | zoomlevel |
Returns
Type |
---|
System.Windows.Point |
OnApplyTemplate()
When overridden in a derived class, is invoked whenever application code or internal processes call System.Windows.FrameworkElement.ApplyTemplate.
Declaration
public override void OnApplyTemplate()
OnMouseLeave(MouseEventArgs)
Invoked when an unhandled System.Windows.Input.Mouse.MouseLeave attached event is raised on this element. Implement this method to add class handling for this event.
Declaration
protected override void OnMouseLeave(MouseEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.MouseEventArgs | e | The System.Windows.Input.MouseEventArgs that contains the event data. |
OnMouseLeftButtonDown(MouseButtonEventArgs)
Invoked when an unhandled System.Windows.UIElement.MouseLeftButtonDown routed event is raised on this element. Implement this method to add class handling for this event.
Declaration
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.MouseButtonEventArgs | e | The System.Windows.Input.MouseButtonEventArgs that contains the event data. The event data reports that the left mouse button was pressed. |
OnMouseLeftButtonUp(MouseButtonEventArgs)
Invoked when an unhandled System.Windows.UIElement.MouseLeftButtonUp routed event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.
Declaration
protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.MouseButtonEventArgs | e | The System.Windows.Input.MouseButtonEventArgs that contains the event data. The event data reports that the left mouse button was released. |