From 0053f1e9e625833fa57ad67bb33a9e4330d84ee4 Mon Sep 17 00:00:00 2001 From: T Paine Date: Thu, 3 Oct 2019 15:18:38 -0700 Subject: [PATCH] TabView: Fixed ctrl-click to deselect and tab min/max width. (#1393) * TabView: Fixed ctrl-click to deselect and tab min/max width. * CR updates * Added to test. --- dev/TabView/InteractionTests/TabViewTests.cs | 27 ++++++++++++++++++++ dev/TabView/TabView.cpp | 9 ++++--- dev/TabView/TabViewItem.cpp | 14 ++++++++++ dev/TabView/TestUI/TabViewPage.xaml | 4 ++- dev/TabView/TestUI/TabViewPage.xaml.cs | 8 +++++- 5 files changed, 56 insertions(+), 6 deletions(-) diff --git a/dev/TabView/InteractionTests/TabViewTests.cs b/dev/TabView/InteractionTests/TabViewTests.cs index 7102513a73..d2d839d6f4 100644 --- a/dev/TabView/InteractionTests/TabViewTests.cs +++ b/dev/TabView/InteractionTests/TabViewTests.cs @@ -22,6 +22,7 @@ using Microsoft.Windows.Apps.Test.Foundation.Patterns; using Microsoft.Windows.Apps.Test.Foundation.Waiters; using Windows.UI.Xaml.Media; +using Windows.Devices.Input; namespace Windows.UI.Xaml.Tests.MUXControls.InteractionTests { @@ -71,6 +72,21 @@ public void SelectionTest() Button selectIndexButton = FindElement.ByName - + diff --git a/dev/TabView/TestUI/TabViewPage.xaml.cs b/dev/TabView/TestUI/TabViewPage.xaml.cs index 7ee0ef8038..1620deec5f 100644 --- a/dev/TabView/TestUI/TabViewPage.xaml.cs +++ b/dev/TabView/TestUI/TabViewPage.xaml.cs @@ -319,9 +319,15 @@ public void GetScrollButtonsVisible_Click(object sender, RoutedEventArgs e) } } - private void TabViewSizingPageButtton_Click(object sender, RoutedEventArgs e) + private void TabViewSizingPageButton_Click(object sender, RoutedEventArgs e) { this.Frame.Navigate(typeof(TabViewSizingPage)); } + + private void ShortLongTextButton_Click(object sender, RoutedEventArgs e) + { + FirstTab.Header = "s"; + LongHeaderTab.Header = "long long long long long long long long"; + } } }