XAML-Map-Control/MapControl/WinUI/MapPath.WinUI.cs

31 lines
636 B
C#
Raw Permalink Normal View History

2025-02-27 18:46:32 +01:00
#if UWP
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Shapes;
2024-05-22 11:25:32 +02:00
#else
using Microsoft.UI.Xaml.Media;
using Microsoft.UI.Xaml.Shapes;
2021-06-14 21:41:37 +02:00
#endif
namespace MapControl
{
public partial class MapPath : Path
{
2021-01-17 00:31:30 +01:00
public MapPath()
{
MapPanel.InitMapElement(this);
}
2023-01-23 18:42:10 +01:00
private void SetMapTransform(Matrix matrix)
{
if (Data.Transform is MatrixTransform transform)
{
transform.Matrix = matrix;
}
else
{
Data.Transform = new MatrixTransform { Matrix = matrix };
}
}
}
}