Search Results for

    Show / Hide Table of Contents

    Class ZoomInOutWidget

    Widget which shows two buttons (horizontal or vertical) with a "+" and a "-" sign. With this, the user could zoom the map in and out.

    Usage To show a ZoomInOutWidget, add a instance of the ZoomInOutWidget to Map.Widgets by

    map.Widgets.Add(new ZoomInOutWidget(map));

    Customize Size: Height and Width of the buttons Orientation: Orientation of the buttons. Could be Horizontal or Vertical. Vertical is default. StrokeColor: Color of button frames TextColor: Color of "+" and "-" signs BackColor: Color of button background Opacity: Opacity of buttons ZoomFactor: Factor for changing Resolution. Default is 2;

    Inheritance
    object
    BaseWidget
    ZoomInOutWidget
    Implements
    IWidget
    Inherited Members
    BaseWidget.InputAreaType
    BaseWidget.HorizontalAlignment
    BaseWidget.VerticalAlignment
    BaseWidget.Margin
    BaseWidget.Position
    BaseWidget.Width
    BaseWidget.Height
    BaseWidget.Envelope
    BaseWidget.Enabled
    BaseWidget.InputTransparent
    BaseWidget.WithTappedEvent
    BaseWidget.WithPointerPressedEvent
    BaseWidget.WithPointerMovedEvent
    BaseWidget.WithPointerReleased
    BaseWidget.Tapped
    BaseWidget.PointerPressed
    BaseWidget.PointerMoved
    BaseWidget.PointerReleased
    BaseWidget.UpdateEnvelope(double, double, double, double)
    BaseWidget.OnPointerPressed(WidgetEventArgs)
    BaseWidget.OnPointerMoved(WidgetEventArgs)
    BaseWidget.OnPointerReleased(WidgetEventArgs)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Mapsui.Widgets.ButtonWidgets
    Assembly: Mapsui.dll
    Syntax
    public class ZoomInOutWidget : BaseWidget, IWidget

    Properties

    | Edit this page View Source

    BackColor

    Color of background

    Declaration
    public Color BackColor { get; set; }
    Property Value
    Type Description
    Color
    | Edit this page View Source

    Opacity

    Opacity of background, frame and signs

    Declaration
    public double Opacity { get; set; }
    Property Value
    Type Description
    double
    | Edit this page View Source

    Orientation

    Orientation of buttons

    Declaration
    public Orientation Orientation { get; set; }
    Property Value
    Type Description
    Orientation
    | Edit this page View Source

    Size

    Width and height of buttons

    Declaration
    public double Size { get; set; }
    Property Value
    Type Description
    double
    | Edit this page View Source

    StrokeColor

    Color of button frames

    Declaration
    public Color StrokeColor { get; set; }
    Property Value
    Type Description
    Color
    | Edit this page View Source

    TextColor

    Color of "+" and "-" sign

    Declaration
    public Color TextColor { get; set; }
    Property Value
    Type Description
    Color

    Methods

    | Edit this page View Source

    OnTapped(WidgetEventArgs)

    Function, which handles the widget tapped event

    Declaration
    public override void OnTapped(WidgetEventArgs e)
    Parameters
    Type Name Description
    WidgetEventArgs e

    Arguments for this widget touch

    Overrides
    BaseWidget.OnTapped(WidgetEventArgs)

    Implements

    IWidget

    Extension Methods

    DisposableExtension.DisposeIfDisposable(object?)
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX