Click or drag to resize

MapGadget Class

Parent class of all map gadgets. A map gadget is an add-on to the map like a coordinates gadget, a scale gadget etc...
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 MapGadget : UserControl, IGadget

The MapGadget type exposes the following members.

Constructors
  NameDescription
Public methodMapGadget
Initializes a new instance of the MapGadget class.
Top
Properties
  NameDescription
Public propertyStatic memberIsInDesignMode
Gets a value indicating whether the gadget is used in design mode.
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.
Public propertyMap
Gets or sets the map core object holding the gadgets collection for example.
Public propertyMapView
Gets or sets the map content object which can be used to edit the layers and all map properties.
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'.
Public propertyVisible
Gets or sets a value indicating whether the gadget is to be displayed or hidden. By default, the gadget is visible.
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.
Protected methodUnInitialize
Uninitializes the map gadget. The mouse events are disconnected and the gadget is removed from the parent map gadget list.
Public methodUpdateContent
Updates the inner content of the map gadget according to the currently set colors.
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
Inheritance Hierarchy
SystemObject
  System.Windows.ThreadingDispatcherObject
    System.WindowsDependencyObject
      System.Windows.MediaVisual
        System.WindowsUIElement
          System.WindowsFrameworkElement
            System.Windows.ControlsControl
              System.Windows.ControlsContentControl
                System.Windows.ControlsUserControl
                  Ptv.XServer.Controls.Map.GadgetsMapGadget
                    Ptv.XServer.Controls.Map.GadgetsCoordinatesGadget
                    Ptv.XServer.Controls.Map.GadgetsCopyrightGadget
                    Ptv.XServer.Controls.Map.GadgetsDimmerGadget
                    Ptv.XServer.Controls.Map.GadgetsLayersGadget
                    Ptv.XServer.Controls.Map.GadgetsMagnifierMap
                    Ptv.XServer.Controls.Map.GadgetsNavigationGadget
                    Ptv.XServer.Controls.Map.GadgetsOverviewMap
                    Ptv.XServer.Controls.Map.GadgetsPanAndZoom
                    Ptv.XServer.Controls.Map.GadgetsScaleGadget
                    Ptv.XServer.Controls.Map.GadgetsZoomSliderGadget