mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-05 14:37:01 +00:00
FrameworkElementExtensions
This commit is contained in:
parent
24dabf046d
commit
d513ea249e
7 changed files with 47 additions and 42 deletions
|
|
@ -259,7 +259,7 @@ namespace MapControl
|
|||
|
||||
if (GetAutoCollapse(element))
|
||||
{
|
||||
SetVisible(element, position.HasValue && parentMap.InsideViewBounds(position.Value));
|
||||
element.SetVisible(position.HasValue && parentMap.InsideViewBounds(position.Value));
|
||||
}
|
||||
|
||||
if (position.HasValue)
|
||||
|
|
@ -320,7 +320,7 @@ namespace MapControl
|
|||
}
|
||||
else if (rotation != 0d)
|
||||
{
|
||||
SetRenderTransform(element, new RotateTransform { Angle = rotation }, 0.5, 0.5);
|
||||
element.SetRenderTransform(new RotateTransform { Angle = rotation }, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue