Fixed MapOverlay.IsHitTestVisible

This commit is contained in:
ClemensF 2020-09-04 16:56:57 +02:00
parent 547bb7fc54
commit 7842a776a6
4 changed files with 12 additions and 35 deletions

View file

@ -56,6 +56,11 @@ namespace MapControl
public static readonly DependencyProperty StrokeMiterLimitProperty = Shape.StrokeMiterLimitProperty.AddOwner(
typeof(MapOverlay), new FrameworkPropertyMetadata { AffectsRender = true });
static MapOverlay()
{
IsHitTestVisibleProperty.OverrideMetadata(typeof(MapOverlay), new FrameworkPropertyMetadata(false));
}
public MapOverlay()
{
// Set Stroke Binding in a Loaded handler to allow Stroke value from a Style Setter.