Skip to content

Commit

Permalink
Fix: Fixed issue where HorizontalMultitaskingControl could have negat…
Browse files Browse the repository at this point in the history
…ive margin (#10888)
  • Loading branch information
cinqmilleans authored Feb 7, 2023
1 parent 0308c5c commit f61f49b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ public HorizontalMultitaskingControl()
var flowDirectionSetting = new Microsoft.Windows.ApplicationModel.Resources.ResourceManager().CreateResourceContext().QualifierValues["LayoutDirection"];

var appWindowTitleBar = App.GetAppWindow(App.Window).TitleBar;
RightPaddingColumn.Width = (flowDirectionSetting == "RTL") ? new GridLength(appWindowTitleBar.LeftInset) : new GridLength(appWindowTitleBar.RightInset);
double rightPaddingColumnWidth = flowDirectionSetting is "RTL" ? appWindowTitleBar.LeftInset : appWindowTitleBar.RightInset;
RightPaddingColumn.Width = new GridLength(rightPaddingColumnWidth >= 0 ? rightPaddingColumnWidth : 0);
}

private void HorizontalTabView_TabItemsChanged(TabView sender, Windows.Foundation.Collections.IVectorChangedEventArgs args)
Expand Down

0 comments on commit f61f49b

Please sign in to comment.