Skip to content

Commit fe8d505

Browse files
authored
Merge pull request #2369 from southworkscom/DeprecateNavigationView
Deprecate NavigationView extension
2 parents d9b78f6 + 8e19c1a commit fe8d505

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

Microsoft.Toolkit.Uwp.SampleApp/SamplePages/samples.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -918,8 +918,9 @@
918918
"XamlCodeFile": "NavigationViewStylesXaml.bind",
919919
"DocumentationUrl": "https://raw.githubusercontent.com/Microsoft/WindowsCommunityToolkit/master/docs/extensions/NavigationView.md",
920920
"Icon": "/SamplePages/NavigationViewStyles/NavigationViewStyles.png",
921-
"About": "Style extensions for the NavigationView to appear like the one used by Visual Studio Code.",
922-
"BadgeUpdateVersionRequired": "Fall Creators Update required",
921+
"About": "The NavigationView extension will be removed in a future major release.",
922+
"BadgeUpdateVersionRequired": "DEPRECATED",
923+
"DeprecatedWarning": "The NavigationView extension will be removed in a future major release.",
923924
"ApiCheck": "Windows.UI.Xaml.Controls.NavigationView",
924925
"CodeUrl": "https://github.com/Microsoft/UWPCommunitToolkit/tree/master/Microsoft.Toolkit.Uwp.UI/Extensions/NavigationView"
925926
},

Microsoft.Toolkit.Uwp.UI/Extensions/NavigationView/NavigationViewExtensions.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33
// See the LICENSE file in the project root for more information.
44

5+
using System;
56
using Windows.UI.Xaml;
67
using Windows.UI.Xaml.Controls;
78
using Windows.UI.Xaml.Data;
@@ -12,6 +13,7 @@ namespace Microsoft.Toolkit.Uwp.UI.Extensions
1213
/// Set of extensions for the <see cref="NavigationView"/> control.
1314
/// </summary>
1415
[Bindable]
16+
[Obsolete("The Navigation View extension will be removed in a future major release.")]
1517
public static class NavigationViewExtensions
1618
{
1719
// Name of Content area in NavigationView Template.

docs/extensions/NavigationView.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ keywords: windows 10, uwp, windows community toolkit, uwp community toolkit, uwp
66
---
77

88
# NavigationView Styles
9+
10+
> [!NOTE] The NavigationView extension will be removed in a future major release.
11+
912
<!-- Describe your control -->
1013
The [NavigationView Styles](https://docs.microsoft.com/en-us/windows/communitytoolkit/extensions/navigationview) are a set of styles and extensions to reskin a `NavigationView` to look and behave like the `Activity Bar` and `Side Bar` in *Visual Studio Code*.
1114

0 commit comments

Comments
 (0)