Skip to content

Add GlobalUsings.cs to remove complexity of using different namespaces for WinUI2/3 #144

@mrlacey

Description

@mrlacey

Rather than have something like the following at the top of each file, it will be simpler and easier to specify these at a global level.

#if !WINAPPSDK
using Microsoft.Toolkit.Uwp;
using Microsoft.Toolkit.Uwp.UI;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Markup;
#else
using CommunityToolkit.WinUI;
using CommunityToolkit.WinUI.UI;
using Microsoft.UI.Xaml;
using Microsoft.UI.Xaml.Controls;
using Microsoft.UI.Xaml.Markup;
#endif

This will also make it easier when adding new files to an experiment as it won't be necessary to add the above (or a variation thereof)

Metadata

Metadata

Assignees

Labels

dev loop ➰For issues that impact the core dev-loop of building experimentsenhancementImprovement to an existing featuretemplating

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions