Renamed ImageFadeDuration

This commit is contained in:
ClemensF 2020-04-22 16:16:17 +02:00
parent b8617f1bdd
commit c12f025552
5 changed files with 6 additions and 6 deletions

View file

@ -33,7 +33,7 @@ namespace MapControl
{
private const double MaximumZoomLevel = 22d;
public static TimeSpan TileFadeDuration { get; set; } = TimeSpan.FromSeconds(0.1);
public static TimeSpan ImageFadeDuration { get; set; } = TimeSpan.FromSeconds(0.1);
public static readonly DependencyProperty MapLayerProperty = DependencyProperty.Register(
nameof(MapLayer), typeof(UIElement), typeof(MapBase),

View file

@ -335,13 +335,13 @@ namespace MapControl
topImage.BeginAnimation(OpacityProperty, new DoubleAnimation
{
To = 1d,
Duration = MapBase.TileFadeDuration
Duration = MapBase.ImageFadeDuration
});
bottomImage.BeginAnimation(OpacityProperty, new DoubleAnimation
{
To = 0d,
BeginTime = MapBase.TileFadeDuration,
BeginTime = MapBase.ImageFadeDuration,
Duration = TimeSpan.Zero
});
}

View file

@ -48,7 +48,7 @@ namespace MapControl
{
From = 0d,
To = 1d,
Duration = MapBase.TileFadeDuration,
Duration = MapBase.ImageFadeDuration,
FillBehavior = FillBehavior.Stop
});

View file

@ -16,7 +16,7 @@ namespace MapControl
{
Pending = false;
if (fadeIn && MapBase.TileFadeDuration > TimeSpan.Zero)
if (fadeIn && MapBase.ImageFadeDuration > TimeSpan.Zero)
{
if (image is BitmapImage bitmap && bitmap.UriSource != null)
{

View file

@ -15,7 +15,7 @@ namespace MapControl
{
Pending = false;
if (fadeIn && MapBase.TileFadeDuration > TimeSpan.Zero)
if (fadeIn && MapBase.ImageFadeDuration > TimeSpan.Zero)
{
if (image is BitmapSource bitmap && !bitmap.IsFrozen && bitmap.IsDownloading)
{