Search Results for

    Show / Hide Table of Contents

    Class MapControl

    Inheritance
    object
    UIElement
    FrameworkElement
    Panel
    Grid
    MapControl
    Implements
    IAnimationObject
    IVisualElement
    IVisualElement2
    IDependencyObjectStoreProvider
    IWeakReferenceProvider
    IEnumerable
    IDataContextProvider
    DependencyObject
    ILayoutConstraints
    IMapControl
    IDisposable
    INotifyPropertyChanged
    Inherited Members
    Grid.MeasureOverride(Size)
    Grid.ArrangeOverride(Size)
    Grid.GetRow(UIElement)
    Grid.SetRow(UIElement, int)
    Grid.GetColumn(UIElement)
    Grid.SetColumn(UIElement, int)
    Grid.GetRowSpan(UIElement)
    Grid.SetRowSpan(UIElement, int)
    Grid.GetColumnSpan(UIElement)
    Grid.SetColumnSpan(UIElement, int)
    Grid.RowDefinitions
    Grid.ColumnDefinitions
    Grid.BackgroundSizingProperty
    Grid.BackgroundSizing
    Grid.BorderBrush
    Grid.BorderBrushProperty
    Grid.BorderThickness
    Grid.BorderThicknessProperty
    Grid.Padding
    Grid.PaddingProperty
    Grid.CornerRadius
    Grid.CornerRadiusProperty
    Grid.RowProperty
    Grid.ColumnProperty
    Grid.RowSpanProperty
    Grid.ColumnSpanProperty
    Grid.RowSpacing
    Grid.RowSpacingProperty
    Grid.ColumnSpacing
    Grid.ColumnSpacingProperty
    Panel.OnChildrenChanged()
    Panel.OnBackgroundChanged(DependencyPropertyChangedEventArgs)
    Panel.Add(UIElement)
    Panel.OnCornerRadiusChanged(CornerRadius, CornerRadius)
    Panel.OnPaddingChanged(Thickness, Thickness)
    Panel.OnBorderThicknessChanged(Thickness, Thickness)
    Panel.OnBorderBrushChanged(Brush, Brush)
    Panel.BackgroundTransition
    Panel.Children
    Panel.ChildrenTransitions
    Panel.ChildrenTransitionsProperty
    Panel.IsItemsHostProperty
    Panel.IsItemsHost
    FrameworkElement.DeferTree(DependencyObject)
    FrameworkElement.ToString()
    FrameworkElement.MeasureElement(UIElement, Size)
    FrameworkElement.ArrangeElement(UIElement, Rect)
    FrameworkElement.GetElementDesiredSize(UIElement)
    FrameworkElement.OnApplyTemplate()
    FrameworkElement.IsWidthConstrainedInner(UIElement)
    FrameworkElement.IsHeightConstrainedInner(UIElement)
    FrameworkElement.GoToElementStateCore(string, bool)
    FrameworkElement.OnCreateAutomationPeer()
    FrameworkElement.GetAccessibilityInnerText()
    FrameworkElement.GetAutomationPeer()
    FrameworkElement.InvalidateViewport()
    FrameworkElement.FindFirstParent<T>()
    FrameworkElement.FindFirstParent<T>(bool)
    FrameworkElement.AdjustArrange(Size)
    FrameworkElement.FindName(string)
    FrameworkElement.ApplyBindingPhase(int)
    FrameworkElement.GetStringFromObject(object)
    FrameworkElement.GetEnumerator()
    FrameworkElement.Width
    FrameworkElement.VerticalAlignment
    FrameworkElement.MinWidth
    FrameworkElement.MinHeight
    FrameworkElement.MaxWidth
    FrameworkElement.MaxHeight
    FrameworkElement.Margin
    FrameworkElement.Language
    FrameworkElement.HorizontalAlignment
    FrameworkElement.Height
    FrameworkElement.Triggers
    FrameworkElement.ActualHeightProperty
    FrameworkElement.ActualThemeProperty
    FrameworkElement.ActualWidthProperty
    FrameworkElement.HeightProperty
    FrameworkElement.HorizontalAlignmentProperty
    FrameworkElement.LanguageProperty
    FrameworkElement.MarginProperty
    FrameworkElement.MaxHeightProperty
    FrameworkElement.MaxWidthProperty
    FrameworkElement.MinHeightProperty
    FrameworkElement.MinWidthProperty
    FrameworkElement.NameProperty
    FrameworkElement.VerticalAlignmentProperty
    FrameworkElement.WidthProperty
    FrameworkElement.IsLoaded
    FrameworkElement.UseConstraintOptimizations
    FrameworkElement.AreDimensionsConstrained
    FrameworkElement.IsSimpleLayout
    FrameworkElement.Tag
    FrameworkElement.TagProperty
    FrameworkElement.FlowDirection
    FrameworkElement.FlowDirectionProperty
    FrameworkElement.Resources
    FrameworkElement.Parent
    FrameworkElement.BaseUri
    FrameworkElement.Style
    FrameworkElement.StyleProperty
    FrameworkElement.RequestedTheme
    FrameworkElement.RequestedThemeProperty
    FrameworkElement.ActualTheme
    FrameworkElement.FocusVisualSecondaryThicknessProperty
    FrameworkElement.FocusVisualSecondaryThickness
    FrameworkElement.FocusVisualSecondaryBrushProperty
    FrameworkElement.FocusVisualSecondaryBrush
    FrameworkElement.FocusVisualPrimaryThicknessProperty
    FrameworkElement.FocusVisualPrimaryThickness
    FrameworkElement.FocusVisualPrimaryBrush
    FrameworkElement.FocusVisualPrimaryBrushProperty
    FrameworkElement.FocusVisualMargin
    FrameworkElement.FocusVisualMarginProperty
    FrameworkElement.AllowFocusWhenDisabled
    FrameworkElement.AllowFocusWhenDisabledProperty
    FrameworkElement.AllowFocusOnInteraction
    FrameworkElement.AllowFocusOnInteractionProperty
    FrameworkElement.TransitionsProperty
    FrameworkElement.Transitions
    FrameworkElement.Background
    FrameworkElement.BackgroundProperty
    FrameworkElement.RenderPhase
    FrameworkElement.Name
    FrameworkElement.ActualWidth
    FrameworkElement.ActualHeight
    FrameworkElement.SizeChanged
    FrameworkElement.ActualThemeChanged
    FrameworkElement.LayoutUpdated
    FrameworkElement.EffectiveViewportChanged
    FrameworkElement.Loading
    FrameworkElement.Loaded
    FrameworkElement.Unloaded
    UIElement.Measure(Size)
    UIElement.Arrange(Rect)
    UIElement.InvalidateMeasure()
    UIElement.InvalidateArrange()
    UIElement.CancelDirectManipulations()
    UIElement.TryInvokeKeyboardAccelerator(ProcessKeyboardAcceleratorEventArgs)
    UIElement.StartAnimation(ICompositionAnimationBase)
    UIElement.StopAnimation(ICompositionAnimationBase)
    UIElement.OnDisconnectVisualChildren()
    UIElement.FindSubElementsForTouchTargeting(Point, Rect)
    UIElement.OnKeyboardAcceleratorInvoked(KeyboardAcceleratorInvokedEventArgs)
    UIElement.OnProcessKeyboardAccelerators(ProcessKeyboardAcceleratorEventArgs)
    UIElement.PopulatePropertyInfoOverride(string, AnimationPropertyInfo)
    UIElement.PopulatePropertyInfo(string, AnimationPropertyInfo)
    UIElement.GetVisualInternal()
    UIElement.TryStartDirectManipulation(Pointer)
    UIElement.OnBringIntoViewRequested(BringIntoViewRequestedEventArgs)
    UIElement.StartBringIntoView()
    UIElement.StartBringIntoView(BringIntoViewOptions)
    UIElement.RegisterAsScrollPort(UIElement)
    UIElement.Focus(FocusState)
    UIElement.TransformToVisual(UIElement)
    UIElement.OnVisibilityChanged(Visibility, Visibility)
    UIElement.OnIsHitTestVisibleChanged(bool, bool)
    UIElement.UpdateLayout()
    UIElement.GetChildrenInTabFocusOrder()
    UIElement.StartDragAsync(PointerPoint)
    UIElement.CapturePointer(Pointer)
    UIElement.ReleasePointerCapture(Pointer)
    UIElement.ReleasePointerCaptures()
    UIElement.AddHandler(RoutedEvent, object, bool)
    UIElement.RemoveHandler(RoutedEvent, object)
    UIElement.GetValue(DependencyProperty)
    UIElement.SetValue(DependencyProperty, object)
    UIElement.ClearValue(DependencyProperty)
    UIElement.ReadLocalValue(DependencyProperty)
    UIElement.GetAnimationBaseValue(DependencyProperty)
    UIElement.RegisterPropertyChangedCallback(DependencyProperty, DependencyPropertyChangedCallback)
    UIElement.UnregisterPropertyChangedCallback(DependencyProperty, long)
    UIElement.OnDataContextChanged(DependencyPropertyChangedEventArgs)
    UIElement.OnTemplatedParentChanged(DependencyPropertyChangedEventArgs)
    UIElement.SetBinding(object, string, BindingBase)
    UIElement.SetBinding(string, BindingBase)
    UIElement.SetBinding(DependencyProperty, BindingBase)
    UIElement.SetBindingValue(object, string)
    UIElement.GetBindingExpression(DependencyProperty)
    UIElement.ResumeBindings()
    UIElement.SuspendBindings()
    UIElement.KeyboardAcceleratorPlacementMode
    UIElement.RotationTransition
    UIElement.KeyTipTarget
    UIElement.KeyTipPlacementMode
    UIElement.KeyTipHorizontalOffset
    UIElement.IsTapEnabled
    UIElement.IsRightTapEnabled
    UIElement.IsHoldingEnabled
    UIElement.IsDoubleTapEnabled
    UIElement.AccessKey
    UIElement.HighContrastAdjustment
    UIElement.ExitDisplayModeOnAccessKeyInvoked
    UIElement.OpacityTransition
    UIElement.CompositeMode
    UIElement.CanBeScrollAnchor
    UIElement.CacheMode
    UIElement.KeyboardAcceleratorPlacementTarget
    UIElement.AccessKeyScopeOwner
    UIElement.IsAccessKeyScope
    UIElement.KeyTipVerticalOffset
    UIElement.CenterPoint
    UIElement.UseLayoutRounding
    UIElement.TranslationTransition
    UIElement.TransformMatrix
    UIElement.Rotation
    UIElement.RasterizationScale
    UIElement.Projection
    UIElement.ScaleTransition
    UIElement.Scale
    UIElement.RotationAxis
    UIElement.Transform3D
    UIElement.DesiredSize
    UIElement.Lights
    UIElement.AccessKeyProperty
    UIElement.AccessKeyScopeOwnerProperty
    UIElement.CacheModeProperty
    UIElement.CanBeScrollAnchorProperty
    UIElement.CharacterReceivedEvent
    UIElement.CompositeModeProperty
    UIElement.ContextRequestedEvent
    UIElement.ExitDisplayModeOnAccessKeyInvokedProperty
    UIElement.HighContrastAdjustmentProperty
    UIElement.IsAccessKeyScopeProperty
    UIElement.IsDoubleTapEnabledProperty
    UIElement.IsHoldingEnabledProperty
    UIElement.IsRightTapEnabledProperty
    UIElement.IsTapEnabledProperty
    UIElement.KeyTipHorizontalOffsetProperty
    UIElement.KeyTipPlacementModeProperty
    UIElement.KeyTipTargetProperty
    UIElement.KeyTipVerticalOffsetProperty
    UIElement.KeyboardAcceleratorPlacementModeProperty
    UIElement.KeyboardAcceleratorPlacementTargetProperty
    UIElement.LightsProperty
    UIElement.PreviewKeyDownEvent
    UIElement.PreviewKeyUpEvent
    UIElement.ProjectionProperty
    UIElement.Transform3DProperty
    UIElement.UseLayoutRoundingProperty
    UIElement.ActualSize
    UIElement.ActualOffset
    UIElement.Translation
    UIElement.Shadow
    UIElement.ShadowProperty
    UIElement.Clip
    UIElement.ClipProperty
    UIElement.RenderTransform
    UIElement.RenderTransformProperty
    UIElement.RenderTransformOrigin
    UIElement.RenderTransformOriginProperty
    UIElement.RenderSize
    UIElement.XYFocusKeyboardNavigation
    UIElement.XYFocusKeyboardNavigationProperty
    UIElement.XYFocusDownNavigationStrategy
    UIElement.XYFocusDownNavigationStrategyProperty
    UIElement.XYFocusLeftNavigationStrategy
    UIElement.XYFocusLeftNavigationStrategyProperty
    UIElement.XYFocusRightNavigationStrategy
    UIElement.XYFocusRightNavigationStrategyProperty
    UIElement.XYFocusUpNavigationStrategy
    UIElement.XYFocusUpNavigationStrategyProperty
    UIElement.TabFocusNavigation
    UIElement.TabFocusNavigationProperty
    UIElement.ProtectedCursor
    UIElement.FocusState
    UIElement.FocusStateProperty
    UIElement.IsTabStop
    UIElement.IsTabStopProperty
    UIElement.TabIndex
    UIElement.TabIndexProperty
    UIElement.XYFocusUp
    UIElement.XYFocusUpProperty
    UIElement.XYFocusDown
    UIElement.XYFocusDownProperty
    UIElement.XYFocusLeft
    UIElement.XYFocusLeftProperty
    UIElement.XYFocusRight
    UIElement.XYFocusRightProperty
    UIElement.UseSystemFocusVisuals
    UIElement.UseSystemFocusVisualsProperty
    UIElement.ManipulationModeProperty
    UIElement.ManipulationMode
    UIElement.CanDragProperty
    UIElement.CanDrag
    UIElement.AllowDropProperty
    UIElement.AllowDrop
    UIElement.PointerCapturesProperty
    UIElement.PointerCaptures
    UIElement.IsHitTestVisibleProperty
    UIElement.IsHitTestVisible
    UIElement.OpacityProperty
    UIElement.Opacity
    UIElement.VisibilityProperty
    UIElement.Visibility
    UIElement.ContextFlyoutProperty
    UIElement.ContextFlyout
    UIElement.KeyboardAccelerators
    UIElement.Handle
    UIElement.PointerPressedEvent
    UIElement.PointerReleasedEvent
    UIElement.PointerEnteredEvent
    UIElement.PointerExitedEvent
    UIElement.PointerMovedEvent
    UIElement.PointerCanceledEvent
    UIElement.PointerCaptureLostEvent
    UIElement.PointerWheelChangedEvent
    UIElement.ManipulationStartingEvent
    UIElement.ManipulationStartedEvent
    UIElement.ManipulationDeltaEvent
    UIElement.ManipulationInertiaStartingEvent
    UIElement.ManipulationCompletedEvent
    UIElement.TappedEvent
    UIElement.DoubleTappedEvent
    UIElement.RightTappedEvent
    UIElement.HoldingEvent
    UIElement.DragEnterEvent
    UIElement.DragOverEvent
    UIElement.DragLeaveEvent
    UIElement.DropEvent
    UIElement.KeyDownEvent
    UIElement.KeyUpEvent
    UIElement.GettingFocusEvent
    UIElement.LosingFocusEvent
    UIElement.NoFocusCandidateFoundEvent
    UIElement.BringIntoViewRequestedEvent
    UIElement.EventsBubblingInManagedCodeProperty
    UIElement.EventsBubblingInManagedCode
    UIElement.XamlRoot
    UIElement.Dispatcher
    UIElement.DispatcherQueue
    UIElement.IsStoreInitialized
    UIElement.DataContext
    UIElement.DataContextProperty
    UIElement.TemplatedParent
    UIElement.TemplatedParentProperty
    UIElement.AccessKeyDisplayDismissed
    UIElement.AccessKeyDisplayRequested
    UIElement.CharacterReceived
    UIElement.ContextCanceled
    UIElement.ContextRequested
    UIElement.PreviewKeyDown
    UIElement.PreviewKeyUp
    UIElement.ProcessKeyboardAccelerators
    UIElement.AccessKeyInvoked
    UIElement.LostFocus
    UIElement.GotFocus
    UIElement.LosingFocus
    UIElement.GettingFocus
    UIElement.NoFocusCandidateFound
    UIElement.BringIntoViewRequested
    UIElement.PointerCanceled
    UIElement.PointerCaptureLost
    UIElement.PointerEntered
    UIElement.PointerExited
    UIElement.PointerMoved
    UIElement.PointerPressed
    UIElement.PointerReleased
    UIElement.PointerWheelChanged
    UIElement.ManipulationStarting
    UIElement.ManipulationStarted
    UIElement.ManipulationDelta
    UIElement.ManipulationInertiaStarting
    UIElement.ManipulationCompleted
    UIElement.Tapped
    UIElement.DoubleTapped
    UIElement.RightTapped
    UIElement.Holding
    UIElement.DragStarting
    UIElement.DragEnter
    UIElement.DragLeave
    UIElement.DragOver
    UIElement.Drop
    UIElement.DropCompleted
    UIElement.KeyDown
    UIElement.KeyUp
    UIElement.DataContextChanged
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: Mapsui.UI.WinUI
    Assembly: Mapsui.UI.Uno.WinUI.dll
    Syntax
    public class MapControl : Grid, IAnimationObject, IVisualElement, IVisualElement2, IDependencyObjectStoreProvider, IWeakReferenceProvider, IEnumerable, IDataContextProvider, DependencyObject, ILayoutConstraints, IMapControl, IDisposable, INotifyPropertyChanged

    Constructors

    | Edit this page View Source

    MapControl()

    Declaration
    public MapControl()

    Properties

    | Edit this page View Source

    Map

    Map holding data for which is shown in this MapControl

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

    Performance

    Object to save performance information about the drawing of the map

    Declaration
    public Performance? Performance { get; set; }
    Property Value
    Type Description
    Performance
    Remarks

    If this is null, no performance information is saved.

    | Edit this page View Source

    PixelDensity

    The number of pixel per device independent unit

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

    ReSnapRotationDegrees

    With how many degrees from 0 should map snap to 0 degrees

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

    Renderer

    Renderer that is used from this MapControl

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

    ShiftPressed

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

    UnSnapRotationDegrees

    After how many degrees start rotation to take place

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

    UpdateInterval

    Interval between two redraws of the MapControl in ms

    Declaration
    public int UpdateInterval { get; set; }
    Property Value
    Type Description
    int

    Methods

    | Edit this page View Source

    CallHomeIfNeeded()

    Declaration
    public void CallHomeIfNeeded()
    | Edit this page View Source

    Dispose()

    Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

    Declaration
    public void Dispose()
    | Edit this page View Source

    Dispose(bool)

    Declaration
    protected virtual void Dispose(bool disposing)
    Parameters
    Type Name Description
    bool disposing
    | Edit this page View Source

    ForceUpdate()

    Force a update of control

    Declaration
    public void ForceUpdate()
    Remarks

    When this function is called, the control draws itself once

    | Edit this page View Source

    GetMapInfo(MPoint?, int)

    Check, if a feature at a given screen position is hit

    Declaration
    public MapInfo? GetMapInfo(MPoint? screenPosition, int margin = 0)
    Parameters
    Type Name Description
    MPoint screenPosition

    Screen position to check for widgets and features

    int margin

    An optional extra margin around the feature to enlarge the hit area.

    Returns
    Type Description
    MapInfo
    | Edit this page View Source

    GetSnapshot(IEnumerable<ILayer>?)

    Create a snapshot form map as PNG image

    Declaration
    public byte[] GetSnapshot(IEnumerable<ILayer>? layers = null)
    Parameters
    Type Name Description
    IEnumerable<ILayer> layers

    Layers that should be included in snapshot

    Returns
    Type Description
    byte[]

    Byte array with snapshot in png format. If there are any problems than returns null.

    | Edit this page View Source

    OnPropertyChanged(string)

    Declaration
    protected void OnPropertyChanged(string propertyName = "")
    Parameters
    Type Name Description
    string propertyName
    | Edit this page View Source

    OpenBrowser(string)

    Declaration
    public void OpenBrowser(string url)
    Parameters
    Type Name Description
    string url
    | Edit this page View Source

    Refresh(ChangeType)

    Declaration
    public void Refresh(ChangeType changeType = ChangeType.Discrete)
    Parameters
    Type Name Description
    ChangeType changeType
    | Edit this page View Source

    RefreshData(ChangeType)

    Refresh data of Map, but don't paint it

    Declaration
    public void RefreshData(ChangeType changeType = ChangeType.Discrete)
    Parameters
    Type Name Description
    ChangeType changeType
    | Edit this page View Source

    RefreshGraphics()

    Declaration
    public void RefreshGraphics()
    | Edit this page View Source

    ResetWidgetCache()

    Reset the widget cache. It may be necessary to call this explicitly after the widgets have changed.

    Declaration
    protected void ResetWidgetCache()
    | Edit this page View Source

    StartUpdates(bool)

    Start updates for control

    Declaration
    public void StartUpdates(bool refresh = true)
    Parameters
    Type Name Description
    bool refresh
    Remarks

    When this function is called, the control is redrawn if needed

    | Edit this page View Source

    StopUpdates()

    Stop updates for control

    Declaration
    public void StopUpdates()
    Remarks

    When this function is called, the control stops to redraw itself, even if it is needed

    | Edit this page View Source

    ToDeviceIndependentUnits(MPoint)

    Converts coordinates in pixels to device independent units (or DIP or DP).

    Declaration
    public MPoint ToDeviceIndependentUnits(MPoint coordinateInPixels)
    Parameters
    Type Name Description
    MPoint coordinateInPixels

    Coordinate in pixels

    Returns
    Type Description
    MPoint

    Coordinate in device independent units (or DIP or DP)

    | Edit this page View Source

    ToPixels(MPoint)

    Converts coordinates in device independent units (or DIP or DP) to pixels.

    Declaration
    public MPoint ToPixels(MPoint coordinateInDeviceIndependentUnits)
    Parameters
    Type Name Description
    MPoint coordinateInDeviceIndependentUnits

    Coordinate in device independent units (or DIP or DP)

    Returns
    Type Description
    MPoint

    Coordinate in pixels

    | Edit this page View Source

    Unsubscribe()

    Unsubscribe from map events

    Declaration
    public void Unsubscribe()

    Events

    | Edit this page View Source

    Info

    Called whenever the map is clicked. The MapInfoEventArgs contain the features that were hit in the layers that have IsMapInfoLayer set to true.

    Declaration
    public event EventHandler<MapInfoEventArgs>? Info
    Event Type
    Type Description
    EventHandler<MapInfoEventArgs>
    | Edit this page View Source

    PropertyChanged

    Called whenever a property is changed

    Declaration
    public event PropertyChangedEventHandler? PropertyChanged
    Event Type
    Type Description
    PropertyChangedEventHandler

    Implements

    IAnimationObject
    IVisualElement
    IVisualElement2
    Microsoft.UI.Xaml.IDependencyObjectStoreProvider
    Uno.UI.DataBinding.IWeakReferenceProvider
    IEnumerable
    Microsoft.UI.Xaml.IDataContextProvider
    DependencyObject
    Microsoft.UI.Xaml.ILayoutConstraints
    IMapControl
    IDisposable
    INotifyPropertyChanged
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX