Skip to content

Commit 859a000

Browse files
authored
Change editorConfig and excute it (#1694)
* Excute editorconfig WITHOUT AssemblyInfo.cs * Excute editorconfig WITHOUT AssemblyInfo.cs and PackIconKind.cs, PackIconDataFactory.cs. * Change csharp_new_line_before_open_brace in .editorconfig * Excute editorconfig WITHOUT AssemblyInfo.cs and PackIconKind.cs, PackIconDataFactory.cs.
1 parent 6d92ef3 commit 859a000

File tree

114 files changed

+1057
-1040
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

114 files changed

+1057
-1040
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ csharp_new_line_before_catch = true
2222
#place else statements on a new line
2323
csharp_new_line_before_else = true
2424
#require braces to be on a new line for methods, accessors, anonymous_methods, types, properties, control_blocks, and lambdas (also known as "Allman" style)
25-
csharp_new_line_before_open_brace = methods, accessors, anonymous_methods, types, properties, control_blocks, lambdas
25+
csharp_new_line_before_open_brace = all
2626

2727
#Formatting - organize using options
2828

MahMaterialDragablzMashUp/AnotherCommandImplementation.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,6 @@ public event EventHandler CanExecuteChanged
4848
public void Refresh()
4949
{
5050
CommandManager.InvalidateRequerySuggested();
51-
}
51+
}
5252
}
5353
}

MahMaterialDragablzMashUp/NotEmptyValidationRule.cs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33

44
namespace MaterialDesignColors.WpfExample
55
{
6-
public class NotEmptyValidationRule : ValidationRule
7-
{
8-
public override ValidationResult Validate(object value, CultureInfo cultureInfo)
9-
{
10-
return string.IsNullOrWhiteSpace((value ?? "").ToString())
11-
? new ValidationResult(false, "Field is required.")
12-
: ValidationResult.ValidResult;
13-
}
14-
}
6+
public class NotEmptyValidationRule : ValidationRule
7+
{
8+
public override ValidationResult Validate(object value, CultureInfo cultureInfo)
9+
{
10+
return string.IsNullOrWhiteSpace((value ?? "").ToString())
11+
? new ValidationResult(false, "Field is required.")
12+
: ValidationResult.ValidResult;
13+
}
14+
}
1515
}

MahMaterialDragablzMashUp/PaletteSelectorViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ private static void ApplyStyle(bool alternate)
3232
};
3333

3434
var styleKey = alternate ? "MaterialDesignAlternateTabablzControlStyle" : "MaterialDesignTabablzControlStyle";
35-
var style = (Style) resourceDictionary[styleKey];
35+
var style = (Style)resourceDictionary[styleKey];
3636

3737
foreach (var tabablzControl in Dragablz.TabablzControl.GetLoadedInstances())
3838
{

MahMaterialDragablzMashUp/XamlDisplayEx.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public static void SetButtonDock(DependencyObject element, Dock value)
1515

1616
public static Dock GetButtonDock(DependencyObject element)
1717
{
18-
return (Dock) element.GetValue(ButtonDockProperty);
18+
return (Dock)element.GetValue(ButtonDockProperty);
1919
}
2020
}
2121
}

MainDemo.Wpf/ButtonAssist.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public static void SetUniformCornerRadius(DependencyObject element, double value
1919

2020
public static double GetUniformCornerRadius(DependencyObject element)
2121
{
22-
return (double) element.GetValue(UniformCornerRadiusProperty);
22+
return (double)element.GetValue(UniformCornerRadiusProperty);
2323
}
2424
}
2525
}

MainDemo.Wpf/Buttons.xaml.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ private void Execute(object o)
2626
}
2727

2828
private void ButtonBase_OnClick(object sender, RoutedEventArgs e)
29-
{
29+
{
3030
Console.WriteLine("Just checking we haven't suppressed the button.");
31-
}
31+
}
3232

3333
private void PopupBox_OnOpened(object sender, RoutedEventArgs e)
3434
{
@@ -44,9 +44,9 @@ private void CountingButton_OnClick(object sender, RoutedEventArgs e)
4444
{
4545
if (CountingBadge.Badge == null || Equals(CountingBadge.Badge, ""))
4646
CountingBadge.Badge = 0;
47-
47+
4848
var next = int.Parse(CountingBadge.Badge.ToString()) + 1;
49-
49+
5050
CountingBadge.Badge = next < 21 ? (object)next : null;
5151
}
5252
}

MainDemo.Wpf/ButtonsViewModel.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ public ButtonsViewModel()
2626
//up the progress on the button as it would be with a progress bar.
2727
//and then hide the button, do whatever action you want to do
2828
new DispatcherTimer(
29-
TimeSpan.FromMilliseconds(100),
30-
DispatcherPriority.Normal,
31-
new EventHandler((o, e) =>
29+
TimeSpan.FromMilliseconds(100),
30+
DispatcherPriority.Normal,
31+
new EventHandler((o, e) =>
3232
{
3333
if (dismissRequested)
3434
{
@@ -92,7 +92,7 @@ public ButtonsViewModel()
9292
var currentProgressPercent = 100.0 / totalDuration * currentProgress;
9393

9494
SaveProgress = currentProgressPercent;
95-
95+
9696
if (SaveProgress >= 100)
9797
{
9898
IsSaveComplete = true;
@@ -113,7 +113,7 @@ public bool ShowDismissButton
113113
{
114114
get { return _showDismissButton; }
115115
set { this.MutateVerbose(ref _showDismissButton, value, RaisePropertyChanged()); }
116-
}
116+
}
117117

118118
public double DismissButtonProgress
119119
{

MainDemo.Wpf/Cards.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public Cards()
1515

1616
private void Flipper_OnIsFlippedChanged(object sender, RoutedPropertyChangedEventArgs<bool> e)
1717
{
18-
System.Diagnostics.Debug.WriteLine("Card is flipped = " + e.NewValue);
18+
System.Diagnostics.Debug.WriteLine("Card is flipped = " + e.NewValue);
1919
}
2020
}
2121
}

MainDemo.Wpf/Chips.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public partial class Chips : UserControl
1111
public Chips()
1212
{
1313
InitializeComponent();
14-
14+
1515
}
1616

1717
private void ButtonsDemoChip_OnClick(object sender, RoutedEventArgs e)

0 commit comments

Comments
 (0)