Version 7.3. Added tile and map image progress reporting.

This commit is contained in:
Clemens 2022-08-05 21:30:57 +02:00
parent 3119c0fc9b
commit 17fdd63ce9
6 changed files with 67 additions and 34 deletions

View file

@ -61,8 +61,7 @@ namespace MapControl
nameof(MapForeground), typeof(Brush), typeof(MapTileLayerBase), new PropertyMetadata(null));
public static readonly DependencyProperty LoadingProgressProperty = DependencyProperty.Register(
nameof(LoadingProgress), typeof(double), typeof(MapTileLayerBase), new PropertyMetadata(1d,
(o, e) => { System.Diagnostics.Debug.WriteLine("LoadingProgress = {0:P0}", e.NewValue); }));
nameof(LoadingProgress), typeof(double), typeof(MapTileLayerBase), new PropertyMetadata(1d));
private readonly DispatcherTimer updateTimer;
private MapBase parentMap;

View file

@ -45,25 +45,25 @@ namespace MapControl
path.SetBinding(Shape.FillProperty, new Binding
{
Path = new PropertyPath("Background"),
Path = new PropertyPath(nameof(Background)),
Source = this
});
path.SetBinding(Shape.StrokeProperty, new Binding
{
Path = new PropertyPath("BorderBrush"),
Path = new PropertyPath(nameof(BorderBrush)),
Source = this
});
path.SetBinding(Shape.StrokeThicknessProperty, new Binding
{
Path = new PropertyPath("BorderThickness"),
Path = new PropertyPath(nameof(BorderWidth)),
Source = this
});
border.SetBinding(PaddingProperty, new Binding
{
Path = new PropertyPath("Padding"),
Path = new PropertyPath(nameof(Padding)),
Source = this
});