Skip to content

Fix warnings #1104

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/Wpf.Ui.Demo.Simple/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// This Source Code Form is subject to the terms of the MIT License.
// If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT.
// Copyright (C) Leszek Pomianowski and WPF UI Contributors.
// All Rights Reserved.

using System.Windows;

[assembly: ThemeInfo(
Expand Down
5 changes: 5 additions & 0 deletions src/Wpf.Ui.FontMapper/FontSource.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// This Source Code Form is subject to the terms of the MIT License.
// If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT.
// Copyright (C) Leszek Pomianowski and WPF UI Contributors.
// All Rights Reserved.

namespace Wpf.Ui.FontMapper;

class FontSource
Expand Down
7 changes: 6 additions & 1 deletion src/Wpf.Ui.FontMapper/GitTag.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
namespace Wpf.Ui.FontMapper;
// This Source Code Form is subject to the terms of the MIT License.
// If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT.
// Copyright (C) Leszek Pomianowski and WPF UI Contributors.
// All Rights Reserved.

namespace Wpf.Ui.FontMapper;

record GitTag(string Ref, string Node_Id, string Url);
7 changes: 6 additions & 1 deletion src/Wpf.Ui.Gallery/Views/Pages/Layout/ExpanderPage.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
using Wpf.Ui.Controls;
// This Source Code Form is subject to the terms of the MIT License.
// If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT.
// Copyright (C) Leszek Pomianowski and WPF UI Contributors.
// All Rights Reserved.

using Wpf.Ui.Controls;
using Wpf.Ui.Gallery.ControlsLookup;
using Wpf.Ui.Gallery.ViewModels.Pages.Layout;

Expand Down
2 changes: 1 addition & 1 deletion src/Wpf.Ui.SyntaxHighlight/Highlighter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT.
// Copyright (C) Leszek Pomianowski and WPF UI Contributors.
// All Rights Reserved.
//

// TODO: This class is work in progress.

using System;
Expand Down
2 changes: 1 addition & 1 deletion src/Wpf.Ui.Tray/Hicon.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT.
// Copyright (C) Leszek Pomianowski and WPF UI Contributors.
// All Rights Reserved.
//

// TODO: This class is the only reason for using System.Drawing.Common.
// It is worth looking for a way to get hIcon without using it.

Expand Down
2 changes: 1 addition & 1 deletion src/Wpf.Ui/Controls/Anchor/Anchor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT.
// Copyright (C) Leszek Pomianowski and WPF UI Contributors.
// All Rights Reserved.
//

// https://docs.microsoft.com/en-us/fluent-ui/web-components/components/anchor

// ReSharper disable once CheckNamespace
Expand Down
2 changes: 1 addition & 1 deletion src/Wpf.Ui/Controls/Badge/Badge.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT.
// Copyright (C) Leszek Pomianowski and WPF UI Contributors.
// All Rights Reserved.
//

// https://docs.microsoft.com/en-us/fluent-ui/web-components/components/badge

// ReSharper disable once CheckNamespace
Expand Down
6 changes: 3 additions & 3 deletions src/Wpf.Ui/Controls/BreadcrumbBar/BreadcrumbBar.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
// If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT.
// Copyright (C) Leszek Pomianowski and WPF UI Contributors.
// All Rights Reserved.
//
// Based on Windows UI Library
// Copyright(c) Microsoft Corporation.All rights reserved.

/* Based on Windows UI Library
Copyright(c) Microsoft Corporation.All rights reserved. */

using System.Collections.Specialized;
using System.Windows.Controls.Primitives;
Expand Down
4 changes: 2 additions & 2 deletions src/Wpf.Ui/Controls/BreadcrumbBar/BreadcrumbBarItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT.
// Copyright (C) Leszek Pomianowski and WPF UI Contributors.
// All Rights Reserved.
//
// Based on Windows UI Library

/* Based on Windows UI Library */

using Wpf.Ui.Converters;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT.
// Copyright (C) Leszek Pomianowski and WPF UI Contributors.
// All Rights Reserved.
//

// Based on Windows UI Library
// Copyright(c) Microsoft Corporation.All rights reserved.

Expand Down
4 changes: 2 additions & 2 deletions src/Wpf.Ui/Controls/ContextMenu/ContextMenuLoader.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT.
// Copyright (C) Leszek Pomianowski and WPF UI Contributors.
// All Rights Reserved.
//
// This Code is based on a StackOverflow-Answer: https://stackoverflow.com/a/56736232/9759874

/* This Code is based on a StackOverflow-Answer: https://stackoverflow.com/a/56736232/9759874 */

using System.Reflection;
using System.Windows.Threading;
Expand Down
8 changes: 4 additions & 4 deletions src/Wpf.Ui/Controls/DateTimeHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
// If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT.
// Copyright (C) Leszek Pomianowski and WPF UI Contributors.
// All Rights Reserved.
//

// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
//
// NOTE: This date time helper assumes it is working in a Gregorian calendar
// If we ever support non Gregorian calendars this class would need to be redesigned

/* NOTE: This date time helper assumes it is working in a Gregorian calendar
If we ever support non-Gregorian calendars this class would need to be redesigned */

using System.Diagnostics;
using System.Windows.Controls;
Expand Down
5 changes: 5 additions & 0 deletions src/Wpf.Ui/Controls/GridView/GridViewRowPresenter.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// This Source Code Form is subject to the terms of the MIT License.
// If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT.
// Copyright (C) Leszek Pomianowski and WPF UI Contributors.
// All Rights Reserved.

using System.Reflection;
using System.Windows.Controls;

Expand Down
12 changes: 6 additions & 6 deletions src/Wpf.Ui/Controls/ItemRange.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
// If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT.
// Copyright (C) Leszek Pomianowski and WPF UI Contributors.
// All Rights Reserved.
//
// Based on VirtualizingWrapPanel created by S. Bäumlisberger licensed under MIT license.
// https://github.com/sbaeumlisberger/VirtualizingWrapPanel
//
// Copyright (C) S. Bäumlisberger
// All Rights Reserved.

/* Based on VirtualizingWrapPanel created by S. Bäumlisberger licensed under MIT license.
https://github.com/sbaeumlisberger/VirtualizingWrapPanel

Copyright (C) S. Bäumlisberger
All Rights Reserved. */

namespace Wpf.Ui.Controls;

Expand Down
5 changes: 5 additions & 0 deletions src/Wpf.Ui/Controls/ListView/ListView.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// This Source Code Form is subject to the terms of the MIT License.
// If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT.
// Copyright (C) Leszek Pomianowski and WPF UI Contributors.
// All Rights Reserved.

namespace Wpf.Ui.Controls;

/// <summary>
Expand Down
6 changes: 3 additions & 3 deletions src/Wpf.Ui/Controls/NavigationView/INavigationView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
// If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT.
// Copyright (C) Leszek Pomianowski and WPF UI Contributors.
// All Rights Reserved.
//
// Based on Windows UI Library
// Copyright(c) Microsoft Corporation.All rights reserved.

/* Based on Windows UI Library
Copyright(c) Microsoft Corporation.All rights reserved. */

using System.Collections;
using System.Windows.Controls;
Expand Down
6 changes: 3 additions & 3 deletions src/Wpf.Ui/Controls/NavigationView/INavigationViewItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
// If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT.
// Copyright (C) Leszek Pomianowski and WPF UI Contributors.
// All Rights Reserved.
//
// Based on Windows UI Library
// Copyright(c) Microsoft Corporation.All rights reserved.

/* Based on Windows UI Library
Copyright(c) Microsoft Corporation.All rights reserved. */

using System.Collections;
using System.Windows.Controls;
Expand Down
6 changes: 3 additions & 3 deletions src/Wpf.Ui/Controls/NavigationView/NavigatedEventArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
// If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT.
// Copyright (C) Leszek Pomianowski and WPF UI Contributors.
// All Rights Reserved.
//
// Based on Windows UI Library
// Copyright(c) Microsoft Corporation.All rights reserved.

/* Based on Windows UI Library
Copyright(c) Microsoft Corporation.All rights reserved. */

// ReSharper disable once CheckNamespace
namespace Wpf.Ui.Controls;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT.
// Copyright (C) Leszek Pomianowski and WPF UI Contributors.
// All Rights Reserved.
//

// Based on Windows UI Library
// Copyright(c) Microsoft Corporation.All rights reserved.

Expand Down
2 changes: 1 addition & 1 deletion src/Wpf.Ui/Controls/NavigationView/NavigationCache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT.
// Copyright (C) Leszek Pomianowski and WPF UI Contributors.
// All Rights Reserved.
//

// Based on Windows UI Library
// Copyright(c) Microsoft Corporation.All rights reserved.

Expand Down
2 changes: 1 addition & 1 deletion src/Wpf.Ui/Controls/NavigationView/NavigationCacheMode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT.
// Copyright (C) Leszek Pomianowski and WPF UI Contributors.
// All Rights Reserved.
//

// Based on Windows UI Library
// Copyright(c) Microsoft Corporation.All rights reserved.

Expand Down
4 changes: 2 additions & 2 deletions src/Wpf.Ui/Controls/NavigationView/NavigationView.Base.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT.
// Copyright (C) Leszek Pomianowski and WPF UI Contributors.
// All Rights Reserved.
//
// Based on Windows UI Library https://docs.microsoft.com/en-us/uwp/api/windows.ui.xaml.controls.navigationview?view=winrt-22621

/* Based on Windows UI Library https://docs.microsoft.com/en-us/uwp/api/windows.ui.xaml.controls.navigationview?view=winrt-22621 */

using System.Collections;
using System.Collections.ObjectModel;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT.
// Copyright (C) Leszek Pomianowski and WPF UI Contributors.
// All Rights Reserved.
//

// Based on Windows UI Library
// Copyright(c) Microsoft Corporation.All rights reserved.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT.
// Copyright (C) Leszek Pomianowski and WPF UI Contributors.
// All Rights Reserved.
//
// Based on Windows UI Library

/* Based on Windows UI Library */

using System.Collections.ObjectModel;
using System.Diagnostics;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT.
// Copyright (C) Leszek Pomianowski and WPF UI Contributors.
// All Rights Reserved.
//

// Based on Windows UI Library
// Copyright(c) Microsoft Corporation.All rights reserved.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT.
// Copyright (C) Leszek Pomianowski and WPF UI Contributors.
// All Rights Reserved.
//

// Based on Windows UI Library
// Copyright(c) Microsoft Corporation.All rights reserved.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT.
// Copyright (C) Leszek Pomianowski and WPF UI Contributors.
// All Rights Reserved.
//

// Based on Windows UI Library
// Copyright(c) Microsoft Corporation.All rights reserved.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT.
// Copyright (C) Leszek Pomianowski and WPF UI Contributors.
// All Rights Reserved.
//
// Based on Windows UI Library

/* Based on Windows UI Library */

using System.Windows.Controls;
using System.Windows.Input;
Expand Down
4 changes: 2 additions & 2 deletions src/Wpf.Ui/Controls/NavigationView/NavigationViewItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT.
// Copyright (C) Leszek Pomianowski and WPF UI Contributors.
// All Rights Reserved.
//
// Based on Windows UI Library https://docs.microsoft.com/en-us/uwp/api/windows.ui.xaml.controls.navigationviewitem?view=winrt-22621

/* Based on Windows UI Library https://docs.microsoft.com/en-us/uwp/api/windows.ui.xaml.controls.navigationviewitem?view=winrt-22621 */

using System.Collections;
using System.Collections.ObjectModel;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT.
// Copyright (C) Leszek Pomianowski and WPF UI Contributors.
// All Rights Reserved.
//

// Based on Windows UI Library
// Copyright(c) Microsoft Corporation.All rights reserved.
//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT.
// Copyright (C) Leszek Pomianowski and WPF UI Contributors.
// All Rights Reserved.
//

// Based on Windows UI Library
// Copyright(c) Microsoft Corporation.All rights reserved.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT.
// Copyright (C) Leszek Pomianowski and WPF UI Contributors.
// All Rights Reserved.
//

// Based on Windows UI Library
// Copyright(c) Microsoft Corporation.All rights reserved.

Expand Down
2 changes: 1 addition & 1 deletion src/Wpf.Ui/Controls/NumberBox/INumberFormatter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT.
// Copyright (C) Leszek Pomianowski and WPF UI Contributors.
// All Rights Reserved.
//

// This Source Code is partially based on the source code provided by the .NET Foundation.

// ReSharper disable once CheckNamespace
Expand Down
2 changes: 1 addition & 1 deletion src/Wpf.Ui/Controls/NumberBox/INumberParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT.
// Copyright (C) Leszek Pomianowski and WPF UI Contributors.
// All Rights Reserved.
//

// This Source Code is partially based on the source code provided by the .NET Foundation.

// ReSharper disable once CheckNamespace
Expand Down
12 changes: 6 additions & 6 deletions src/Wpf.Ui/Controls/NumberBox/NumberBox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
// If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT.
// Copyright (C) Leszek Pomianowski and WPF UI Contributors.
// All Rights Reserved.
//

// This Source Code is partially based on the source code provided by the .NET Foundation.
//
// TODO: Mask (with placeholder); Clipboard paste;
// TODO: Constant decimals when formatting. Although this can actually be done with NumberFormatter.
// TODO: Disable expression by default
// TODO: Lock to digit characters only by property

/* TODO: Mask (with placeholder); Clipboard paste; */
/* TODO: Constant decimals when formatting. Although this can actually be done with NumberFormatter. */
/* TODO: Disable expression by default */
/* TODO: Lock to digit characters only by property */

using System.Windows.Data;
using System.Windows.Input;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT.
// Copyright (C) Leszek Pomianowski and WPF UI Contributors.
// All Rights Reserved.
//

// This Source Code is partially based on the source code provided by the .NET Foundation.

// ReSharper disable once CheckNamespace
Expand Down
Loading
Loading