Set FlowDirection in MapPanel constructor

This commit is contained in:
ClemensFischer 2025-11-12 22:18:12 +01:00
parent 3d115c6dc7
commit cb4dff8bcb
4 changed files with 1 additions and 12 deletions

View file

@ -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;

View file

@ -57,6 +57,7 @@ namespace MapControl
{
if (this is MapBase)
{
FlowDirection = FlowDirection.LeftToRight;
SetValue(ParentMapProperty, this);
}
#if UWP || WINUI

View file

@ -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.

View file

@ -78,8 +78,6 @@ namespace MapControl
style.Seal();
Style = style;
FlowDirection = FlowDirection.LeftToRight;
SizeChanged += OnSizeChanged;
}