mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-05-07 13:37:47 +00:00
Added PropertyHelper
This commit is contained in:
parent
67e9989327
commit
068a9ef8a6
11 changed files with 76 additions and 61 deletions
|
|
@ -4,7 +4,6 @@
|
|||
|
||||
using Windows.UI.Text;
|
||||
using Windows.UI.Xaml;
|
||||
using Windows.UI.Xaml.Data;
|
||||
using Windows.UI.Xaml.Media;
|
||||
|
||||
namespace MapControl
|
||||
|
|
@ -65,15 +64,8 @@ namespace MapControl
|
|||
{
|
||||
if (map != null)
|
||||
{
|
||||
if (Foreground == null)
|
||||
{
|
||||
SetBinding(ForegroundProperty, new Binding { Source = map, Path = new PropertyPath(nameof(MapBase.Foreground)) });
|
||||
}
|
||||
|
||||
if (Stroke == null)
|
||||
{
|
||||
SetBinding(StrokeProperty, GetBinding(nameof(Foreground)));
|
||||
}
|
||||
this.ValidateProperty(ForegroundProperty, map, nameof(MapBase.Foreground));
|
||||
this.ValidateProperty(StrokeProperty, this, nameof(Foreground));
|
||||
}
|
||||
|
||||
base.SetParentMap(map);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue