XAML-Map-Control/MapControl/WinUI/MapPath.WinUI.cs
2025-06-10 15:25:17 +02:00

31 lines
636 B
C#

#if UWP
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Shapes;
#else
using Microsoft.UI.Xaml.Media;
using Microsoft.UI.Xaml.Shapes;
#endif
namespace MapControl
{
public partial class MapPath : Path
{
public MapPath()
{
MapPanel.InitMapElement(this);
}
private void SetMapTransform(Matrix matrix)
{
if (Data.Transform is MatrixTransform transform)
{
transform.Matrix = matrix;
}
else
{
Data.Transform = new MatrixTransform { Matrix = matrix };
}
}
}
}