mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-05 14:37:01 +00:00
Code style
This commit is contained in:
parent
e3b221a80b
commit
bcd12ba5b8
3 changed files with 13 additions and 29 deletions
|
|
@ -38,30 +38,18 @@ namespace MapControl
|
|||
VerticalAlignment = VerticalAlignment.Stretch,
|
||||
Stretch = Stretch.None
|
||||
};
|
||||
|
||||
path.SetBinding(Shape.FillProperty, new Binding
|
||||
{
|
||||
Path = new PropertyPath(nameof(Background)),
|
||||
Source = this
|
||||
});
|
||||
|
||||
path.SetBinding(Shape.StrokeProperty, new Binding
|
||||
{
|
||||
Path = new PropertyPath(nameof(BorderBrush)),
|
||||
Source = this
|
||||
});
|
||||
path.SetBinding(Shape.FillProperty,
|
||||
new Binding { Source = this, Path = new PropertyPath(nameof(Background)) });
|
||||
|
||||
path.SetBinding(Shape.StrokeThicknessProperty, new Binding
|
||||
{
|
||||
Path = new PropertyPath(nameof(BorderWidth)),
|
||||
Source = this
|
||||
});
|
||||
path.SetBinding(Shape.StrokeProperty,
|
||||
new Binding { Source = this, Path = new PropertyPath(nameof(BorderBrush)) });
|
||||
|
||||
border.SetBinding(PaddingProperty, new Binding
|
||||
{
|
||||
Path = new PropertyPath(nameof(Padding)),
|
||||
Source = this
|
||||
});
|
||||
path.SetBinding(Shape.StrokeThicknessProperty,
|
||||
new Binding { Source = this, Path = new PropertyPath(nameof(BorderWidth)) });
|
||||
|
||||
border.SetBinding(PaddingProperty,
|
||||
new Binding { Source = this, Path = new PropertyPath(nameof(Padding)) });
|
||||
|
||||
SetBorderMargin();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue