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.
|
suspendViewportUpdates
Declaration
protected bool suspendViewportUpdates
Field Value
System.
|
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.
|
IsCollapsed
Gets or sets a value indicating whether this instance is collapsed.
Declaration
public bool IsCollapsed { get; set; }
Property Value
System.
|
MapElement
Gets the map element.
Declaration
public RadMapElement MapElement { get; }
Property Value
Rad The map element. |
MiniMapMode
Gets or sets the mini map mode.
Declaration
public MiniMapMode MiniMapMode { get; set; }
Property Value
Mini The mini map mode. |
MiniMapSize
Gets or sets the size of the mini map.
Declaration
public Size MiniMapSize { get; set; }
Property Value
System. The size of the mini map. |
ToggleMiniMapButton
Gets the toggle mini map button.
Declaration
public MiniMapToggleButtonElement ToggleMiniMapButton { get; }
Property Value
Mini 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. 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. 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. 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. The zoom offset. |
Methods
ArrangeOverride(SizeF)
Declaration
protected override SizeF ArrangeOverride(SizeF finalSize)
Parameters
System.
|
Returns
System.
|
Overrides
BringIntoView(PointG)
Declaration
public override void BringIntoView(PointG location)
Parameters
Point
|
Overrides
CalculateViewport(SizeF)
Declaration
protected override void CalculateViewport(SizeF finalSize)
Parameters
System.
|
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
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. The angle. |
System. The scale. |
Expand()
Expands the mini map.
Declaration
public virtual void Expand()
InitializeFields()
MeasureOverride(SizeF)
Declaration
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters
System.
|
Returns
System.
|
Overrides
OnCollapseAnimationFinished(Object, AnimationStatusEventArgs)
Declaration
protected virtual void OnCollapseAnimationFinished(object sender, AnimationStatusEventArgs e)
Parameters
System.
|
Animation
|
OnExpandAnimationFinished(Object, AnimationStatusEventArgs)
Declaration
protected virtual void OnExpandAnimationFinished(object sender, AnimationStatusEventArgs e)
Parameters
System.
|
Animation
|
OnMapElementViewportChanged(Object, ViewportChangedEventArgs)
Handles the MapElement ViewportChanged event.
Declaration
protected virtual void OnMapElementViewportChanged(object sender, ViewportChangedEventArgs e)
Parameters
System. The sender. |
Viewport The Viewport |
OnPropertyChanged(RadPropertyChangedEventArgs)
Declaration
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Parameters
Overrides
OnProviderInitializationComplete(IMapProvider)
Called when a map provider is initialized.
Declaration
public override void OnProviderInitializationComplete(IMapProvider mapProvider)
Parameters
IMap The map provider. |
Overrides
OnToggleMiniMapButtonToggleStateChanged(Object, StateChangedEventArgs)
Declaration
protected virtual void OnToggleMiniMapButtonToggleStateChanged(object sender, StateChangedEventArgs args)
Parameters
System.
|
State
|
OnToggleMiniMapButtonToggleStateChanging(Object, StateChangingEventArgs)
Declaration
protected virtual void OnToggleMiniMapButtonToggleStateChanging(object sender, StateChangingEventArgs args)
Parameters
System.
|
State
|
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. The angle. |
System. 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.
|
System.
|
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. The angle. |
System. 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. The angle. |
System. The scale. |
Pan(Int64, Int64)
Declaration
public override void Pan(long x, long y)
Parameters
System.
|
System.
|
Overrides
SetMapElement(RadMapElement)
Sets the map element.
Declaration
protected virtual void SetMapElement(RadMapElement mapElement)
Parameters
Rad The map element. |
SetMiniMapMode(MiniMapMode)
Sets the mini map mode.
Declaration
protected virtual void SetMiniMapMode(MiniMapMode mode)
Parameters
Mini The mode. |
SetZoomOffset(Int32)
Declaration
protected virtual void SetZoomOffset(int value)
Parameters
System.
|
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.
|
System.
|
System.
|