Merge pull request #58 from krschau/main

Fix namespaces
This commit is contained in:
Jordi Adoumie
2024-09-16 17:16:30 -04:00
committed by GitHub
32 changed files with 30 additions and 50 deletions

View File

@@ -5,7 +5,7 @@
using Microsoft.CmdPal.Extensions;
using Microsoft.UI.Xaml.Controls;
namespace DeveloperCommandPalette;
namespace WindowsCommandPalette;
public sealed class ActionViewModel(ICommand cmd)
{

View File

@@ -1,9 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<Application
x:Class="DeveloperCommandPalette.App"
x:Class="WindowsCommandPalette.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:DeveloperCommandPalette">
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>

View File

@@ -9,11 +9,11 @@ using Microsoft.CmdPal.Common.Services;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Microsoft.UI.Xaml;
using Microsoft.Windows.CommandPalette.Services;
using WindowsCommandPalette.Services;
// To learn more about WinUI, the WinUI project structure,
// and more about our project templates, see: http://aka.ms/winui-project-info.
namespace DeveloperCommandPalette;
namespace WindowsCommandPalette;
/// <summary>
/// Provides application-specific behavior to supplement the default Application class.

View File

@@ -6,7 +6,7 @@ using System.ComponentModel;
using Microsoft.CmdPal.Extensions;
using Microsoft.UI.Xaml.Controls;
namespace DeveloperCommandPalette;
namespace WindowsCommandPalette;
public sealed class ContextItemViewModel : INotifyPropertyChanged
{

View File

@@ -4,15 +4,12 @@
using System.Collections.ObjectModel;
using System.Collections.Specialized;
using System.Linq;
using CmdPal.Models;
using Microsoft.CmdPal.Extensions;
using Microsoft.CmdPal.Extensions.Helpers;
using Microsoft.UI.Dispatching;
using Microsoft.UI.Xaml;
using WindowsCommandPalette.Views;
namespace DeveloperCommandPalette;
namespace WindowsCommandPalette;
// The FilteredListSection is for when we've got any filter at all. It starts by
// enumerating all actions and apps, and returns the subset that matches.

View File

@@ -4,13 +4,13 @@
using System.ComponentModel;
using System.Runtime.InteropServices;
using CmdPal.Models;
using Microsoft.CmdPal.Extensions;
using Microsoft.UI.Dispatching;
using Microsoft.UI.Xaml.Controls;
using WindowsCommandPalette.Models;
using WindowsCommandPalette.Views;
namespace DeveloperCommandPalette;
namespace WindowsCommandPalette;
public sealed class ListItemViewModel : INotifyPropertyChanged, IDisposable
{

View File

@@ -5,7 +5,7 @@
using Microsoft.CmdPal.Extensions;
using Microsoft.CmdPal.Extensions.Helpers;
namespace DeveloperCommandPalette;
namespace WindowsCommandPalette;
public sealed partial class MainListItem : ListItem
{

View File

@@ -3,12 +3,12 @@
// See the LICENSE file in the project root for more information.
using System.Collections.Specialized;
using CmdPal.Models;
using Microsoft.CmdPal.Extensions;
using Microsoft.CmdPal.Extensions.Helpers;
using WindowsCommandPalette.Models;
using WindowsCommandPalette.Views;
namespace DeveloperCommandPalette;
namespace WindowsCommandPalette;
public sealed partial class MainListPage : DynamicListPage
{

View File

@@ -8,7 +8,7 @@ using Microsoft.CmdPal.Extensions;
using Microsoft.UI.Dispatching;
using WindowsCommandPalette.Views;
namespace DeveloperCommandPalette;
namespace WindowsCommandPalette;
// The MainListSection is for all non-recent actions. No apps.
public sealed partial class MainListSection : ISection, INotifyCollectionChanged

View File

@@ -1,9 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<Window
x:Class="DeveloperCommandPalette.MainWindow"
x:Class="WindowsCommandPalette.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:DeveloperCommandPalette"
xmlns:cmdpal="using:WindowsCommandPalette.Views"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"

View File

@@ -20,7 +20,7 @@ using Windows.Win32.Foundation;
using Windows.Win32.UI.WindowsAndMessaging;
using WindowsCommandPalette.Views;
namespace DeveloperCommandPalette;
namespace WindowsCommandPalette;
/// <summary>
/// An empty window that can be used on its own or navigated to within a Frame.

View File

@@ -2,7 +2,7 @@
// The Microsoft Corporation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
namespace CmdPal.Models;
namespace WindowsCommandPalette.Models;
public class ExtensionObject<T> // where T : IInspectable
{

View File

@@ -11,7 +11,7 @@ using Windows.Win32;
using Windows.Win32.System.Com;
using WinRT;
namespace CmdPal.Models;
namespace WindowsCommandPalette.Models;
public class ExtensionWrapper : IExtensionWrapper
{

View File

@@ -5,7 +5,7 @@
using Microsoft.CmdPal.Extensions;
using Windows.Foundation;
namespace DeveloperCommandPalette;
namespace WindowsCommandPalette;
public class PageViewModel
{

View File

@@ -2,13 +2,9 @@
// The Microsoft Corporation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Threading;
using Microsoft.UI.Dispatching;
using Microsoft.Windows.AppLifecycle;
using Windows.ApplicationModel.Activation;
using Windows.Storage;
namespace DeveloperCommandPalette;
namespace WindowsCommandPalette;
// cribbed heavily from
//

View File

@@ -9,7 +9,7 @@ using Microsoft.CmdPal.Extensions.Helpers;
using Microsoft.UI.Dispatching;
using WindowsCommandPalette.Views;
namespace DeveloperCommandPalette;
namespace WindowsCommandPalette;
public sealed partial class RecentsListSection : ListSection, INotifyCollectionChanged
{

View File

@@ -2,7 +2,6 @@
// The Microsoft Corporation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using CmdPal.Models;
using Microsoft.CmdPal.Common.Contracts;
using Microsoft.CmdPal.Common.Extensions;
using Microsoft.CmdPal.Common.Services;
@@ -11,8 +10,9 @@ using Microsoft.UI.Xaml;
using Windows.ApplicationModel;
using Windows.ApplicationModel.AppExtensions;
using Windows.Foundation.Collections;
using WindowsCommandPalette.Models;
namespace Microsoft.Windows.CommandPalette.Services;
namespace WindowsCommandPalette.Services;
public class ExtensionService : IExtensionService, IDisposable
{

View File

@@ -3,9 +3,8 @@
// See the LICENSE file in the project root for more information.
using Microsoft.CmdPal.Extensions;
using Windows.Foundation;
namespace DeveloperCommandPalette;
namespace WindowsCommandPalette;
public class SubmitFormArgs
{

View File

@@ -8,7 +8,7 @@ using Microsoft.UI.Xaml.Controls;
using Microsoft.UI.Xaml.Media;
using Windows.UI;
namespace DeveloperCommandPalette;
namespace WindowsCommandPalette;
public sealed class TagViewModel : INotifyPropertyChanged
{

View File

@@ -1,7 +1,6 @@
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:DeveloperCommandPalette">
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<!-- Using custom style to remove header divider from list view headers -->
<Style x:Key="CustomHeaderContainerStyle" TargetType="ListViewHeaderItem">

View File

@@ -3,7 +3,6 @@
// See the LICENSE file in the project root for more information.
using System.Collections.ObjectModel;
using DeveloperCommandPalette;
using Microsoft.CmdPal.Extensions;
namespace WindowsCommandPalette.Views;

View File

@@ -6,7 +6,6 @@ using System.ComponentModel;
using AdaptiveCards.ObjectModel.WinUI3;
using AdaptiveCards.Rendering.WinUI3;
using AdaptiveCards.Templating;
using DeveloperCommandPalette;
using Microsoft.CmdPal.Extensions;
using Microsoft.UI.Xaml;
using Windows.Foundation;

View File

@@ -3,7 +3,7 @@
x:Class="WindowsCommandPalette.Views.ListPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:devpal="using:DeveloperCommandPalette"
xmlns:devpal="using:WindowsCommandPalette"
xmlns:local="using:WindowsCommandPalette.Views"
xmlns:rsdk="using:Microsoft.CmdPal.Extensions"
xmlns:mtu="using:Microsoft.Terminal.UI"

View File

@@ -3,7 +3,6 @@
// See the LICENSE file in the project root for more information.
using System.ComponentModel;
using DeveloperCommandPalette;
using Microsoft.CmdPal.Extensions.Helpers;
using Microsoft.UI.Dispatching;
using Microsoft.UI.Input;
@@ -12,6 +11,7 @@ using Microsoft.UI.Xaml.Controls;
using Microsoft.UI.Xaml.Controls.Primitives;
using Microsoft.UI.Xaml.Input;
using Microsoft.UI.Xaml.Navigation;
using WindowsCommandPalette;
namespace WindowsCommandPalette.Views;

View File

@@ -4,7 +4,6 @@
using System.Collections.ObjectModel;
using System.Runtime.InteropServices;
using DeveloperCommandPalette;
using Microsoft.CmdPal.Extensions;
using Microsoft.CmdPal.Extensions.Helpers;
using Microsoft.UI.Dispatching;

View File

@@ -3,7 +3,6 @@
// See the LICENSE file in the project root for more information.
using System.Runtime.InteropServices;
using DeveloperCommandPalette;
using Microsoft.CmdPal.Common.Extensions;
using Microsoft.CmdPal.Common.Services;
using Microsoft.CmdPal.Extensions;

View File

@@ -5,8 +5,6 @@
using System.Collections.ObjectModel;
using System.Runtime.InteropServices;
using System.Runtime.InteropServices.WindowsRuntime;
using CmdPal.Models;
using DeveloperCommandPalette;
using Microsoft.CmdPal.Ext.Bookmarks;
using Microsoft.CmdPal.Ext.Calc;
using Microsoft.CmdPal.Ext.Settings;
@@ -15,6 +13,7 @@ using Microsoft.CmdPal.Extensions.Helpers;
using Windows.Foundation;
using WindowsCommandPalette.BuiltinCommands;
using WindowsCommandPalette.BuiltinCommands.AllApps;
using WindowsCommandPalette.Models;
namespace WindowsCommandPalette.Views;

View File

@@ -3,7 +3,7 @@
x:Class="WindowsCommandPalette.Views.MarkdownPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:devpal="using:DeveloperCommandPalette"
xmlns:devpal="using:WindowsCommandPalette"
xmlns:local="using:WindowsCommandPalette.Views"
xmlns:mtu="using:Microsoft.Terminal.UI"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"

View File

@@ -3,8 +3,6 @@
// See the LICENSE file in the project root for more information.
using System.ComponentModel;
using DeveloperCommandPalette;
using Microsoft.CmdPal.Extensions;
using Microsoft.UI.Input;
using Microsoft.UI.Xaml;
using Microsoft.UI.Xaml.Controls;

View File

@@ -2,7 +2,6 @@
// The Microsoft Corporation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using DeveloperCommandPalette;
using Microsoft.CmdPal.Extensions;
namespace WindowsCommandPalette.Views;

View File

@@ -4,7 +4,6 @@
using System.Collections.ObjectModel;
using System.Collections.Specialized;
using DeveloperCommandPalette;
using Microsoft.CmdPal.Extensions;
using Microsoft.UI.Dispatching;

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1">
<assemblyIdentity version="1.0.0.0" name="DeveloperCommandPalette.app"/>
<assemblyIdentity version="1.0.0.0" name="WindowsCommandPalette.app"/>
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
<application>