Automated dotnet-format update

This commit is contained in:
github-actions-dotnet-formatter[bot] committed 2020-12-04 15:12:55 +00:00
1 parent ad4c2f68aa
commit 2af18c2d38
403 files changed
+1569 -1567

No files matched your search

@@ -58,7 +58,7 @@ namespace HandyControl.Controls
/// </summary>
public bool IsAnimationEnabled
{
get => (bool)GetValue(IsAnimationEnabledProperty);
get => (bool) GetValue(IsAnimationEnabledProperty);
set => SetValue(IsAnimationEnabledProperty, ValueBoxes.BooleanBox(value));
}
@@ -73,7 +73,7 @@ namespace HandyControl.Controls
/// </summary>
public bool IsDraggable
{
get => (bool)GetValue(IsDraggableProperty);
get => (bool) GetValue(IsDraggableProperty);
set => SetValue(IsDraggableProperty, ValueBoxes.BooleanBox(value));
}
@@ -94,7 +94,7 @@ namespace HandyControl.Controls
/// </summary>
public bool ShowCloseButton
{
get => (bool)GetValue(ShowCloseButtonProperty);
get => (bool) GetValue(ShowCloseButtonProperty);
set => SetValue(ShowCloseButtonProperty, value);
}
@@ -115,7 +115,7 @@ namespace HandyControl.Controls
/// </summary>
public bool ShowContextMenu
{
get => (bool)GetValue(ShowContextMenuProperty);
get => (bool) GetValue(ShowContextMenuProperty);
set => SetValue(ShowContextMenuProperty, value);
}
@@ -130,7 +130,7 @@ namespace HandyControl.Controls
/// </summary>
public bool IsTabFillEnabled
{
get => (bool)GetValue(IsTabFillEnabledProperty);
get => (bool) GetValue(IsTabFillEnabledProperty);
set => SetValue(IsTabFillEnabledProperty, ValueBoxes.BooleanBox(value));
}
@@ -145,7 +145,7 @@ namespace HandyControl.Controls
/// </summary>
public double TabItemWidth
{
get => (double)GetValue(TabItemWidthProperty);
get => (double) GetValue(TabItemWidthProperty);
set => SetValue(TabItemWidthProperty, value);
}
@@ -160,7 +160,7 @@ namespace HandyControl.Controls
/// </summary>
public double TabItemHeight
{
get => (double)GetValue(TabItemHeightProperty);
get => (double) GetValue(TabItemHeightProperty);
set => SetValue(TabItemHeightProperty, value);
}
@@ -299,7 +299,7 @@ namespace HandyControl.Controls
{
if (!IsTabFillEnabled)
{
_itemShowCount = (int)(ActualWidth / TabItemWidth);
_itemShowCount = (int) (ActualWidth / TabItemWidth);
_buttonOverflow?.Show(ShowOverflowButton && Items.Count > 0 && Items.Count >= _itemShowCount);
}
}
@@ -321,7 +321,7 @@ namespace HandyControl.Controls
_buttonOverflow.Menu.Items.Clear();
for (var i = 0; i < Items.Count; i++)
{
if(!(ItemContainerGenerator.ContainerFromIndex(i) is TabItem item)) continue;
if (!(ItemContainerGenerator.ContainerFromIndex(i) is TabItem item)) continue;
var menuItem = new MenuItem
{
@@ -429,4 +429,4 @@ namespace HandyControl.Controls
protected override DependencyObject GetContainerForItemOverride() => new TabItem();
}
}
}