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

@@ -29,7 +29,7 @@ namespace HandyControl.Controls
=> element.SetValue(ToYProperty, value);
public static double GetToY(DependencyObject element)
=> (double)element.GetValue(ToYProperty);
=> (double) element.GetValue(ToYProperty);
public static readonly DependencyProperty DurationProperty = DependencyProperty.RegisterAttached(
"Duration", typeof(Duration), typeof(FloatingBlock), new PropertyMetadata(new Duration(TimeSpan.FromSeconds(2))));
@@ -57,7 +57,7 @@ namespace HandyControl.Controls
public static double GetVerticalOffset(DependencyObject element)
=> (double) element.GetValue(VerticalOffsetProperty);
public static readonly DependencyProperty ContentTemplateProperty = DependencyProperty.RegisterAttached(
"ContentTemplate", typeof(DataTemplate), typeof(FloatingBlock), new PropertyMetadata(default(DataTemplate), OnDataChanged));
@@ -69,7 +69,7 @@ namespace HandyControl.Controls
public DataTemplate ContentTemplate
{
get => (DataTemplate)GetValue(ContentTemplateProperty);
get => (DataTemplate) GetValue(ContentTemplateProperty);
set => SetValue(ContentTemplateProperty, value);
}
@@ -80,7 +80,7 @@ namespace HandyControl.Controls
=> element.SetValue(ReadyToFloatProperty, ValueBoxes.BooleanBox(value));
private static bool GetReadyToFloat(DependencyObject element)
=> (bool)element.GetValue(ReadyToFloatProperty);
=> (bool) element.GetValue(ReadyToFloatProperty);
public static readonly DependencyProperty ContentProperty = DependencyProperty.RegisterAttached(
"Content", typeof(object), typeof(FloatingBlock), new PropertyMetadata(default, OnDataChanged));
@@ -48,7 +48,7 @@ namespace HandyControl.Controls
public bool Runaway
{
get => (bool)GetValue(RunawayProperty);
get => (bool) GetValue(RunawayProperty);
set => SetValue(RunawayProperty, ValueBoxes.BooleanBox(value));
}
@@ -57,7 +57,7 @@ namespace HandyControl.Controls
public bool AutoRun
{
get => (bool)GetValue(AutoRunProperty);
get => (bool) GetValue(AutoRunProperty);
set => SetValue(AutoRunProperty, ValueBoxes.BooleanBox(value));
}
@@ -66,7 +66,7 @@ namespace HandyControl.Controls
public Orientation Orientation
{
get => (Orientation)GetValue(OrientationProperty);
get => (Orientation) GetValue(OrientationProperty);
set => SetValue(OrientationProperty, value);
}
@@ -75,7 +75,7 @@ namespace HandyControl.Controls
public Duration Duration
{
get => (Duration)GetValue(DurationProperty);
get => (Duration) GetValue(DurationProperty);
set => SetValue(DurationProperty, value);
}
@@ -84,15 +84,15 @@ namespace HandyControl.Controls
public double Speed
{
get => (double)GetValue(SpeedProperty);
get => (double) GetValue(SpeedProperty);
set => SetValue(SpeedProperty, value);
}
public static readonly DependencyProperty IsRunningProperty = DependencyProperty.Register(
"IsRunning", typeof(bool), typeof(RunningBlock), new PropertyMetadata(ValueBoxes.TrueBox, (o, args) =>
{
var ctl = (RunningBlock)o;
var v = (bool)args.NewValue;
var ctl = (RunningBlock) o;
var v = (bool) args.NewValue;
if (v)
{
ctl._storyboard?.Resume();
@@ -105,7 +105,7 @@ namespace HandyControl.Controls
public bool IsRunning
{
get => (bool)GetValue(IsRunningProperty);
get => (bool) GetValue(IsRunningProperty);
set => SetValue(IsRunningProperty, ValueBoxes.BooleanBox(value));
}
@@ -114,7 +114,7 @@ namespace HandyControl.Controls
public bool AutoReverse
{
get => (bool)GetValue(AutoReverseProperty);
get => (bool) GetValue(AutoReverseProperty);
set => SetValue(AutoReverseProperty, ValueBoxes.BooleanBox(value));
}
@@ -190,4 +190,4 @@ namespace HandyControl.Controls
_storyboard.Begin();
}
}
}
}
@@ -62,4 +62,4 @@ namespace HandyControl.Controls
private static Size ConvertThickness2Size(Thickness th) => new Size(th.Left + th.Right, th.Top + th.Bottom);
}
}
}
@@ -24,7 +24,7 @@ namespace HandyControl.Controls
// Because Nullable<bool> unboxing is very slow (uses reflection) first we cast to bool
var value = GetValue(IsCheckedProperty);
// ReSharper disable once RedundantExplicitNullableCreation
return value == null ? new bool?() : new bool?((bool)value);
return value == null ? new bool?() : new bool?((bool) value);
}
set => SetValue(IsCheckedProperty, value.HasValue ? ValueBoxes.BooleanBox(value.Value) : null);
}
@@ -56,4 +56,4 @@ namespace HandyControl.Controls
set => SetValue(IndeterminateContentProperty, value);
}
}
}
}