Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Microsoft.Toolkit.Mvvm/ComponentModel/ObservableObject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
using System.Runtime.CompilerServices;
using System.Threading.Tasks;

namespace Microsoft.Toolkit.Mvvm.ComponentModel
namespace Microsoft.Toolkit.Mvvm
{
/// <summary>
/// A base class for objects of which the properties must be observable.
Expand Down
8 changes: 3 additions & 5 deletions Microsoft.Toolkit.Mvvm/ComponentModel/ObservableRecipient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@
using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using Microsoft.Toolkit.Mvvm.Messaging;
using Microsoft.Toolkit.Mvvm.Messaging.Messages;

namespace Microsoft.Toolkit.Mvvm.ComponentModel
namespace Microsoft.Toolkit.Mvvm
{
/// <summary>
/// A base class for observable objects that also acts as recipients for messages. This class is an extension of
Expand All @@ -25,11 +23,11 @@ public abstract class ObservableRecipient : ObservableObject
/// Initializes a new instance of the <see cref="ObservableRecipient"/> class.
/// </summary>
/// <remarks>
/// This constructor will produce an instance that will use the <see cref="Messaging.Messenger.Default"/> instance
/// This constructor will produce an instance that will use the <see cref="Mvvm.Messenger.Default"/> instance
/// to perform requested operations. It will also be available locally through the <see cref="Messenger"/> property.
/// </remarks>
protected ObservableRecipient()
: this(Messaging.Messenger.Default)
: this(Mvvm.Messenger.Default)
{
}

Expand Down
2 changes: 1 addition & 1 deletion Microsoft.Toolkit.Mvvm/DependencyInjection/Ioc.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

#nullable enable

namespace Microsoft.Toolkit.Mvvm.DependencyInjection
namespace Microsoft.Toolkit.Mvvm
{
/// <summary>
/// A type that facilitates the use of the <see cref="IServiceProvider"/> type.
Expand Down
3 changes: 1 addition & 2 deletions Microsoft.Toolkit.Mvvm/Input/AsyncRelayCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@
using System;
using System.Runtime.CompilerServices;
using System.Threading.Tasks;
using Microsoft.Toolkit.Mvvm.ComponentModel;

namespace Microsoft.Toolkit.Mvvm.Input
namespace Microsoft.Toolkit.Mvvm
{
/// <summary>
/// A command that mirrors the functionality of <see cref="RelayCommand"/>, with the addition of
Expand Down
3 changes: 1 addition & 2 deletions Microsoft.Toolkit.Mvvm/Input/AsyncRelayCommand{T}.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@
using System;
using System.Runtime.CompilerServices;
using System.Threading.Tasks;
using Microsoft.Toolkit.Mvvm.ComponentModel;

namespace Microsoft.Toolkit.Mvvm.Input
namespace Microsoft.Toolkit.Mvvm
{
/// <summary>
/// A generic command that provides a more specific version of <see cref="AsyncRelayCommand"/>.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using System.ComponentModel;
using System.Threading.Tasks;

namespace Microsoft.Toolkit.Mvvm.Input
namespace Microsoft.Toolkit.Mvvm
{
/// <summary>
/// An interface expanding <see cref="IRelayCommand"/> to support asynchronous operations.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

using System.Threading.Tasks;

namespace Microsoft.Toolkit.Mvvm.Input
namespace Microsoft.Toolkit.Mvvm
{
/// <summary>
/// A generic interface representing a more specific version of <see cref="IAsyncRelayCommand"/>.
Expand Down
2 changes: 1 addition & 1 deletion Microsoft.Toolkit.Mvvm/Input/Interfaces/IRelayCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

using System.Windows.Input;

namespace Microsoft.Toolkit.Mvvm.Input
namespace Microsoft.Toolkit.Mvvm
{
/// <summary>
/// An interface expanding <see cref="ICommand"/> with the ability to raise
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

using System.Windows.Input;

namespace Microsoft.Toolkit.Mvvm.Input
namespace Microsoft.Toolkit.Mvvm
{
/// <summary>
/// A generic interface representing a more specific version of <see cref="IRelayCommand"/>.
Expand Down
2 changes: 1 addition & 1 deletion Microsoft.Toolkit.Mvvm/Input/RelayCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
using System;
using System.Runtime.CompilerServices;

namespace Microsoft.Toolkit.Mvvm.Input
namespace Microsoft.Toolkit.Mvvm
{
/// <summary>
/// A command whose sole purpose is to relay its functionality to other
Expand Down
2 changes: 1 addition & 1 deletion Microsoft.Toolkit.Mvvm/Input/RelayCommand{T}.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
using System;
using System.Runtime.CompilerServices;

namespace Microsoft.Toolkit.Mvvm.Input
namespace Microsoft.Toolkit.Mvvm
{
/// <summary>
/// A generic command whose sole purpose is to relay its functionality to other
Expand Down
2 changes: 1 addition & 1 deletion Microsoft.Toolkit.Mvvm/Messaging/IMessenger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using System;
using System.Diagnostics.Contracts;

namespace Microsoft.Toolkit.Mvvm.Messaging
namespace Microsoft.Toolkit.Mvvm
{
/// <summary>
/// An interface for a type providing the ability to exchange messages between different objects.
Expand Down
2 changes: 1 addition & 1 deletion Microsoft.Toolkit.Mvvm/Messaging/IRecipient{TMessage}.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

namespace Microsoft.Toolkit.Mvvm.Messaging
namespace Microsoft.Toolkit.Mvvm
{
/// <summary>
/// An interface for a recipient that declares a registration for a specific message type.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
using System.Threading;
using System.Threading.Tasks;

namespace Microsoft.Toolkit.Mvvm.Messaging.Messages
namespace Microsoft.Toolkit.Mvvm
{
/// <summary>
/// A <see langword="class"/> for request messages that can receive multiple replies, which can either be used directly or through derived classes.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using System.Runtime.CompilerServices;
using System.Threading.Tasks;

namespace Microsoft.Toolkit.Mvvm.Messaging.Messages
namespace Microsoft.Toolkit.Mvvm
{
/// <summary>
/// A <see langword="class"/> for async request messages, which can either be used directly or through derived classes.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using System.Diagnostics.Contracts;
using System.Runtime.CompilerServices;

namespace Microsoft.Toolkit.Mvvm.Messaging.Messages
namespace Microsoft.Toolkit.Mvvm
{
/// <summary>
/// A <see langword="class"/> for request messages that can receive multiple replies, which can either be used directly or through derived classes.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// This file is inspired from the MvvmLight library (lbugnion/MvvmLight),
// more info in ThirdPartyNotices.txt in the root of the project.

namespace Microsoft.Toolkit.Mvvm.Messaging.Messages
namespace Microsoft.Toolkit.Mvvm
{
/// <summary>
/// A message used to broadcast property changes in observable objects.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

#pragma warning disable CS8618

namespace Microsoft.Toolkit.Mvvm.Messaging.Messages
namespace Microsoft.Toolkit.Mvvm
{
/// <summary>
/// A <see langword="class"/> for request messages, which can either be used directly or through derived classes.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

namespace Microsoft.Toolkit.Mvvm.Messaging.Messages
namespace Microsoft.Toolkit.Mvvm
{
/// <summary>
/// A base message that signals whenever a specific value has changed.
Expand Down
2 changes: 1 addition & 1 deletion Microsoft.Toolkit.Mvvm/Messaging/Messenger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
using System.Threading;
using Microsoft.Collections.Extensions;

namespace Microsoft.Toolkit.Mvvm.Messaging
namespace Microsoft.Toolkit.Mvvm
{
/// <summary>
/// A type that can be used to exchange messages between different objects.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using System;
using System.Runtime.CompilerServices;

namespace Microsoft.Toolkit.Mvvm.Messaging
namespace Microsoft.Toolkit.Mvvm
{
/// <summary>
/// Extensions for the <see cref="IMessenger"/> type.
Expand Down
2 changes: 1 addition & 1 deletion Microsoft.Toolkit.Mvvm/Messaging/MessengerExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
using System.Reflection;
using System.Runtime.CompilerServices;

namespace Microsoft.Toolkit.Mvvm.Messaging
namespace Microsoft.Toolkit.Mvvm
{
/// <summary>
/// Extensions for the <see cref="IMessenger"/> type.
Expand Down
2 changes: 1 addition & 1 deletion UnitTests/UnitTests.Shared/Mvvm/Test_AsyncRelayCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

using System;
using System.Threading.Tasks;
using Microsoft.Toolkit.Mvvm.Input;
using Microsoft.Toolkit.Mvvm;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace UnitTests.Mvvm
Expand Down
4 changes: 1 addition & 3 deletions UnitTests/UnitTests.Shared/Mvvm/Test_Ioc.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@

using System;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Toolkit.Mvvm.ComponentModel;
using Microsoft.Toolkit.Mvvm.DependencyInjection;
using Microsoft.Toolkit.Mvvm.Messaging;
using Microsoft.Toolkit.Mvvm;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace UnitTests.Mvvm
Expand Down
3 changes: 1 addition & 2 deletions UnitTests/UnitTests.Shared/Mvvm/Test_Messenger.Request.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Microsoft.Toolkit.Mvvm.Messaging;
using Microsoft.Toolkit.Mvvm.Messaging.Messages;
using Microsoft.Toolkit.Mvvm;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace UnitTests.Mvvm
Expand Down
2 changes: 1 addition & 1 deletion UnitTests/UnitTests.Shared/Mvvm/Test_Messenger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// See the LICENSE file in the project root for more information.

using System;
using Microsoft.Toolkit.Mvvm.Messaging;
using Microsoft.Toolkit.Mvvm;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace UnitTests.Mvvm
Expand Down
2 changes: 1 addition & 1 deletion UnitTests/UnitTests.Shared/Mvvm/Test_ObservableObject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using System;
using System.ComponentModel;
using System.Threading.Tasks;
using Microsoft.Toolkit.Mvvm.ComponentModel;
using Microsoft.Toolkit.Mvvm;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace UnitTests.Mvvm
Expand Down
4 changes: 1 addition & 3 deletions UnitTests/UnitTests.Shared/Mvvm/Test_ObservableRecipient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using Microsoft.Toolkit.Mvvm.ComponentModel;
using Microsoft.Toolkit.Mvvm.Messaging;
using Microsoft.Toolkit.Mvvm.Messaging.Messages;
using Microsoft.Toolkit.Mvvm;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace UnitTests.Mvvm
Expand Down
2 changes: 1 addition & 1 deletion UnitTests/UnitTests.Shared/Mvvm/Test_RelayCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// See the LICENSE file in the project root for more information.

using System;
using Microsoft.Toolkit.Mvvm.Input;
using Microsoft.Toolkit.Mvvm;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace UnitTests.Mvvm
Expand Down
2 changes: 1 addition & 1 deletion UnitTests/UnitTests.Shared/Mvvm/Test_RelayCommand{T}.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

using System;
using System.Diagnostics.CodeAnalysis;
using Microsoft.Toolkit.Mvvm.Input;
using Microsoft.Toolkit.Mvvm;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace UnitTests.Mvvm
Expand Down