Conditional usings

This commit is contained in:
ClemensFischer 2024-05-22 11:25:32 +02:00
parent 93b58fa01e
commit eb990ab9ee
74 changed files with 354 additions and 364 deletions

View file

@ -13,7 +13,7 @@
<DelaySign>false</DelaySign>
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
<PackageId>XAML.MapControl</PackageId>
<DefineConstants></DefineConstants>
<DefineConstants>WPF</DefineConstants>
</PropertyGroup>
<ItemGroup>

View file

@ -3,12 +3,12 @@
// Licensed under the Microsoft Public License (Ms-PL)
using System;
#if AVALONIA
using Avalonia.Threading;
#if WPF
using System.Windows.Threading;
#elif UWP
using Windows.UI.Xaml;
#else
using System.Windows.Threading;
#elif AVALONIA
using Avalonia.Threading;
#endif
namespace MapControl