mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-05 14:37:01 +00:00
Override MapPath.GetLayoutClip
This commit is contained in:
parent
f5d5e1d620
commit
1ac9ee6b82
1 changed files with 5 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue