Click or drag to resize

MagnifierMap Class

Gadget showing a magnifier on the map. The magnifier offers you to get a deeper look into the map without zooming in.
MagnifierMap
Inheritance Hierarchy

Namespace:  Ptv.XServer.Controls.Map.Gadgets
Assembly:  Ptv.XServer.Controls.Map (in Ptv.XServer.Controls.Map.dll) Version: 1.7.10.0
Syntax
public class MagnifierMap : MapGadget, 
	IComponentConnector

The MagnifierMap type exposes the following members.

Constructors
  NameDescription
Public methodMagnifierMap
Initializes a new instance of the MagnifierMap class. Initializes the base size with the default of 500 pixels.
Top
Properties
  NameDescription
Public propertyBaseSize
Gets or sets the base value used to calculate the sizes of the magnifier. The value of this property is the overall diameter of the magnifier. This property can be altered manually so that a size change of the magnifier at runtime is possible.
Public propertyKeyboardFocusBehavior
Gets or sets a value which controls if Keyboard.PreviewKeyDownEvents forward the focus to the map or not. If set to HandoverToMap every key press on the gadget or one of its children sets the focus to the map. As a result the gadget and all of its children is not able to gain the focus any more.
(Inherited from MapGadget.)
Public propertyMap
Gets or sets the map core object holding the gadgets collection for example.
(Inherited from MapGadget.)
Public propertyMapView
Gets or sets the map content object which can be used to edit the layers and all map properties.
(Inherited from MapGadget.)
Public propertyMouseFocusBehavior
Gets or sets a property which controls if Mouse.PreviewMouseUpEvents forward the focus to the map or not. If set to HandoverToMap, every mouse click on the gadget or one of its children sets the focus to the map. The focus can still be retained if it is set e.g. by using the 'tab' key if 'KeyboardFocusBehavior' is set to 'Retain'.
(Inherited from MapGadget.)
Public propertyVisible
Gets or sets a value indicating whether the gadget is to be displayed or hidden. By default, the gadget is visible.
(Overrides MapGadgetVisible.)
Top
Methods
  NameDescription
Protected methodInitialize
Initializes the map gadget. The mouse events are connected and the gadget is added to the map gadgets list of the parent map.
(Overrides MapGadgetInitialize.)
Public methodInitializeComponent
InitializeComponent
Protected methodUnInitialize
Uninitializes the map gadget. The mouse events are disconnected and the gadget is removed from the parent map gadget list.
(Overrides MapGadgetUnInitialize.)
Public methodUpdateContent
Updates the inner content of the map gadget according to the currently set colors.
(Inherited from MapGadget.)
Top
Fields
  NameDescription
Public fieldStatic memberBackgroundPathSizeProperty
The size of the background paths. This property is calculated on the basis of the BaseSize property. Do not alter it manually.
Public fieldStatic memberBaseSizeProperty
The base size of the magnifier.
Public fieldStatic memberContentSizeProperty
The content height and width of the magnifier. This property is calculated on the basis of the BaseSize property. Do not alter it manually.
Public fieldStatic memberMagnifierCenterProperty
The center point of the magnifier. This property is calculated on the basis of the BaseSize property. Do not alter it manually.
Public fieldStatic memberMagnifierMarginProperty
The margin of the magnifier. This property is calculated on the basis of the BaseSize property. Do not alter it manually.
Public fieldStatic memberMagnifierRadiusProperty
The radius of the magnifier. This property is calculated on the basis of the BaseSize property. Do not alter it manually.
Top
Extension Methods
  NameDescription
Public Extension MethodFindRelativeT
Finds an object of type T for a framework element which is somewhere in the visual tree.
(Defined by MapElementExtensions.)
Public Extension MethodToJson
Converts an object to a JSON string representation.
(Defined by JSONWriter.)
Top
See Also