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>();
|
Animation.RegisterCustomAnimator<Location, LocationAnimator>();
|
||||||
}
|
}
|
||||||
|
|
||||||
public MapBase()
|
|
||||||
{
|
|
||||||
FlowDirection = FlowDirection.LeftToRight;
|
|
||||||
}
|
|
||||||
|
|
||||||
public double ActualWidth => Bounds.Width;
|
public double ActualWidth => Bounds.Width;
|
||||||
public double ActualHeight => Bounds.Height;
|
public double ActualHeight => Bounds.Height;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -57,6 +57,7 @@ namespace MapControl
|
||||||
{
|
{
|
||||||
if (this is MapBase)
|
if (this is MapBase)
|
||||||
{
|
{
|
||||||
|
FlowDirection = FlowDirection.LeftToRight;
|
||||||
SetValue(ParentMapProperty, this);
|
SetValue(ParentMapProperty, this);
|
||||||
}
|
}
|
||||||
#if UWP || WINUI
|
#if UWP || WINUI
|
||||||
|
|
|
||||||
|
|
@ -76,11 +76,6 @@ namespace MapControl
|
||||||
DefaultStyleKeyProperty.OverrideMetadata(typeof(MapBase), new FrameworkPropertyMetadata(typeof(MapBase)));
|
DefaultStyleKeyProperty.OverrideMetadata(typeof(MapBase), new FrameworkPropertyMetadata(typeof(MapBase)));
|
||||||
}
|
}
|
||||||
|
|
||||||
public MapBase()
|
|
||||||
{
|
|
||||||
FlowDirection = FlowDirection.LeftToRight;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the EasingFunction of the Center, ZoomLevel and Heading animations.
|
/// Gets or sets the EasingFunction of the Center, ZoomLevel and Heading animations.
|
||||||
/// The default value is a QuadraticEase with EasingMode.EaseOut.
|
/// The default value is a QuadraticEase with EasingMode.EaseOut.
|
||||||
|
|
|
||||||
|
|
@ -78,8 +78,6 @@ namespace MapControl
|
||||||
style.Seal();
|
style.Seal();
|
||||||
Style = style;
|
Style = style;
|
||||||
|
|
||||||
FlowDirection = FlowDirection.LeftToRight;
|
|
||||||
|
|
||||||
SizeChanged += OnSizeChanged;
|
SizeChanged += OnSizeChanged;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue