diff --git a/dev/TabView/TabView.cpp b/dev/TabView/TabView.cpp index ced8432f2a..c26bc15dc8 100755 --- a/dev/TabView/TabView.cpp +++ b/dev/TabView/TabView.cpp @@ -1097,11 +1097,11 @@ void TabView::UpdateTabWidths(bool shouldUpdateWidths, bool fillAllAvailableSpac { const winrt::Size rightContentSize = rightContentPresenter.DesiredSize(); - if (const auto item = TabStripFooter().try_as()) + if (const auto tabStripFooter = TabStripFooter().try_as()) { - const auto minWidth = item.MinWidth(); - const auto width = item.Width(); - const auto footerWidth = [this,width,minWidth,rightContentSize]() { + const auto minWidth = tabStripFooter.MinWidth(); + const auto width = tabStripFooter.Width(); + const auto footerWidth = [this, width, minWidth, rightContentSize]() { if (minWidth < width) { return rightContentSize.Width < width ? width : rightContentSize.Width; diff --git a/dev/TabView/TestUI/TabViewPage.xaml b/dev/TabView/TestUI/TabViewPage.xaml index 7bf8105e65..fe6c32afb0 100644 --- a/dev/TabView/TestUI/TabViewPage.xaml +++ b/dev/TabView/TestUI/TabViewPage.xaml @@ -170,9 +170,6 @@ - + @@ -278,7 +277,7 @@ TabStripDragOver="OnTabStripDragOver" TabStripDrop="OnTabStripDrop"> - +