mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-04 22:18:56 +00:00
FrameworkElementExtensions
This commit is contained in:
parent
24dabf046d
commit
d513ea249e
7 changed files with 47 additions and 42 deletions
|
|
@ -1,5 +1,4 @@
|
|||
using System.Windows;
|
||||
using System.Windows.Media;
|
||||
|
||||
namespace MapControl
|
||||
{
|
||||
|
|
@ -20,16 +19,5 @@ namespace MapControl
|
|||
{
|
||||
return (MapBase)element.GetValue(ParentMapProperty);
|
||||
}
|
||||
|
||||
public static void SetRenderTransform(FrameworkElement element, Transform transform, double originX = 0d, double originY = 0d)
|
||||
{
|
||||
element.RenderTransform = transform;
|
||||
element.RenderTransformOrigin = new Point(originX, originY);
|
||||
}
|
||||
|
||||
private static void SetVisible(FrameworkElement element, bool visible)
|
||||
{
|
||||
element.Visibility = visible ? Visibility.Visible : Visibility.Collapsed;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue