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

@@ -82,12 +82,12 @@ namespace HandyControl.Controls
}
public static readonly DependencyProperty StepIndexProperty = DependencyProperty.Register(
"StepIndex", typeof(int), typeof(StepBar), new FrameworkPropertyMetadata(ValueBoxes.Int0Box,
"StepIndex", typeof(int), typeof(StepBar), new FrameworkPropertyMetadata(ValueBoxes.Int0Box,
FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnStepIndexChanged, CoerceStepIndex));
private static object CoerceStepIndex(DependencyObject d, object basevalue)
{
var ctl = (StepBar)d;
var ctl = (StepBar) d;
var stepIndex = (int) basevalue;
if (ctl.Items.Count == 0 && stepIndex > 0)
{
@@ -105,7 +105,7 @@ namespace HandyControl.Controls
private static void OnStepIndexChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
var ctl = (StepBar) d;
ctl.OnStepIndexChanged((int)e.NewValue);
ctl.OnStepIndexChanged((int) e.NewValue);
}
private void OnStepIndexChanged(int stepIndex)
@@ -129,7 +129,7 @@ namespace HandyControl.Controls
if (ItemContainerGenerator.ContainerFromIndex(stepIndex) is StepBarItem stepItemSelected)
stepItemSelected.Status = StepStatus.UnderWay;
_progressBarBack?.BeginAnimation(RangeBase.ValueProperty, AnimationHelper.CreateAnimation(stepIndex));
RaiseEvent(new FunctionEventArgs<int>(StepChangedEvent, this)
{
Info = stepIndex
@@ -138,7 +138,7 @@ namespace HandyControl.Controls
public int StepIndex
{
get => (int)GetValue(StepIndexProperty);
get => (int) GetValue(StepIndexProperty);
set => SetValue(StepIndexProperty, value);
}
@@ -147,7 +147,7 @@ namespace HandyControl.Controls
public Dock Dock
{
get => (Dock)GetValue(DockProperty);
get => (Dock) GetValue(DockProperty);
set => SetValue(DockProperty, value);
}
@@ -181,4 +181,4 @@ namespace HandyControl.Controls
public void Prev() => StepIndex--;
}
}
}
@@ -39,4 +39,4 @@ namespace HandyControl.Controls
internal set => SetValue(StatusProperty, value);
}
}
}
}