mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-05 14:37:01 +00:00
Static MapBase.TileFadeDuration property
This commit is contained in:
parent
395ece8c62
commit
c915860eff
7 changed files with 26 additions and 24 deletions
|
|
@ -33,6 +33,8 @@ namespace MapControl
|
|||
{
|
||||
private const double MaximumZoomLevel = 22d;
|
||||
|
||||
public static TimeSpan TileFadeDuration { get; set; } = TimeSpan.FromSeconds(0.1);
|
||||
|
||||
public static readonly DependencyProperty MapLayerProperty = DependencyProperty.Register(
|
||||
nameof(MapLayer), typeof(UIElement), typeof(MapBase),
|
||||
new PropertyMetadata(null, (o, e) => ((MapBase)o).MapLayerPropertyChanged((UIElement)e.OldValue, (UIElement)e.NewValue)));
|
||||
|
|
@ -61,10 +63,6 @@ namespace MapControl
|
|||
nameof(AnimationEasingFunction), typeof(EasingFunctionBase), typeof(MapBase),
|
||||
new PropertyMetadata(new QuadraticEase { EasingMode = EasingMode.EaseOut }));
|
||||
|
||||
public static readonly DependencyProperty TileFadeDurationProperty = DependencyProperty.Register(
|
||||
nameof(TileFadeDuration), typeof(TimeSpan), typeof(MapBase),
|
||||
new PropertyMetadata(Tile.FadeDuration, (o, e) => Tile.FadeDuration = (TimeSpan)e.NewValue));
|
||||
|
||||
private PointAnimation centerAnimation;
|
||||
private DoubleAnimation zoomLevelAnimation;
|
||||
private DoubleAnimation headingAnimation;
|
||||
|
|
@ -213,16 +211,6 @@ namespace MapControl
|
|||
set { SetValue(AnimationEasingFunctionProperty, value); }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the Duration of the Tile Opacity animation.
|
||||
/// The default value is 0.2 seconds.
|
||||
/// </summary>
|
||||
public TimeSpan TileFadeDuration
|
||||
{
|
||||
get { return (TimeSpan)GetValue(TileFadeDurationProperty); }
|
||||
set { SetValue(TileFadeDurationProperty, value); }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the scaling factor from cartesian map coordinates to view coordinates,
|
||||
/// i.e. pixels per meter, as a read-only dependency property.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue