mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-05 14:37:01 +00:00
Updated BindingHelper
This commit is contained in:
parent
0714a04a92
commit
928d12876f
7 changed files with 61 additions and 30 deletions
|
|
@ -65,7 +65,9 @@ namespace MapControl
|
|||
protected override void OnInitialized(EventArgs e)
|
||||
{
|
||||
base.OnInitialized(e);
|
||||
this.ValidateProperty(StrokeProperty, this, nameof(Foreground));
|
||||
|
||||
// If this.Stroke is not explicitly set, bind it to this.Foreground
|
||||
this.SetBindingOnUnsetProperty(StrokeProperty, this, ForegroundProperty, nameof(Foreground));
|
||||
}
|
||||
|
||||
public Pen CreatePen()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue