Class MiniMapElement
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.RadMap.dll
Syntax
public class MiniMapElement : BaseMapElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IComponent, IDisposable, IBindableComponent, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IImageElement, ITextPrimitive, ITextProvider, IMapViewport
Constructors
MiniMapElement()
Declaration
public MiniMapElement()
Fields
isBringIntoView
Declaration
protected bool isBringIntoView
Field Value
System.Boolean
|
suspendViewportUpdates
Declaration
protected bool suspendViewportUpdates
Field Value
System.Boolean
|
ViewportControlBackColorProperty
ViewportControlBorderColorProperty
Properties
IsAnimating
Gets a value indicating whether a collapse or expand animation is currently active.
Declaration
public bool IsAnimating { get; protected set; }
Property Value
System.Boolean
|
IsCollapsed
Gets or sets a value indicating whether this instance is collapsed.
Declaration
public bool IsCollapsed { get; set; }
Property Value
System.Boolean
|
MapElement
Gets the map element.
Declaration
public RadMapElement MapElement { get; }
Property Value
RadMapElement
The map element. |
MiniMapMode
Gets or sets the mini map mode.
Declaration
public MiniMapMode MiniMapMode { get; set; }
Property Value
MiniMapMode
The mini map mode. |
MiniMapSize
Gets or sets the size of the mini map.
Declaration
public Size MiniMapSize { get; set; }
Property Value
System.Drawing.Size
The size of the mini map. |
ToggleMiniMapButton
Gets the toggle mini map button.
Declaration
public MiniMapToggleButtonElement ToggleMiniMapButton { get; }
Property Value
MiniMapToggleButtonElement
The toggle mini map button. |
ViewportControlBackColor
Gets or sets the back color of the viewport control.
Declaration
public Color ViewportControlBackColor { get; set; }
Property Value
System.Drawing.Color
The color of the viewport control back. |
ViewportControlBorderColor
Gets or sets the border color of the viewport control.
Declaration
public Color ViewportControlBorderColor { get; set; }
Property Value
System.Drawing.Color
The color of the viewport control border. |
ZoomLevel
Gets or sets the current zoom level.
Declaration
public override int ZoomLevel { get; set; }
Property Value
System.Int32
The zoom level. |
Overrides
ZoomOffset
Gets or sets the zoom offset. This property is used when the MiniMapMode is set to OffsetZoom.
Declaration
public int ZoomOffset { get; set; }
Property Value
System.Int32
The zoom offset. |
Methods
ArrangeOverride(SizeF)
Declaration
protected override SizeF ArrangeOverride(SizeF finalSize)
Parameters
System.Drawing.SizeF
finalSize
|
Returns
System.Drawing.SizeF
|
Overrides
BringIntoView(PointG)
Declaration
public override void BringIntoView(PointG location)
Parameters
PointG
location
|
Overrides
CalculateViewport(SizeF)
Declaration
protected override void CalculateViewport(SizeF finalSize)
Parameters
System.Drawing.SizeF
finalSize
|
Overrides
Collapse()
Collapses the mini map.
Declaration
public virtual void Collapse()
CreateChildElements()
Declaration
protected override void CreateChildElements()
Overrides
CreateToggleMiniMapButton()
Declaration
protected virtual MiniMapToggleButtonElement CreateToggleMiniMapButton()
Returns
MiniMapToggleButtonElement
|
DrawViewportControlRectangle(IGraphics, Single, SizeF)
Draws the viewport control rectangle.
Declaration
protected virtual void DrawViewportControlRectangle(IGraphics graphics, float angle, SizeF scale)
Parameters
IGraphics
graphics
The graphics. |
System.Single
angle
The angle. |
System.Drawing.SizeF
scale
The scale. |
Expand()
Expands the mini map.
Declaration
public virtual void Expand()
InitializeFields()
MeasureOverride(SizeF)
Declaration
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters
System.Drawing.SizeF
availableSize
|
Returns
System.Drawing.SizeF
|
Overrides
OnCollapseAnimationFinished(Object, AnimationStatusEventArgs)
Declaration
protected virtual void OnCollapseAnimationFinished(object sender, AnimationStatusEventArgs e)
Parameters
System.Object
sender
|
AnimationStatusEventArgs
e
|
OnExpandAnimationFinished(Object, AnimationStatusEventArgs)
Declaration
protected virtual void OnExpandAnimationFinished(object sender, AnimationStatusEventArgs e)
Parameters
System.Object
sender
|
AnimationStatusEventArgs
e
|
OnMapElementViewportChanged(Object, ViewportChangedEventArgs)
Handles the MapElement ViewportChanged event.
Declaration
protected virtual void OnMapElementViewportChanged(object sender, ViewportChangedEventArgs e)
Parameters
System.Object
sender
The sender. |
ViewportChangedEventArgs
e
The ViewportChangedEventArgs instance containing the event data. |
OnPropertyChanged(RadPropertyChangedEventArgs)
Declaration
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Parameters
RadPropertyChangedEventArgs
e
|
Overrides
OnProviderInitializationComplete(IMapProvider)
Called when a map provider is initialized.
Declaration
public override void OnProviderInitializationComplete(IMapProvider mapProvider)
Parameters
IMapProvider
mapProvider
The map provider. |
Overrides
OnToggleMiniMapButtonToggleStateChanged(Object, StateChangedEventArgs)
Declaration
protected virtual void OnToggleMiniMapButtonToggleStateChanged(object sender, StateChangedEventArgs args)
Parameters
System.Object
sender
|
StateChangedEventArgs
args
|
OnToggleMiniMapButtonToggleStateChanging(Object, StateChangingEventArgs)
Declaration
protected virtual void OnToggleMiniMapButtonToggleStateChanging(object sender, StateChangingEventArgs args)
Parameters
System.Object
sender
|
StateChangingEventArgs
args
|
PaintDynamicMiniMap(IGraphics, Single, SizeF)
Paints the mini map when the mode is set to OffsetZoom.
Declaration
protected virtual void PaintDynamicMiniMap(IGraphics graphics, float angle, SizeF scale)
Parameters
IGraphics
graphics
The graphics. |
System.Single
angle
The angle. |
System.Drawing.SizeF
scale
The scale. |
PaintElement(IGraphics)
Declaration
protected override void PaintElement(IGraphics graphics)
Parameters
IGraphics
graphics
|
Overrides
PaintElement(IGraphics, Single, SizeF)
Declaration
protected override void PaintElement(IGraphics graphics, float angle, SizeF scale)
Parameters
IGraphics
graphics
|
System.Single
angle
|
System.Drawing.SizeF
scale
|
Overrides
PaintProvidersContent(IGraphics)
Declaration
protected override void PaintProvidersContent(IGraphics graphics)
Parameters
IGraphics
graphics
|
Overrides
PaintStaticMiniMap(IGraphics, Single, SizeF)
Paints the mini map when the mode is set to StaticZoom.
Declaration
protected virtual void PaintStaticMiniMap(IGraphics graphics, float angle, SizeF scale)
Parameters
IGraphics
graphics
The graphics. |
System.Single
angle
The angle. |
System.Drawing.SizeF
scale
The scale. |
PaintWholeWorldMiniMap(IGraphics, Single, SizeF)
Paints the mini map when the mode is set to WholeWorld.
Declaration
protected virtual void PaintWholeWorldMiniMap(IGraphics graphics, float angle, SizeF scale)
Parameters
IGraphics
graphics
The graphics. |
System.Single
angle
The angle. |
System.Drawing.SizeF
scale
The scale. |
Pan(Int64, Int64)
Declaration
public override void Pan(long x, long y)
Parameters
System.Int64
x
|
System.Int64
y
|
Overrides
SetMapElement(RadMapElement)
Sets the map element.
Declaration
protected virtual void SetMapElement(RadMapElement mapElement)
Parameters
RadMapElement
mapElement
The map element. |
SetMiniMapMode(MiniMapMode)
Sets the mini map mode.
Declaration
protected virtual void SetMiniMapMode(MiniMapMode mode)
Parameters
MiniMapMode
mode
The mode. |
SetZoomOffset(Int32)
Declaration
protected virtual void SetZoomOffset(int value)
Parameters
System.Int32
value
|
Subscribe()
Subscribes to the map viewport events that affect the mini map.
Declaration
protected virtual void Subscribe()
Unsubscribe()
Unsubscribes to the map viewport events that affect the mini map.
Declaration
protected virtual void Unsubscribe()
Zoom(Int32, Boolean, Point)
Declaration
public override void Zoom(int zoomLevel, bool animate, Point center)
Parameters
System.Int32
zoomLevel
|
System.Boolean
animate
|
System.Drawing.Point
center
|