mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2025-12-06 07:12:04 +01:00
Override MapPath.GetLayoutClip
This commit is contained in:
parent
f5d5e1d620
commit
1ac9ee6b82
|
|
@ -25,6 +25,11 @@ namespace MapControl
|
|||
|
||||
protected override Geometry DefiningGeometry => Data;
|
||||
|
||||
protected override Geometry GetLayoutClip(Size layoutSlotSize)
|
||||
{
|
||||
return ClipToBounds ? base.GetLayoutClip(layoutSlotSize) : null;
|
||||
}
|
||||
|
||||
private static void DataPropertyChanged(DependencyObject obj, DependencyPropertyChangedEventArgs e)
|
||||
{
|
||||
// Check if Data is actually a new Geometry.
|
||||
|
|
|
|||
Loading…
Reference in a new issue