Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating Collections namespace #226

Merged
merged 2 commits into from
Sep 7, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
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
2 changes: 1 addition & 1 deletion components/Collections/tests/DataSource.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.

namespace CollectionsExperiment.Tests;

using CommunityToolkit.WinUI.Collections;
niels9001 marked this conversation as resolved.
Show resolved Hide resolved
public class DataSource<T> : IIncrementalSource<T>
{
private readonly IEnumerable<T> items;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// See the LICENSE file in the project root for more information.

using System.Runtime.CompilerServices;
using CommunityToolkit.WinUI.Collections;

namespace CollectionsExperiment.Tests;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// See the LICENSE file in the project root for more information.

namespace CollectionsExperiment.Tests;
using CommunityToolkit.WinUI.Collections;

[TestClass]
public class Test_IncrementalLoadingCollection
Expand Down