Automated dotnet-format update

This commit is contained in:
github-actions-dotnet-formatter[bot] committed 2022-06-13 15:46:21 +00:00
1 parent 28a485fd18
commit 5ce14330e4
1 file changed
+3 -3
@@ -124,7 +124,7 @@ namespace HandyControl.Controls
base.OnApplyTemplate(); base.OnApplyTemplate();
_tabHeaderItemsControl = GetTemplateChild(TabHeaderItemsControl) as ItemsControl; _tabHeaderItemsControl = GetTemplateChild(TabHeaderItemsControl) as ItemsControl;
if (_tabHeaderItemsControl is {ItemsSource: null}) if (_tabHeaderItemsControl is { ItemsSource: null })
{ {
_tabHeaderItemsControl.ItemsSource = _tabHeaderItemsSource; _tabHeaderItemsControl.ItemsSource = _tabHeaderItemsSource;
} }
@@ -237,7 +237,7 @@ namespace HandyControl.Controls
{ {
base.OnSelectionChanged(e); base.OnSelectionChanged(e);
if (e.AddedItems is not {Count: > 0}) if (e.AddedItems is not { Count: > 0 })
{ {
return; return;
} }
@@ -321,7 +321,7 @@ namespace HandyControl.Controls
var count = Items.Count; var count = Items.Count;
for (var index = 0; index < count; ++index) for (var index = 0; index < count; ++index)
{ {
if (ItemContainerGenerator.ContainerFromIndex(index) is RibbonTab {IsVisible: true}) if (ItemContainerGenerator.ContainerFromIndex(index) is RibbonTab { IsVisible: true })
{ {
return index; return index;
} }