Skip to content

Commit

Permalink
Updating Collections namespace (#226)
Browse files Browse the repository at this point in the history
* Updating namespace to .Collections

* Address feedback
  • Loading branch information
niels9001 authored Sep 7, 2023
1 parent e1c47f3 commit 241b30a
Show file tree
Hide file tree
Showing 18 changed files with 20 additions and 17 deletions.
4 changes: 2 additions & 2 deletions components/Collections/samples/AdvancedCollectionView.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: AdvancedCollectionView
author: nmetulev
description: The AdvancedCollectionView is a collection view implementation that support filtering, sorting and incremental loading. It's meant to be used in a viewmodel.
keywords: AdvancedCollectionView, data, sorting, filtering
keywords: AdvancedCollectionView, data, sorting, filtering, Collections
dev_langs:
- csharp
category: Helpers
Expand All @@ -27,7 +27,7 @@ In your viewmodel instead of having a public [IEnumerable](https://learn.microso
## Example

```csharp
using CommunityToolkit.WinUI;
using CommunityToolkit.WinUI.Collections;

// Grab a sample type
public class Person
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
<Page x:Class="CollectionsExperiment.Samples.AdvancedCollectionViewSample"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:controls="using:CommunityToolkit.WinUI"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="using:AdvancedCollectionViewExperiment.Samples"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
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.

using CommunityToolkit.WinUI;
using CommunityToolkit.WinUI.Collections;

namespace CollectionsExperiment.Samples;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: IncrementalLoadingCollection
author: nmetulev
description: The IncrementalLoadingCollection helpers greatly simplify the definition and usage of collections whose items can be loaded incrementally only when needed by the view (such as a ScrollViewer).
keywords: IncrementalLoadingCollection, Control, Data, Incremental, Loading
keywords: IncrementalLoadingCollection, Control, Data, Incremental, Loading, Collections
dev_langs:
- csharp
category: Helpers
Expand All @@ -24,7 +24,7 @@ icon: Assets/IncrementalLoadingCollection.png

```csharp
// Be sure to include the using at the top of the file:
//using CommunityToolkit.WinUI;
//using CommunityToolkit.WinUI.Collections;
public class Person
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
<Page x:Class="CollectionsExperiment.Samples.IncrementalLoadingCollectionSample"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:controls="using:CommunityToolkit.WinUI"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="using:IncrementalLoadingCollectionExperiment.Samples"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
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.

using CommunityToolkit.WinUI;
using CommunityToolkit.WinUI.Collections;

namespace CollectionsExperiment.Samples;

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 CommunityToolkit.WinUI;
namespace CommunityToolkit.WinUI.Collections;

/// <summary>
/// A collection view implementation that supports filtering, grouping, sorting and incremental loading
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 CommunityToolkit.WinUI;
namespace CommunityToolkit.WinUI.Collections;

/// <summary>
/// A collection view implementation that supports filtering, grouping, sorting and incremental loading
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using System.Runtime.CompilerServices;
using NotifyCollectionChangedAction = global::System.Collections.Specialized.NotifyCollectionChangedAction;

namespace CommunityToolkit.WinUI;
namespace CommunityToolkit.WinUI.Collections;

/// <summary>
/// A collection view implementation that supports filtering, sorting and incremental loading
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

using System.Collections;

namespace CommunityToolkit.WinUI;
namespace CommunityToolkit.WinUI.Collections;

/// <summary>
/// Extended ICollectionView with filtering and sorting
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

using System.Collections;

namespace CommunityToolkit.WinUI;
namespace CommunityToolkit.WinUI.Collections;

/// <summary>
/// Sort description
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 CommunityToolkit.WinUI;
namespace CommunityToolkit.WinUI.Collections;

/// <summary>
/// Sort direction enum
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 CommunityToolkit.WinUI;
namespace CommunityToolkit.WinUI.Collections;

/// <summary>
/// Vector changed EventArgs
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 CommunityToolkit.WinUI;
namespace CommunityToolkit.WinUI.Collections;

/// <summary>
/// This interface represents a data source whose items can be loaded incrementally.
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 CommunityToolkit.WinUI;
namespace CommunityToolkit.WinUI.Collections;

/// <summary>
/// This class represents an <see cref="ObservableCollection{IType}"/> whose items can be loaded incrementally.
Expand Down
1 change: 1 addition & 0 deletions components/Collections/tests/DataSource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace CollectionsExperiment.Tests;

using CommunityToolkit.WinUI.Collections;
public class DataSource<T> : IIncrementalSource<T>
{
private readonly IEnumerable<T> items;
Expand Down
2 changes: 2 additions & 0 deletions components/Collections/tests/Test_AdvancedCollectionView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using CommunityToolkit.WinUI.Collections;

using System.Runtime.CompilerServices;

namespace CollectionsExperiment.Tests;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using CommunityToolkit.WinUI.Collections;

namespace CollectionsExperiment.Tests;

[TestClass]
Expand Down

0 comments on commit 241b30a

Please sign in to comment.