diff --git a/Microsoft.Toolkit.Uwp.SampleApp/Icons/Extensions.png b/Microsoft.Toolkit.Uwp.SampleApp/Icons/Extensions.png new file mode 100644 index 00000000000..9f194b5c64b Binary files /dev/null and b/Microsoft.Toolkit.Uwp.SampleApp/Icons/Extensions.png differ diff --git a/Microsoft.Toolkit.Uwp.SampleApp/Microsoft.Toolkit.Uwp.SampleApp.csproj b/Microsoft.Toolkit.Uwp.SampleApp/Microsoft.Toolkit.Uwp.SampleApp.csproj index 63b74accd1a..00686b16db1 100644 --- a/Microsoft.Toolkit.Uwp.SampleApp/Microsoft.Toolkit.Uwp.SampleApp.csproj +++ b/Microsoft.Toolkit.Uwp.SampleApp/Microsoft.Toolkit.Uwp.SampleApp.csproj @@ -236,6 +236,7 @@ + @@ -294,7 +295,7 @@ - + @@ -373,7 +374,7 @@ Designer - + Designer @@ -398,6 +399,7 @@ + @@ -418,6 +420,9 @@ BluetoothLEHelperPage.xaml + + ListViewBasePage.xaml + MenuPage.xaml @@ -558,8 +563,8 @@ ObjectStoragePage.xaml - - SurfaceDialTextboxHelperPage.xaml + + SurfaceDialTextboxPage.xaml SystemInformationPage.xaml @@ -675,6 +680,10 @@ MSBuild:Compile Designer + + Designer + MSBuild:Compile + MSBuild:Compile Designer @@ -831,7 +840,7 @@ Designer MSBuild:Compile - + Designer MSBuild:Compile diff --git a/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/ListViewBase/ListViewBaseCode.bind b/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/ListViewBase/ListViewBaseCode.bind new file mode 100644 index 00000000000..6789e83e580 --- /dev/null +++ b/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/ListViewBase/ListViewBaseCode.bind @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + + diff --git a/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/ListViewBase/ListViewBasePage.xaml b/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/ListViewBase/ListViewBasePage.xaml new file mode 100644 index 00000000000..65f424645bc --- /dev/null +++ b/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/ListViewBase/ListViewBasePage.xaml @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + + diff --git a/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/ListViewBase/ListViewBasePage.xaml.cs b/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/ListViewBase/ListViewBasePage.xaml.cs new file mode 100644 index 00000000000..b2efa9103bd --- /dev/null +++ b/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/ListViewBase/ListViewBasePage.xaml.cs @@ -0,0 +1,30 @@ +// ****************************************************************** +// Copyright (c) Microsoft. All rights reserved. +// This code is licensed under the MIT License (MIT). +// THE CODE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, +// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, +// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH +// THE CODE OR THE USE OR OTHER DEALINGS IN THE CODE. +// ****************************************************************** + +using Windows.UI.Xaml.Controls; +using Windows.UI.Xaml.Navigation; + +namespace Microsoft.Toolkit.Uwp.SampleApp.SamplePages +{ + public sealed partial class ListViewBasePage : Page + { + public ListViewBasePage() + { + this.InitializeComponent(); + } + + protected async override void OnNavigatedTo(NavigationEventArgs e) + { + SampleListView.ItemsSource = await new Data.PhotosDataSource().GetItemsAsync(); + } + } +} diff --git a/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/SurfaceDialTextboxHelper/SurfaceDialTextboxHelper.png b/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/SurfaceDialTextbox/SurfaceDialTextbox.png similarity index 100% rename from Microsoft.Toolkit.Uwp.SampleApp/SamplePages/SurfaceDialTextboxHelper/SurfaceDialTextboxHelper.png rename to Microsoft.Toolkit.Uwp.SampleApp/SamplePages/SurfaceDialTextbox/SurfaceDialTextbox.png diff --git a/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/SurfaceDialTextbox/SurfaceDialTextboxCode.bind b/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/SurfaceDialTextbox/SurfaceDialTextboxCode.bind new file mode 100644 index 00000000000..a39c334d0f7 --- /dev/null +++ b/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/SurfaceDialTextbox/SurfaceDialTextboxCode.bind @@ -0,0 +1,29 @@ + + + + + + + + + diff --git a/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/SurfaceDialTextbox/SurfaceDialTextboxPage.xaml b/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/SurfaceDialTextbox/SurfaceDialTextboxPage.xaml new file mode 100644 index 00000000000..32a73a3b44f --- /dev/null +++ b/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/SurfaceDialTextbox/SurfaceDialTextboxPage.xaml @@ -0,0 +1,29 @@ + + + + + + + + + diff --git a/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/SurfaceDialTextboxHelper/SurfaceDialTextboxHelperPage.xaml.cs b/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/SurfaceDialTextbox/SurfaceDialTextboxPage.xaml.cs similarity index 81% rename from Microsoft.Toolkit.Uwp.SampleApp/SamplePages/SurfaceDialTextboxHelper/SurfaceDialTextboxHelperPage.xaml.cs rename to Microsoft.Toolkit.Uwp.SampleApp/SamplePages/SurfaceDialTextbox/SurfaceDialTextboxPage.xaml.cs index a9bfec729d4..061d2f06d16 100644 --- a/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/SurfaceDialTextboxHelper/SurfaceDialTextboxHelperPage.xaml.cs +++ b/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/SurfaceDialTextbox/SurfaceDialTextboxPage.xaml.cs @@ -10,15 +10,13 @@ // THE CODE OR THE USE OR OTHER DEALINGS IN THE CODE. // ****************************************************************** -using Microsoft.Toolkit.Uwp.SampleApp.Models; using Windows.UI.Xaml.Controls; -using Windows.UI.Xaml.Navigation; namespace Microsoft.Toolkit.Uwp.SampleApp.SamplePages { - public sealed partial class SurfaceDialTextboxHelperPage : Page + public sealed partial class SurfaceDialTextboxPage : Page { - public SurfaceDialTextboxHelperPage() + public SurfaceDialTextboxPage() { InitializeComponent(); } diff --git a/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/SurfaceDialTextboxHelper/SurfaceDialTextboxHelperCode.bind b/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/SurfaceDialTextboxHelper/SurfaceDialTextboxHelperCode.bind deleted file mode 100644 index 1f3d89a1653..00000000000 --- a/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/SurfaceDialTextboxHelper/SurfaceDialTextboxHelperCode.bind +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - diff --git a/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/SurfaceDialTextboxHelper/SurfaceDialTextboxHelperPage.xaml b/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/SurfaceDialTextboxHelper/SurfaceDialTextboxHelperPage.xaml deleted file mode 100644 index c6409ca01ec..00000000000 --- a/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/SurfaceDialTextboxHelper/SurfaceDialTextboxHelperPage.xaml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - diff --git a/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/TextBoxMask/TextBoxMask.bind b/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/TextBoxMask/TextBoxMask.bind index 0b169b24ef7..8ed2b51e0cb 100644 --- a/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/TextBoxMask/TextBoxMask.bind +++ b/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/TextBoxMask/TextBoxMask.bind @@ -1,7 +1,7 @@ @@ -29,21 +29,21 @@ - diff --git a/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/TextBoxMask/TextBoxMaskPage.xaml b/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/TextBoxMask/TextBoxMaskPage.xaml index 3b650995071..3f50d4e8c8a 100644 --- a/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/TextBoxMask/TextBoxMaskPage.xaml +++ b/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/TextBoxMask/TextBoxMaskPage.xaml @@ -1,7 +1,7 @@  @@ -36,7 +36,7 @@ diff --git a/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/TextBoxRegex/TextBoxRegex.bind b/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/TextBoxRegex/TextBoxRegex.bind index 1cf18698b8b..7ff1d4809af 100644 --- a/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/TextBoxRegex/TextBoxRegex.bind +++ b/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/TextBoxRegex/TextBoxRegex.bind @@ -2,7 +2,7 @@ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:common="using:Microsoft.Toolkit.Uwp.SampleApp.Common" - xmlns:controls="using:Microsoft.Toolkit.Uwp.UI.Controls" + xmlns:extensions="using:Microsoft.Toolkit.Uwp.UI.Extensions" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d"> @@ -33,13 +33,13 @@ - + @@ -47,42 +47,42 @@ - + - + - + diff --git a/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/TextBoxRegex/TextBoxRegexPage.xaml b/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/TextBoxRegex/TextBoxRegexPage.xaml index f4ca6641fdc..d9cdef40be8 100644 --- a/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/TextBoxRegex/TextBoxRegexPage.xaml +++ b/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/TextBoxRegex/TextBoxRegexPage.xaml @@ -2,7 +2,7 @@ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:common="using:Microsoft.Toolkit.Uwp.SampleApp.Common" - xmlns:controls="using:Microsoft.Toolkit.Uwp.UI.Controls" + xmlns:extensions="using:Microsoft.Toolkit.Uwp.UI.Extensions" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d"> @@ -34,13 +34,13 @@ - + @@ -48,42 +48,42 @@ - + - + - + diff --git a/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/WrapPanel/WrapPanel.bind b/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/WrapPanel/WrapPanel.bind index ba0fdfb07a6..59cce15549b 100644 --- a/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/WrapPanel/WrapPanel.bind +++ b/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/WrapPanel/WrapPanel.bind @@ -3,7 +3,7 @@ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" - xmlns:wrapPanel="using:Microsoft.Toolkit.Uwp.UI.Controls.WrapPanel" + xmlns:controls="using:Microsoft.Toolkit.Uwp.UI.Controls" mc:Ignorable="d"> @@ -56,7 +56,7 @@ ItemTemplate="{StaticResource PhotoTemplate}"> - + diff --git a/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/WrapPanel/WrapPanelPage.xaml b/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/WrapPanel/WrapPanelPage.xaml index a66b8f5f007..45d5a6d54fa 100644 --- a/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/WrapPanel/WrapPanelPage.xaml +++ b/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/WrapPanel/WrapPanelPage.xaml @@ -3,7 +3,7 @@ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" - xmlns:wrapPanel="using:Microsoft.Toolkit.Uwp.UI.Controls.WrapPanel" + xmlns:controls="using:Microsoft.Toolkit.Uwp.UI.Controls" mc:Ignorable="d"> @@ -55,7 +55,7 @@ ItemTemplate="{StaticResource PhotoTemplate}"> - + diff --git a/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/WrapPanel/WrapPanelPage.xaml.cs b/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/WrapPanel/WrapPanelPage.xaml.cs index 793f63cff95..cf2df80a5e1 100644 --- a/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/WrapPanel/WrapPanelPage.xaml.cs +++ b/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/WrapPanel/WrapPanelPage.xaml.cs @@ -14,7 +14,7 @@ using System.Collections.ObjectModel; using Microsoft.Toolkit.Uwp.SampleApp.Data; using Microsoft.Toolkit.Uwp.UI; -using Microsoft.Toolkit.Uwp.UI.Controls.WrapPanel; +using Microsoft.Toolkit.Uwp.UI.Controls; using Windows.UI.Xaml.Controls; namespace Microsoft.Toolkit.Uwp.SampleApp.SamplePages diff --git a/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/samples.json b/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/samples.json index 3d3c759f847..c79b7eb37b9 100644 --- a/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/samples.json +++ b/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/samples.json @@ -167,15 +167,6 @@ "Icon": "/SamplePages/Loading/Loading.png", "DocumentationUrl": "https://raw.githubusercontent.com/Microsoft/UWPCommunityToolkit/dev/docs/controls/Loading.md" }, - { - "Name": "TextBoxMask", - "Type": "TextBoxMaskPage", - "About": "TextBox Mask property allows a user to more easily enter fixed width text in TextBox control where you would like them to enter the data in a certain format", - "CodeUrl": "https://github.com/Microsoft/UWPCommunityToolkit/tree/master/Microsoft.Toolkit.Uwp.UI.Controls/TextBoxMask", - "XamlCodeFile": "TextBoxMask.bind", - "Icon": "/SamplePages/TextBoxMask/TextBoxMask.png", - "DocumentationUrl": "https://raw.githubusercontent.com/Microsoft/UWPCommunityToolkit/dev/docs/controls/TextBoxMask.md" - }, { "Name": "Expander", "Type": "ExpanderPage", @@ -194,16 +185,6 @@ "Icon": "/SamplePages/TileControl/TileControl.png", "DocumentationUrl": "https://raw.githubusercontent.com/Microsoft/UWPCommunityToolkit/dev/docs/controls/TileControl.md" }, - { - "Name": "SurfaceDialTextboxHelper", - "Type": "SurfaceDialTextboxHelperPage", - "About": "Enables support for Surface Dial on any given Textbox. Rotate the Dial to change the numeric value of the Textbox.", - "CodeUrl": "https://github.com/Microsoft/UWPCommunityToolkit/tree/master/Microsoft.Toolkit.Uwp.UI.Controls/SurfaceDialTextboxHelper", - "XamlCodeFile": "SurfaceDialTextboxHelperCode.bind", - "Icon": "/SamplePages/SurfaceDialTextboxHelper/SurfaceDialTextboxHelper.png", - "BadgeUpdateVersionRequired": "Anniversary Update required", - "DocumentationUrl": "https://raw.githubusercontent.com/Microsoft/UWPCommunityToolkit/dev/docs/controls/SurfaceDialTextboxHelper.md" - }, { "Name": "WrapPanel", "Type": "WrapPanelPage", @@ -213,15 +194,6 @@ "Icon": "/SamplePages/WrapPanel/WrapPanel.png", "DocumentationUrl": "https://raw.githubusercontent.com/Microsoft/UWPCommunityToolkit/dev/docs/controls/WrapPanel.md" }, - { - "Name": "TextBoxRegex", - "Type": "TextBoxRegexPage", - "About": "TextBoxRegex helps developer to validate a TextBox with a regular expression using the Regex property.", - "CodeUrl": "https://github.com/Microsoft/UWPCommunityToolkit/tree/master/Microsoft.Toolkit.Uwp.UI.Controls/TextBoxRegex", - "XamlCodeFile": "TextBoxRegex.bind", - "Icon": "/SamplePages/TextBoxRegex/TextBoxRegex.png", - "DocumentationUrl": "https://raw.githubusercontent.com/Microsoft/UWPCommunityToolkit/dev/docs/controls/TextBoxRegex.md" - }, { "Name": "OrbitView", "Type": "OrbitViewPage", @@ -546,6 +518,21 @@ "CodeFile": "AdvancedCollectionView.bind", "Icon": "/SamplePages/AdvancedCollectionView/AdvancedCollectionView.png", "DocumentationUrl": "https://raw.githubusercontent.com/Microsoft/UWPCommunityToolkit/dev/docs/helpers/AdvancedCollectionView.md" + } + ] + }, + { + "Name": "Extensions", + "Icon": "Icons/Extensions.png", + "Samples": [ + { + "Name": "ListViewBase", + "Type": "ListViewBasePage", + "About": "Extensions for all controls that inherit from ListViewBase like ListView.", + "CodeUrl": "https://github.com/Microsoft/UWPCommunityToolkit/tree/master/Microsoft.Toolkit.Uwp.UI/Extensions/ListViewBase", + "XamlCodeFile": "ListViewBaseCode.bind", + "Icon": "/Assets/Helpers.png", + "DocumentationUrl": "https://raw.githubusercontent.com/Microsoft/UWPCommunityToolkit/dev/docs/extensions/ListViewBase.md" }, { "Name": "ViewExtensions", @@ -554,7 +541,35 @@ "CodeUrl": "https://github.com/Microsoft/UWPCommunityToolkit/tree/master/Microsoft.Toolkit.Uwp.UI/Extensions/ViewExtensions", "XamlCodeFile": "ViewExtensionsCode.bind", "Icon": "/Assets/Helpers.png", - "DocumentationUrl": "https://raw.githubusercontent.com/Microsoft/UWPCommunityToolkit/dev/docs/helpers/ViewExtensions.md" + "DocumentationUrl": "https://raw.githubusercontent.com/Microsoft/UWPCommunityToolkit/dev/docs/extensions/ViewExtensions.md" + }, + { + "Name": "TextBoxMask", + "Type": "TextBoxMaskPage", + "About": "TextBox Mask property allows a user to more easily enter fixed width text in TextBox control where you would like them to enter the data in a certain format", + "CodeUrl": "https://github.com/Microsoft/UWPCommunityToolkit/tree/master/Microsoft.Toolkit.Uwp.UI/Extensions/TextBoxMask", + "XamlCodeFile": "TextBoxMask.bind", + "Icon": "/SamplePages/TextBoxMask/TextBoxMask.png", + "DocumentationUrl": "https://raw.githubusercontent.com/Microsoft/UWPCommunityToolkit/dev/docs/extensions/TextBoxMask.md" + }, + { + "Name": "TextBoxRegex", + "Type": "TextBoxRegexPage", + "About": "TextBoxRegex helps developer to validate a TextBox with a regular expression using the Regex property.", + "CodeUrl": "https://github.com/Microsoft/UWPCommunityToolkit/tree/master/Microsoft.Toolkit.Uwp.UI/Extensions/TextBoxRegex", + "XamlCodeFile": "TextBoxRegex.bind", + "Icon": "/SamplePages/TextBoxRegex/TextBoxRegex.png", + "DocumentationUrl": "https://raw.githubusercontent.com/Microsoft/UWPCommunityToolkit/dev/docs/extensions/TextBoxRegex.md" + }, + { + "Name": "SurfaceDialTextbox", + "Type": "SurfaceDialTextboxPage", + "About": "Enables support for Surface Dial on any given Textbox. Rotate the Dial to change the numeric value of the Textbox.", + "CodeUrl": "https://github.com/Microsoft/UWPCommunityToolkit/tree/master/Microsoft.Toolkit.Uwp.UI/Extensions/SurfaceDialTextbox", + "XamlCodeFile": "SurfaceDialTextboxCode.bind", + "Icon": "/SamplePages/SurfaceDialTextbox/SurfaceDialTextbox.png", + "BadgeUpdateVersionRequired": "Anniversary Update required", + "DocumentationUrl": "https://raw.githubusercontent.com/Microsoft/UWPCommunityToolkit/dev/docs/extensions/SurfaceDialTextbox.md" } ] }, diff --git a/Microsoft.Toolkit.Uwp.UI.Controls/Menu/Menu.Events.cs b/Microsoft.Toolkit.Uwp.UI.Controls/Menu/Menu.Events.cs index ebf7936f8ed..a417ce1ea48 100644 --- a/Microsoft.Toolkit.Uwp.UI.Controls/Menu/Menu.Events.cs +++ b/Microsoft.Toolkit.Uwp.UI.Controls/Menu/Menu.Events.cs @@ -194,7 +194,7 @@ private static void RemoveElementFromCache(FrameworkElement descendant) private void Menu_Loaded(object sender, RoutedEventArgs e) { - _wrapPanel = ItemsPanelRoot as WrapPanel.WrapPanel; + _wrapPanel = ItemsPanelRoot as WrapPanel; if (_wrapPanel != null) { _wrapPanel.Orientation = Orientation; diff --git a/Microsoft.Toolkit.Uwp.UI.Controls/Menu/Menu.cs b/Microsoft.Toolkit.Uwp.UI.Controls/Menu/Menu.cs index 6d26f056bfb..ad08f192c1b 100644 --- a/Microsoft.Toolkit.Uwp.UI.Controls/Menu/Menu.cs +++ b/Microsoft.Toolkit.Uwp.UI.Controls/Menu/Menu.cs @@ -22,7 +22,7 @@ namespace Microsoft.Toolkit.Uwp.UI.Controls /// public partial class Menu : ItemsControl { - private WrapPanel.WrapPanel _wrapPanel; + private WrapPanel _wrapPanel; /// /// Initializes a new instance of the class. diff --git a/Microsoft.Toolkit.Uwp.UI.Controls/Menu/Menu.xaml b/Microsoft.Toolkit.Uwp.UI.Controls/Menu/Menu.xaml index 93925357737..9c99d8d8445 100644 --- a/Microsoft.Toolkit.Uwp.UI.Controls/Menu/Menu.xaml +++ b/Microsoft.Toolkit.Uwp.UI.Controls/Menu/Menu.xaml @@ -1,14 +1,14 @@  + xmlns:controls ="using:Microsoft.Toolkit.Uwp.UI.Controls">