mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-20 22:05:07 +00:00
Version 4.9.0: Reworked MapPanel child arrangement.
This commit is contained in:
parent
4608909ca9
commit
9ba43d3a18
1 changed files with 10 additions and 7 deletions
|
|
@ -12,25 +12,25 @@ namespace MapControl
|
||||||
public partial class MapOverlay
|
public partial class MapOverlay
|
||||||
{
|
{
|
||||||
public static readonly DependencyProperty FontFamilyProperty = TextElement.FontFamilyProperty.AddOwner(
|
public static readonly DependencyProperty FontFamilyProperty = TextElement.FontFamilyProperty.AddOwner(
|
||||||
typeof(MapOverlay), new FrameworkPropertyMetadata { Inherits = true, AffectsRender = true });
|
typeof(MapOverlay), new FrameworkPropertyMetadata { AffectsRender = true, Inherits = true });
|
||||||
|
|
||||||
public static readonly DependencyProperty FontSizeProperty = TextElement.FontSizeProperty.AddOwner(
|
public static readonly DependencyProperty FontSizeProperty = TextElement.FontSizeProperty.AddOwner(
|
||||||
typeof(MapOverlay), new FrameworkPropertyMetadata { Inherits = true, AffectsRender = true });
|
typeof(MapOverlay), new FrameworkPropertyMetadata { AffectsRender = true, Inherits = true });
|
||||||
|
|
||||||
public static readonly DependencyProperty FontStyleProperty = TextElement.FontStyleProperty.AddOwner(
|
public static readonly DependencyProperty FontStyleProperty = TextElement.FontStyleProperty.AddOwner(
|
||||||
typeof(MapOverlay), new FrameworkPropertyMetadata { Inherits = true, AffectsRender = true });
|
typeof(MapOverlay), new FrameworkPropertyMetadata { AffectsRender = true, Inherits = true });
|
||||||
|
|
||||||
public static readonly DependencyProperty FontStretchProperty = TextElement.FontStretchProperty.AddOwner(
|
public static readonly DependencyProperty FontStretchProperty = TextElement.FontStretchProperty.AddOwner(
|
||||||
typeof(MapOverlay), new FrameworkPropertyMetadata { Inherits = true, AffectsRender = true });
|
typeof(MapOverlay), new FrameworkPropertyMetadata { AffectsRender = true, Inherits = true });
|
||||||
|
|
||||||
public static readonly DependencyProperty FontWeightProperty = TextElement.FontWeightProperty.AddOwner(
|
public static readonly DependencyProperty FontWeightProperty = TextElement.FontWeightProperty.AddOwner(
|
||||||
typeof(MapOverlay), new FrameworkPropertyMetadata { Inherits = true, AffectsRender = true });
|
typeof(MapOverlay), new FrameworkPropertyMetadata { AffectsRender = true, Inherits = true });
|
||||||
|
|
||||||
public static readonly DependencyProperty ForegroundProperty = TextElement.ForegroundProperty.AddOwner(
|
public static readonly DependencyProperty ForegroundProperty = TextElement.ForegroundProperty.AddOwner(
|
||||||
typeof(MapOverlay), new FrameworkPropertyMetadata { Inherits = true, AffectsRender = true, DefaultValue = null });
|
typeof(MapOverlay), new FrameworkPropertyMetadata { AffectsRender = true, Inherits = true });
|
||||||
|
|
||||||
public static readonly DependencyProperty StrokeProperty = Shape.StrokeProperty.AddOwner(
|
public static readonly DependencyProperty StrokeProperty = Shape.StrokeProperty.AddOwner(
|
||||||
typeof(MapOverlay), new FrameworkPropertyMetadata { AffectsRender = true, DefaultValue = null });
|
typeof(MapOverlay), new FrameworkPropertyMetadata { AffectsRender = true });
|
||||||
|
|
||||||
public static readonly DependencyProperty StrokeThicknessProperty = Shape.StrokeThicknessProperty.AddOwner(
|
public static readonly DependencyProperty StrokeThicknessProperty = Shape.StrokeThicknessProperty.AddOwner(
|
||||||
typeof(MapOverlay), new FrameworkPropertyMetadata { AffectsRender = true });
|
typeof(MapOverlay), new FrameworkPropertyMetadata { AffectsRender = true });
|
||||||
|
|
@ -58,6 +58,9 @@ namespace MapControl
|
||||||
|
|
||||||
public MapOverlay()
|
public MapOverlay()
|
||||||
{
|
{
|
||||||
|
// Set Stroke Binding in a Loaded handler to allow Stroke value from a Style Setter.
|
||||||
|
// SetParentMap is called too early.
|
||||||
|
|
||||||
Loaded += (s, e) =>
|
Loaded += (s, e) =>
|
||||||
{
|
{
|
||||||
if (Stroke == null)
|
if (Stroke == null)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue