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

27 lines
625 B
C#
Raw Normal View History

2018-11-13 21:35:48 +01:00
// XAML Map Control - https://github.com/ClemensFischer/XAML-Map-Control
2024-02-03 21:01:53 +01:00
// Copyright © 2024 Clemens Fischer
2018-11-13 21:35:48 +01:00
// Licensed under the Microsoft Public License (Ms-PL)
2021-06-14 21:41:37 +02:00
#if WINUI
using Microsoft.UI.Xaml;
#else
2018-11-14 17:53:37 +01:00
using Windows.UI.Xaml;
2021-06-14 21:41:37 +02:00
#endif
2018-11-13 21:35:48 +01:00
namespace MapControl
{
public partial class MapItemsControl
{
2021-01-17 00:31:30 +01:00
public MapItemsControl()
{
DefaultStyleKey = typeof(MapItemsControl);
MapPanel.InitMapElement(this);
}
2018-11-14 17:53:37 +01:00
public new FrameworkElement ContainerFromItem(object item)
2018-11-13 21:35:48 +01:00
{
2018-11-14 17:53:37 +01:00
return (FrameworkElement)base.ContainerFromItem(item);
2018-11-13 21:35:48 +01:00
}
}
}