AutoLoadMapViewBehavior¶
Namespace: ThinkGeo.UI.Maui
Automatically triggers a map refresh the first time a MapView receives a valid size.
public class AutoLoadMapViewBehavior : Microsoft.Maui.Controls.Behavior`1[[ThinkGeo.UI.Maui.MapView, ThinkGeo.UI.Maui, Version=14.5.0.0, Culture=neutral, PublicKeyToken=0828af5241fb4207]], System.ComponentModel.INotifyPropertyChanged, Microsoft.Maui.Controls.Internals.IDynamicResourceHandler, Microsoft.Maui.Controls.IAttachedObject
Inheritance object → BindableObject → Behavior → Behavior<MapView> → AutoLoadMapViewBehavior
Implements INotifyPropertyChanged, IDynamicResourceHandler, IAttachedObject
Properties¶
Dispatcher¶
public IDispatcher Dispatcher { get; }
Property Value¶
BindingContext¶
public object BindingContext { get; set; }
Property Value¶
Constructors¶
AutoLoadMapViewBehavior()¶
public AutoLoadMapViewBehavior()
Methods¶
OnAttachedTo(MapView)¶
Registers for map view size changes when the behavior is attached.
protected void OnAttachedTo(MapView bindable)
Parameters¶
bindable MapView
The map view instance to monitor.
Returns¶
OnDetachingFrom(MapView)¶
Unregisters the size change handler when the behavior is detached.
protected void OnDetachingFrom(MapView bindable)
Parameters¶
bindable MapView
The map view instance that is being detached.
Returns¶
Events¶
PropertyChanged¶
public event PropertyChangedEventHandler PropertyChanged;
PropertyChanging¶
public event PropertyChangingEventHandler PropertyChanging;
BindingContextChanged¶
public event EventHandler BindingContextChanged;