Skip to content

Commit

Permalink
Fixes #197 misconfigured namespaces caused sample code not to load in…
Browse files Browse the repository at this point in the history
… app

We should think of making an analyzer to detect this, since we use it...
See discussion here about this issue: CommunityToolkit/Tooling-Windows-Submodule#134 (comment)
  • Loading branch information
michael-hawker committed Sep 1, 2023
1 parent 997dde8 commit 33f60d8
Show file tree
Hide file tree
Showing 28 changed files with 31 additions and 37 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Page x:Class="BehaviorsExperiment.Samples.FadeHeaderBehaviorSample"
<Page x:Class="BehaviorsExperiment.Samples.Headers.FadeHeaderBehaviorSample"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:behaviors="using:CommunityToolkit.WinUI.Behaviors"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

using CommunityToolkit.WinUI.Behaviors;

namespace BehaviorsExperiment.Samples;
namespace BehaviorsExperiment.Samples.Headers;

/// <summary>
/// An empty page that can be used on its own or navigated to within a Frame.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Page x:Class="BehaviorsExperiment.Samples.QuickReturnHeaderBehaviorSample"
<Page x:Class="BehaviorsExperiment.Samples.Headers.QuickReturnHeaderBehaviorSample"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:behaviors="using:CommunityToolkit.WinUI.Behaviors"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

using CommunityToolkit.WinUI.Behaviors;

namespace BehaviorsExperiment.Samples;
namespace BehaviorsExperiment.Samples.Headers;

/// <summary>
/// An empty page that can be used on its own or navigated to within a Frame.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Page x:Class="BehaviorsExperiment.Samples.QuickReturnScrollViewerSample"
<Page x:Class="BehaviorsExperiment.Samples.Headers.QuickReturnScrollViewerSample"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:behaviors="using:CommunityToolkit.WinUI.Behaviors"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

using CommunityToolkit.WinUI.Behaviors;

namespace BehaviorsExperiment.Samples;
namespace BehaviorsExperiment.Samples.Headers;

/// <summary>
/// An empty page that can be used on its own or navigated to within a Frame.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<Page x:Class="BehaviorsExperiment.Samples.StickyHeaderBehaviorSample"
<Page x:Class="BehaviorsExperiment.Samples.Headers.StickyHeaderBehaviorSample"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:behaviors="using:CommunityToolkit.WinUI.Behaviors"
xmlns:controls="using:CommunityToolkit.WinUI.Controls"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:interactivity="using:Microsoft.Xaml.Interactivity"
xmlns:local="using:BehaviorsExperiment.Samples"
xmlns:local="using:BehaviorsExperiment.Samples.Headers"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:muxc="using:Microsoft.UI.Xaml.Controls"
mc:Ignorable="d">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

using CommunityToolkit.WinUI.Behaviors;

namespace BehaviorsExperiment.Samples;
namespace BehaviorsExperiment.Samples.Headers;

/// <summary>
/// An empty page that can be used on its own or navigated to within a Frame.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Page x:Class="BehaviorsExperiment.Samples.StickyHeaderItemsControlSample"
<Page x:Class="BehaviorsExperiment.Samples.Headers.StickyHeaderItemsControlSample"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:behaviors="using:CommunityToolkit.WinUI.Behaviors"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using CommunityToolkit.WinUI.Behaviors;
using CommunityToolkit.WinUI.Controls;

namespace BehaviorsExperiment.Samples;
namespace BehaviorsExperiment.Samples.Headers;

/// <summary>
/// An empty page that can be used on its own or navigated to within a Frame.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE file in the project root for more information. -->
<Page x:Class="HeaderedContentControlExperiment.Samples.HeaderedContentControlComplexSample"
<Page x:Class="HeaderedControlsExperiment.Samples.HeaderedContentControlComplexSample"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:controls="using:CommunityToolkit.WinUI.Controls">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

using CommunityToolkit.WinUI.Controls;

namespace HeaderedContentControlExperiment.Samples;
namespace HeaderedControlsExperiment.Samples;

[ToolkitSample(id: nameof(HeaderedContentControlComplexSample), "HeaderedContentControl Complex Sample", description: $"A sample for showing how to create and use a {nameof(HeaderedContentControl)} control with complex content.")]
public sealed partial class HeaderedContentControlComplexSample : Page
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE file in the project root for more information. -->
<Page x:Class="HeaderedContentControlExperiment.Samples.HeaderedContentControlImageSample"
<Page x:Class="HeaderedControlsExperiment.Samples.HeaderedContentControlImageSample"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:controls="using:CommunityToolkit.WinUI.Controls">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

using CommunityToolkit.WinUI.Controls;

namespace HeaderedContentControlExperiment.Samples;
namespace HeaderedControlsExperiment.Samples;

[ToolkitSample(id: nameof(HeaderedContentControlImageSample), "HeaderedContentControl Image Sample", description: $"A sample for showing how to create and use a {nameof(HeaderedContentControl)} control with image content.")]
public sealed partial class HeaderedContentControlImageSample : Page
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE file in the project root for more information. -->
<Page x:Class="HeaderedContentControlExperiment.Samples.HeaderedContentControlSample"
<Page x:Class="HeaderedControlsExperiment.Samples.HeaderedContentControlSample"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:controls="using:CommunityToolkit.WinUI.Controls">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

using CommunityToolkit.WinUI.Controls;

namespace HeaderedContentControlExperiment.Samples;
namespace HeaderedControlsExperiment.Samples;

[ToolkitSample(id: nameof(HeaderedContentControlSample), "HeaderedContentControl", description: $"A sample for showing how to create and use a {nameof(HeaderedContentControl)} control.")]
public sealed partial class HeaderedContentControlSample : Page
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE file in the project root for more information. -->
<Page x:Class="HeaderedContentControlExperiment.Samples.HeaderedContentControlTextSample"
<Page x:Class="HeaderedControlsExperiment.Samples.HeaderedContentControlTextSample"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:controls="using:CommunityToolkit.WinUI.Controls">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

using CommunityToolkit.WinUI.Controls;

namespace HeaderedContentControlExperiment.Samples;
namespace HeaderedControlsExperiment.Samples;

[ToolkitSample(id: nameof(HeaderedContentControlTextSample), "HeaderedContentControl Text Sample", description: $"A sample for showing how to create and use a {nameof(HeaderedContentControl)} control with text content.")]
public sealed partial class HeaderedContentControlTextSample : Page
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE file in the project root for more information. -->
<Page x:Class="HeaderedItemsControlExperiment.Samples.HeaderedItemsControlSample"
<Page x:Class="HeaderedControlsExperiment.Samples.HeaderedItemsControlSample"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:controls="using:CommunityToolkit.WinUI.Controls"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="using:HeaderedItemsControlExperiment.Samples"
xmlns:local="using:HeaderedControlsExperiment.Samples"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

using CommunityToolkit.WinUI.Controls;

namespace HeaderedItemsControlExperiment.Samples;
namespace HeaderedControlsExperiment.Samples;

[ToolkitSample(id: nameof(HeaderedItemsControlSample), "HeaderedItemsControl", description: $"A sample for showing how to create and use a {nameof(HeaderedItemsControl)} control.")]
public sealed partial class HeaderedItemsControlSample : Page
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE file in the project root for more information. -->
<Page x:Class="HeaderedItemsControlExperiment.Samples.HeaderedTreeViewSample"
<Page x:Class="HeaderedControlsExperiment.Samples.HeaderedTreeViewSample"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:controls="using:CommunityToolkit.WinUI.Controls"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="using:HeaderedItemsControlExperiment.Samples"
xmlns:local="using:HeaderedControlsExperiment.Samples"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:muxc="using:Microsoft.UI.Xaml.Controls"
mc:Ignorable="d">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

using CommunityToolkit.WinUI.Controls;

namespace HeaderedItemsControlExperiment.Samples;
namespace HeaderedControlsExperiment.Samples;

[ToolkitSample(id: nameof(HeaderedTreeViewSample), "HeaderedTreeView", description: $"A sample for showing how to create and use a {nameof(HeaderedTreeView)} control.")]
public sealed partial class HeaderedTreeViewSample : Page
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE file in the project root for more information. -->
<Page x:Class="PrimitivesExperiment.Samples.ConstrainedBoxAspectSample"
<Page x:Class="PrimitivesExperiment.Samples.ConstrainedBox.ConstrainedBoxAspectSample"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:controls="using:CommunityToolkit.WinUI.Controls"
Expand Down
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 CommunityToolkit.WinUI.Controls;

namespace PrimitivesExperiment.Samples;
namespace PrimitivesExperiment.Samples.ConstrainedBox;

[ToolkitSample(id: nameof(ConstrainedBoxAspectSample), "ConstrainedBox Aspect", description: $"A sample for showing how to use a {nameof(ConstrainedBox)} for aspect ratios.")]
public sealed partial class ConstrainedBoxAspectSample : Page
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE file in the project root for more information. -->
<Page x:Class="PrimitivesExperiment.Samples.ConstrainedBoxMultipleSample"
<Page x:Class="PrimitivesExperiment.Samples.ConstrainedBox.ConstrainedBoxMultipleSample"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:brushes="using:CommunityToolkit.WinUI.Media"
Expand Down
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 CommunityToolkit.WinUI.Controls;

namespace PrimitivesExperiment.Samples;
namespace PrimitivesExperiment.Samples.ConstrainedBox;

[ToolkitSample(id: nameof(ConstrainedBoxMultipleSample), "ConstrainedBox Multiple", description: $"A sample for showing how to use a {nameof(ConstrainedBox)} for a tile pattern.")]
public sealed partial class ConstrainedBoxMultipleSample : Page
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE file in the project root for more information. -->
<Page x:Class="PrimitivesExperiment.Samples.ConstrainedBoxScaleSample"
<Page x:Class="PrimitivesExperiment.Samples.ConstrainedBox.ConstrainedBoxScaleSample"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:brushes="using:CommunityToolkit.WinUI.Media"
Expand Down
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 CommunityToolkit.WinUI.Controls;

namespace PrimitivesExperiment.Samples;
namespace PrimitivesExperiment.Samples.ConstrainedBox;

[ToolkitSample(id: nameof(ConstrainedBoxScaleSample), "ConstrainedBox Scale", description: $"A sample for showing how to use a {nameof(ConstrainedBox)} for percent buffers over margins.")]
public sealed partial class ConstrainedBoxScaleSample : Page
Expand Down

0 comments on commit 33f60d8

Please sign in to comment.