mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-07 07:25:21 +00:00
Static MapBase.TileFadeDuration property
This commit is contained in:
parent
395ece8c62
commit
c915860eff
7 changed files with 26 additions and 24 deletions
|
|
@ -19,8 +19,6 @@ namespace MapControl
|
|||
{
|
||||
public partial class Tile
|
||||
{
|
||||
public static TimeSpan FadeDuration { get; set; } = TimeSpan.FromSeconds(0.15);
|
||||
|
||||
public readonly int ZoomLevel;
|
||||
public readonly int X;
|
||||
public readonly int Y;
|
||||
|
|
@ -46,7 +44,14 @@ namespace MapControl
|
|||
|
||||
private void FadeIn()
|
||||
{
|
||||
Image.BeginAnimation(UIElement.OpacityProperty, new DoubleAnimation { From = 0d, To = 1d, Duration = FadeDuration, FillBehavior = FillBehavior.Stop });
|
||||
Image.BeginAnimation(UIElement.OpacityProperty, new DoubleAnimation
|
||||
{
|
||||
From = 0d,
|
||||
To = 1d,
|
||||
Duration = MapBase.TileFadeDuration,
|
||||
FillBehavior = FillBehavior.Stop
|
||||
});
|
||||
|
||||
Image.Opacity = 1d;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue