Skip to content

Commit 673179b

Browse files
authored
Code cleanup (#1906)
C# code cleanup
1 parent 8d4e06a commit 673179b

File tree

207 files changed

+1253
-1810
lines changed

Some content is hidden

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

207 files changed

+1253
-1810
lines changed

WinUIGallery/App.xaml.cs

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,16 @@
1-
//*********************************************************
2-
//
3-
// Copyright (c) Microsoft. All rights reserved.
4-
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
5-
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
6-
// IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
7-
// PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
8-
//
9-
//*********************************************************
10-
using System;
11-
using System.Diagnostics;
12-
using System.Linq;
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
134
using Microsoft.UI.Xaml;
145
using Microsoft.UI.Xaml.Controls;
156
using Microsoft.UI.Xaml.Navigation;
167
using Microsoft.Windows.AppLifecycle;
178
using Microsoft.Windows.AppNotifications;
189
using Microsoft.Windows.AppNotifications.Builder;
1910
using Microsoft.Windows.BadgeNotifications;
11+
using System;
12+
using System.Diagnostics;
13+
using System.Linq;
2014
using Windows.ApplicationModel.Activation;
2115
using WinUIGallery.Helpers;
2216
using WinUIGallery.Pages;

WinUIGallery/Controls/ControlExample.xaml.cs

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,13 @@
1-
//*********************************************************
2-
//
3-
// Copyright (c) Microsoft. All rights reserved.
4-
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
5-
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
6-
// IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
7-
// PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
8-
//
9-
//*********************************************************
10-
using System;
11-
using System.Collections.Generic;
12-
using System.Linq;
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
134
using Microsoft.UI.Xaml;
145
using Microsoft.UI.Xaml.Controls;
156
using Microsoft.UI.Xaml.Markup;
167
using Microsoft.UI.Xaml.Media;
8+
using System;
9+
using System.Collections.Generic;
10+
using System.Linq;
1711
using Windows.Foundation;
1812

1913
namespace WinUIGallery.Controls;
@@ -82,7 +76,8 @@ public sealed partial class ControlExample : UserControl
8276
public string HeaderText
8377
{
8478
get { return (string)GetValue(HeaderTextProperty); }
85-
set {
79+
set
80+
{
8681
SetValue(HeaderTextProperty, value);
8782
HeaderTextPresenter.Visibility = string.IsNullOrEmpty(HeaderText) ? Visibility.Collapsed : Visibility.Visible;
8883
}

WinUIGallery/Controls/CopyButton.xaml.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
// Copyright (c) Microsoft Corporation and Contributors.
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License.
33

4-
using WinUIGallery.Helpers;
54
using Microsoft.UI.Xaml;
65
using Microsoft.UI.Xaml.Controls;
76
using Microsoft.UI.Xaml.Media.Animation;
7+
using WinUIGallery.Helpers;
88

99
namespace WinUIGallery.Controls;
1010

WinUIGallery/Controls/DesignGuidance/ColorPageExample.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) Microsoft Corporation and Contributors.
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License.
33

44
using Microsoft.UI.Xaml;

WinUIGallery/Controls/DesignGuidance/ColorSections/BackgroundSection.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) Microsoft Corporation and Contributors.
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License.
33

44
using Microsoft.UI.Xaml.Controls;

WinUIGallery/Controls/DesignGuidance/ColorSections/FillSection.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) Microsoft Corporation and Contributors.
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License.
33

44
using Microsoft.UI.Xaml.Controls;

WinUIGallery/Controls/DesignGuidance/ColorSections/HighContrastSection.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) Microsoft Corporation and Contributors.
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License.
33

44
using Microsoft.UI.Xaml.Controls;

WinUIGallery/Controls/DesignGuidance/ColorSections/SignalSection.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) Microsoft Corporation and Contributors.
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License.
33

44
using Microsoft.UI.Xaml.Controls;

WinUIGallery/Controls/DesignGuidance/ColorSections/StrokeSection.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) Microsoft Corporation and Contributors.
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License.
33

44
using Microsoft.UI.Xaml.Controls;

WinUIGallery/Controls/DesignGuidance/ColorSections/TextSection.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) Microsoft Corporation and Contributors.
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License.
33

44
using Microsoft.UI.Xaml.Controls;

0 commit comments

Comments
 (0)