mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-06 06:55:04 +00:00
Conditional usings
This commit is contained in:
parent
93b58fa01e
commit
eb990ab9ee
74 changed files with 354 additions and 364 deletions
|
|
@ -5,23 +5,23 @@
|
|||
using System.Collections.ObjectModel;
|
||||
using System.Collections.Specialized;
|
||||
using System.Linq;
|
||||
#if WINUI
|
||||
using Microsoft.UI.Xaml;
|
||||
using Microsoft.UI.Xaml.Markup;
|
||||
#if WPF
|
||||
using System.Windows;
|
||||
using System.Windows.Markup;
|
||||
#elif UWP
|
||||
using Windows.UI.Xaml;
|
||||
using Windows.UI.Xaml.Markup;
|
||||
#else
|
||||
using System.Windows;
|
||||
using System.Windows.Markup;
|
||||
#elif WINUI
|
||||
using Microsoft.UI.Xaml;
|
||||
using Microsoft.UI.Xaml.Markup;
|
||||
#endif
|
||||
|
||||
namespace MapControl.UiTools
|
||||
{
|
||||
#if WINUI || UWP
|
||||
[ContentProperty(Name = nameof(Projection))]
|
||||
#else
|
||||
#if WPF
|
||||
[ContentProperty(nameof(Projection))]
|
||||
#else
|
||||
[ContentProperty(Name = nameof(Projection))]
|
||||
#endif
|
||||
public class MapProjectionItem
|
||||
{
|
||||
|
|
@ -29,10 +29,10 @@ namespace MapControl.UiTools
|
|||
public string Projection { get; set; }
|
||||
}
|
||||
|
||||
#if WINUI || UWP
|
||||
[ContentProperty(Name = nameof(MapProjections))]
|
||||
#else
|
||||
#if WPF
|
||||
[ContentProperty(nameof(MapProjections))]
|
||||
#else
|
||||
[ContentProperty(Name = nameof(MapProjections))]
|
||||
#endif
|
||||
public class MapProjectionsMenuButton : MenuButton
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue