mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2025-12-06 07:12:04 +01:00
Set FlowDirection in MapPanel constructor
This commit is contained in:
parent
3d115c6dc7
commit
cb4dff8bcb
|
|
@ -88,11 +88,6 @@ namespace MapControl
|
|||
Animation.RegisterCustomAnimator<Location, LocationAnimator>();
|
||||
}
|
||||
|
||||
public MapBase()
|
||||
{
|
||||
FlowDirection = FlowDirection.LeftToRight;
|
||||
}
|
||||
|
||||
public double ActualWidth => Bounds.Width;
|
||||
public double ActualHeight => Bounds.Height;
|
||||
|
||||
|
|
|
|||
|
|
@ -57,6 +57,7 @@ namespace MapControl
|
|||
{
|
||||
if (this is MapBase)
|
||||
{
|
||||
FlowDirection = FlowDirection.LeftToRight;
|
||||
SetValue(ParentMapProperty, this);
|
||||
}
|
||||
#if UWP || WINUI
|
||||
|
|
|
|||
|
|
@ -76,11 +76,6 @@ namespace MapControl
|
|||
DefaultStyleKeyProperty.OverrideMetadata(typeof(MapBase), new FrameworkPropertyMetadata(typeof(MapBase)));
|
||||
}
|
||||
|
||||
public MapBase()
|
||||
{
|
||||
FlowDirection = FlowDirection.LeftToRight;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the EasingFunction of the Center, ZoomLevel and Heading animations.
|
||||
/// The default value is a QuadraticEase with EasingMode.EaseOut.
|
||||
|
|
|
|||
|
|
@ -78,8 +78,6 @@ namespace MapControl
|
|||
style.Seal();
|
||||
Style = style;
|
||||
|
||||
FlowDirection = FlowDirection.LeftToRight;
|
||||
|
||||
SizeChanged += OnSizeChanged;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue