mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-06 15:05:50 +00:00
Version 4.9.0: Reworked MapPanel child arrangement.
This commit is contained in:
parent
56d376c4d0
commit
5a05e9284a
5 changed files with 102 additions and 141 deletions
|
|
@ -34,32 +34,15 @@ namespace MapControl
|
|||
public MapScale()
|
||||
{
|
||||
IsHitTestVisible = false;
|
||||
#if WINDOWS_UWP
|
||||
MinWidth = 100d;
|
||||
#else
|
||||
SetCurrentValue(MinWidthProperty, 100d);
|
||||
#endif
|
||||
|
||||
label.HorizontalAlignment = HorizontalAlignment.Left;
|
||||
label.VerticalAlignment = VerticalAlignment.Top;
|
||||
label.TextAlignment = TextAlignment.Center;
|
||||
label.SetBinding(TextBlock.ForegroundProperty, ForegroundBinding);
|
||||
|
||||
label.SetBinding(TextBlock.ForegroundProperty, new Binding
|
||||
{
|
||||
Source = this,
|
||||
Path = new PropertyPath("Foreground")
|
||||
});
|
||||
|
||||
line.SetBinding(Shape.StrokeProperty, new Binding
|
||||
{
|
||||
Source = this,
|
||||
Path = new PropertyPath("Stroke")
|
||||
});
|
||||
|
||||
line.SetBinding(Shape.StrokeThicknessProperty, new Binding
|
||||
{
|
||||
Source = this,
|
||||
Path = new PropertyPath("StrokeThickness")
|
||||
});
|
||||
line.SetBinding(Shape.StrokeProperty, StrokeBinding);
|
||||
line.SetBinding(Shape.StrokeThicknessProperty, StrokeThicknessBinding);
|
||||
|
||||
Children.Add(line);
|
||||
Children.Add(label);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue