From 51e5a989028947f543122aabf6e98ab6e271eb49 Mon Sep 17 00:00:00 2001 From: Mahdi Hosseini Date: Wed, 4 Dec 2024 13:38:30 +0330 Subject: [PATCH] Fix #6 --- ThirdPartyNotices.txt | 25 +++++++++++++++++++ .../Controls/ImageEx/ImageEx.Members.cs | 5 +++- .../Controls/ImageEx/ImageEx.cs | 6 ++++- .../Controls/ImageEx/ImageExBase.Members.cs | 5 +++- .../ImageEx/ImageExBase.Placeholder.cs | 5 +++- .../Controls/ImageEx/ImageExBase.Source.cs | 5 +++- .../Controls/ImageEx/ImageExBase.cs | 5 +++- .../ImageEx/ImageExFailedEventArgs.cs | 5 +++- .../ImageEx/ImageExOpenedEventArgs.cs | 5 +++- .../PagerControl/PagerControl.Constants.cs | 5 +++- .../PagerControl/PagerControl.Properties.cs | 5 +++- .../Ported/PagerControl/PagerControl.cs | 5 +++- .../PagerControlAutomationPeer.cs | 5 +++- .../PagerControlButtonVisibility.cs | 5 +++- .../PagerControl/PagerControlDisplayMode.cs | 5 +++- ...gerControlSelectedIndexChangedEventArgs.cs | 5 +++- .../PagerControlTemplateSettings.cs | 5 +++- .../Controls/Ported/SwitchPresenter/Case.cs | 5 +++- .../Ported/SwitchPresenter/CaseCollection.cs | 5 +++- .../Ported/SwitchPresenter/SwitchConverter.cs | 5 +++- .../Ported/SwitchPresenter/SwitchHelpers.cs | 5 +++- .../Ported/SwitchPresenter/SwitchPresenter.cs | 5 +++- .../Ported/TileControl/ImageAlignment.cs | 7 ++++-- .../Ported/TileControl/ScrollOrientation.cs | 7 ++++-- .../TileControl/TileControl.Properties.cs | 5 +++- .../Ported/TileControl/TileControl.cs | 5 +++- 26 files changed, 128 insertions(+), 27 deletions(-) create mode 100644 ThirdPartyNotices.txt diff --git a/ThirdPartyNotices.txt b/ThirdPartyNotices.txt new file mode 100644 index 0000000..c07ff14 --- /dev/null +++ b/ThirdPartyNotices.txt @@ -0,0 +1,25 @@ +This project includes third-party software components. Below is a list of those components along with their respective licenses and copyright information. + +CommunityToolkit +Repository: https://github.com/CommunityToolkit/Windows +License: MIT License +Copyright (c) Microsoft Corporation and Contributors + +MIT License: +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/dev/DevWinUI.Controls/Controls/ImageEx/ImageEx.Members.cs b/dev/DevWinUI.Controls/Controls/ImageEx/ImageEx.Members.cs index ef9a18c..6888bb7 100644 --- a/dev/DevWinUI.Controls/Controls/ImageEx/ImageEx.Members.cs +++ b/dev/DevWinUI.Controls/Controls/ImageEx/ImageEx.Members.cs @@ -1,4 +1,7 @@ -using Windows.Media.Casting; +// 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. +using Windows.Media.Casting; namespace DevWinUI; /// diff --git a/dev/DevWinUI.Controls/Controls/ImageEx/ImageEx.cs b/dev/DevWinUI.Controls/Controls/ImageEx/ImageEx.cs index 7aada61..30fb7fc 100644 --- a/dev/DevWinUI.Controls/Controls/ImageEx/ImageEx.cs +++ b/dev/DevWinUI.Controls/Controls/ImageEx/ImageEx.cs @@ -1,4 +1,8 @@ -namespace DevWinUI; +// 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. + +namespace DevWinUI; /// /// The ImageEx control extends the default Image platform control improving the performance and responsiveness of your Apps. diff --git a/dev/DevWinUI.Controls/Controls/ImageEx/ImageExBase.Members.cs b/dev/DevWinUI.Controls/Controls/ImageEx/ImageExBase.Members.cs index 236e858..804e842 100644 --- a/dev/DevWinUI.Controls/Controls/ImageEx/ImageExBase.Members.cs +++ b/dev/DevWinUI.Controls/Controls/ImageEx/ImageExBase.Members.cs @@ -1,4 +1,7 @@ -namespace DevWinUI; +// 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. +namespace DevWinUI; /// /// Base Code for ImageEx /// diff --git a/dev/DevWinUI.Controls/Controls/ImageEx/ImageExBase.Placeholder.cs b/dev/DevWinUI.Controls/Controls/ImageEx/ImageExBase.Placeholder.cs index f4f1ccb..96b189c 100644 --- a/dev/DevWinUI.Controls/Controls/ImageEx/ImageExBase.Placeholder.cs +++ b/dev/DevWinUI.Controls/Controls/ImageEx/ImageExBase.Placeholder.cs @@ -1,4 +1,7 @@ -namespace DevWinUI; +// 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. +namespace DevWinUI; /// /// Base code for ImageEx diff --git a/dev/DevWinUI.Controls/Controls/ImageEx/ImageExBase.Source.cs b/dev/DevWinUI.Controls/Controls/ImageEx/ImageExBase.Source.cs index 906235a..f898d66 100644 --- a/dev/DevWinUI.Controls/Controls/ImageEx/ImageExBase.Source.cs +++ b/dev/DevWinUI.Controls/Controls/ImageEx/ImageExBase.Source.cs @@ -1,4 +1,7 @@ -namespace DevWinUI; +// 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. +namespace DevWinUI; /// /// Base code for ImageEx /// diff --git a/dev/DevWinUI.Controls/Controls/ImageEx/ImageExBase.cs b/dev/DevWinUI.Controls/Controls/ImageEx/ImageExBase.cs index 1a410f0..7f83893 100644 --- a/dev/DevWinUI.Controls/Controls/ImageEx/ImageExBase.cs +++ b/dev/DevWinUI.Controls/Controls/ImageEx/ImageExBase.cs @@ -1,4 +1,7 @@ -using CommunityToolkit.WinUI; +// 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. +using CommunityToolkit.WinUI; using Windows.Foundation; diff --git a/dev/DevWinUI.Controls/Controls/ImageEx/ImageExFailedEventArgs.cs b/dev/DevWinUI.Controls/Controls/ImageEx/ImageExFailedEventArgs.cs index 22f7a69..6b770da 100644 --- a/dev/DevWinUI.Controls/Controls/ImageEx/ImageExFailedEventArgs.cs +++ b/dev/DevWinUI.Controls/Controls/ImageEx/ImageExFailedEventArgs.cs @@ -1,4 +1,7 @@ -namespace DevWinUI; +// 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. +namespace DevWinUI; /// /// A delegate for failed. /// diff --git a/dev/DevWinUI.Controls/Controls/ImageEx/ImageExOpenedEventArgs.cs b/dev/DevWinUI.Controls/Controls/ImageEx/ImageExOpenedEventArgs.cs index 09d14c9..ea757c4 100644 --- a/dev/DevWinUI.Controls/Controls/ImageEx/ImageExOpenedEventArgs.cs +++ b/dev/DevWinUI.Controls/Controls/ImageEx/ImageExOpenedEventArgs.cs @@ -1,4 +1,7 @@ -namespace DevWinUI; +// 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. +namespace DevWinUI; /// /// A delegate for opened. /// diff --git a/dev/DevWinUI.Controls/Controls/Ported/PagerControl/PagerControl.Constants.cs b/dev/DevWinUI.Controls/Controls/Ported/PagerControl/PagerControl.Constants.cs index f411c64..e4e142f 100644 --- a/dev/DevWinUI.Controls/Controls/Ported/PagerControl/PagerControl.Constants.cs +++ b/dev/DevWinUI.Controls/Controls/Ported/PagerControl/PagerControl.Constants.cs @@ -1,4 +1,7 @@ -namespace DevWinUI; +// 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. +namespace DevWinUI; public partial class PagerControl { diff --git a/dev/DevWinUI.Controls/Controls/Ported/PagerControl/PagerControl.Properties.cs b/dev/DevWinUI.Controls/Controls/Ported/PagerControl/PagerControl.Properties.cs index 495a1df..516b560 100644 --- a/dev/DevWinUI.Controls/Controls/Ported/PagerControl/PagerControl.Properties.cs +++ b/dev/DevWinUI.Controls/Controls/Ported/PagerControl/PagerControl.Properties.cs @@ -1,4 +1,7 @@ -using System.Windows.Input; +// 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. +using System.Windows.Input; using Windows.Foundation; namespace DevWinUI; diff --git a/dev/DevWinUI.Controls/Controls/Ported/PagerControl/PagerControl.cs b/dev/DevWinUI.Controls/Controls/Ported/PagerControl/PagerControl.cs index 1e37e00..fe2d004 100644 --- a/dev/DevWinUI.Controls/Controls/Ported/PagerControl/PagerControl.cs +++ b/dev/DevWinUI.Controls/Controls/Ported/PagerControl/PagerControl.cs @@ -1,4 +1,7 @@ -using Microsoft.UI.Xaml.Automation; +// 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. +using Microsoft.UI.Xaml.Automation; using Microsoft.UI.Xaml.Automation.Peers; using Microsoft.UI.Xaml.Input; using System.Collections.ObjectModel; diff --git a/dev/DevWinUI.Controls/Controls/Ported/PagerControl/PagerControlAutomationPeer.cs b/dev/DevWinUI.Controls/Controls/Ported/PagerControl/PagerControlAutomationPeer.cs index 25223da..44ab2f7 100644 --- a/dev/DevWinUI.Controls/Controls/Ported/PagerControl/PagerControlAutomationPeer.cs +++ b/dev/DevWinUI.Controls/Controls/Ported/PagerControl/PagerControlAutomationPeer.cs @@ -1,4 +1,7 @@ -using Microsoft.UI.Xaml.Automation; +// 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. +using Microsoft.UI.Xaml.Automation; using Microsoft.UI.Xaml.Automation.Peers; namespace DevWinUI; diff --git a/dev/DevWinUI.Controls/Controls/Ported/PagerControl/PagerControlButtonVisibility.cs b/dev/DevWinUI.Controls/Controls/Ported/PagerControl/PagerControlButtonVisibility.cs index 1e7e4cd..bd6480d 100644 --- a/dev/DevWinUI.Controls/Controls/Ported/PagerControl/PagerControlButtonVisibility.cs +++ b/dev/DevWinUI.Controls/Controls/Ported/PagerControl/PagerControlButtonVisibility.cs @@ -1,4 +1,7 @@ -namespace DevWinUI; +// 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. +namespace DevWinUI; public enum PagerControlButtonVisibility { diff --git a/dev/DevWinUI.Controls/Controls/Ported/PagerControl/PagerControlDisplayMode.cs b/dev/DevWinUI.Controls/Controls/Ported/PagerControl/PagerControlDisplayMode.cs index 664a5b7..699328d 100644 --- a/dev/DevWinUI.Controls/Controls/Ported/PagerControl/PagerControlDisplayMode.cs +++ b/dev/DevWinUI.Controls/Controls/Ported/PagerControl/PagerControlDisplayMode.cs @@ -1,4 +1,7 @@ -namespace DevWinUI; +// 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. +namespace DevWinUI; public enum PagerControlDisplayMode { diff --git a/dev/DevWinUI.Controls/Controls/Ported/PagerControl/PagerControlSelectedIndexChangedEventArgs.cs b/dev/DevWinUI.Controls/Controls/Ported/PagerControl/PagerControlSelectedIndexChangedEventArgs.cs index a71b5eb..d652c6f 100644 --- a/dev/DevWinUI.Controls/Controls/Ported/PagerControl/PagerControlSelectedIndexChangedEventArgs.cs +++ b/dev/DevWinUI.Controls/Controls/Ported/PagerControl/PagerControlSelectedIndexChangedEventArgs.cs @@ -1,3 +1,6 @@ -namespace DevWinUI; +// 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. +namespace DevWinUI; public record PagerControlSelectedIndexChangedEventArgs(int NewPageIndex, int PreviousPageIndex) {} diff --git a/dev/DevWinUI.Controls/Controls/Ported/PagerControl/PagerControlTemplateSettings.cs b/dev/DevWinUI.Controls/Controls/Ported/PagerControl/PagerControlTemplateSettings.cs index e21ba4d..c021d6f 100644 --- a/dev/DevWinUI.Controls/Controls/Ported/PagerControl/PagerControlTemplateSettings.cs +++ b/dev/DevWinUI.Controls/Controls/Ported/PagerControl/PagerControlTemplateSettings.cs @@ -1,4 +1,7 @@ -namespace DevWinUI; +// 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. +namespace DevWinUI; public partial class PagerControlTemplateSettings : DependencyObject { diff --git a/dev/DevWinUI.Controls/Controls/Ported/SwitchPresenter/Case.cs b/dev/DevWinUI.Controls/Controls/Ported/SwitchPresenter/Case.cs index dbf6c74..6790ab0 100644 --- a/dev/DevWinUI.Controls/Controls/Ported/SwitchPresenter/Case.cs +++ b/dev/DevWinUI.Controls/Controls/Ported/SwitchPresenter/Case.cs @@ -1,4 +1,7 @@ -using Microsoft.UI.Xaml.Markup; +// 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. +using Microsoft.UI.Xaml.Markup; namespace DevWinUI; diff --git a/dev/DevWinUI.Controls/Controls/Ported/SwitchPresenter/CaseCollection.cs b/dev/DevWinUI.Controls/Controls/Ported/SwitchPresenter/CaseCollection.cs index 6c75bc5..cba61c7 100644 --- a/dev/DevWinUI.Controls/Controls/Ported/SwitchPresenter/CaseCollection.cs +++ b/dev/DevWinUI.Controls/Controls/Ported/SwitchPresenter/CaseCollection.cs @@ -1,4 +1,7 @@ -namespace DevWinUI; +// 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. +namespace DevWinUI; /// /// An collection of to help with XAML interop. diff --git a/dev/DevWinUI.Controls/Controls/Ported/SwitchPresenter/SwitchConverter.cs b/dev/DevWinUI.Controls/Controls/Ported/SwitchPresenter/SwitchConverter.cs index 4bb9811..a11b10e 100644 --- a/dev/DevWinUI.Controls/Controls/Ported/SwitchPresenter/SwitchConverter.cs +++ b/dev/DevWinUI.Controls/Controls/Ported/SwitchPresenter/SwitchConverter.cs @@ -1,4 +1,7 @@ -using Microsoft.UI.Xaml.Data; +// 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. +using Microsoft.UI.Xaml.Data; using Microsoft.UI.Xaml.Markup; namespace DevWinUI; diff --git a/dev/DevWinUI.Controls/Controls/Ported/SwitchPresenter/SwitchHelpers.cs b/dev/DevWinUI.Controls/Controls/Ported/SwitchPresenter/SwitchHelpers.cs index bc9df41..8209216 100644 --- a/dev/DevWinUI.Controls/Controls/Ported/SwitchPresenter/SwitchHelpers.cs +++ b/dev/DevWinUI.Controls/Controls/Ported/SwitchPresenter/SwitchHelpers.cs @@ -1,4 +1,7 @@ -using Microsoft.UI.Xaml.Markup; +// 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. +using Microsoft.UI.Xaml.Markup; namespace DevWinUI; diff --git a/dev/DevWinUI.Controls/Controls/Ported/SwitchPresenter/SwitchPresenter.cs b/dev/DevWinUI.Controls/Controls/Ported/SwitchPresenter/SwitchPresenter.cs index 693ef70..207631b 100644 --- a/dev/DevWinUI.Controls/Controls/Ported/SwitchPresenter/SwitchPresenter.cs +++ b/dev/DevWinUI.Controls/Controls/Ported/SwitchPresenter/SwitchPresenter.cs @@ -1,4 +1,7 @@ -using Microsoft.UI.Xaml.Markup; +// 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. +using Microsoft.UI.Xaml.Markup; namespace DevWinUI; diff --git a/dev/DevWinUI.Controls/Controls/Ported/TileControl/ImageAlignment.cs b/dev/DevWinUI.Controls/Controls/Ported/TileControl/ImageAlignment.cs index cb3d04e..644e194 100644 --- a/dev/DevWinUI.Controls/Controls/Ported/TileControl/ImageAlignment.cs +++ b/dev/DevWinUI.Controls/Controls/Ported/TileControl/ImageAlignment.cs @@ -1,4 +1,7 @@ -namespace DevWinUI; +// 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. +namespace DevWinUI; public enum ImageAlignment { @@ -26,4 +29,4 @@ public enum ImageAlignment /// Align to Bottom when the property ScrollOrientation is Vertical /// Bottom -} \ No newline at end of file +} diff --git a/dev/DevWinUI.Controls/Controls/Ported/TileControl/ScrollOrientation.cs b/dev/DevWinUI.Controls/Controls/Ported/TileControl/ScrollOrientation.cs index 50bf4be..bd98f68 100644 --- a/dev/DevWinUI.Controls/Controls/Ported/TileControl/ScrollOrientation.cs +++ b/dev/DevWinUI.Controls/Controls/Ported/TileControl/ScrollOrientation.cs @@ -1,4 +1,7 @@ -namespace DevWinUI; +// 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. +namespace DevWinUI; public enum ScrollOrientation { @@ -16,4 +19,4 @@ public enum ScrollOrientation /// Scroll both Horizontally and vertically /// Both -} \ No newline at end of file +} diff --git a/dev/DevWinUI.Controls/Controls/Ported/TileControl/TileControl.Properties.cs b/dev/DevWinUI.Controls/Controls/Ported/TileControl/TileControl.Properties.cs index d0f3862..e98b314 100644 --- a/dev/DevWinUI.Controls/Controls/Ported/TileControl/TileControl.Properties.cs +++ b/dev/DevWinUI.Controls/Controls/Ported/TileControl/TileControl.Properties.cs @@ -1,4 +1,7 @@ -namespace DevWinUI; +// 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. +namespace DevWinUI; public partial class TileControl : ContentControl { diff --git a/dev/DevWinUI.Controls/Controls/Ported/TileControl/TileControl.cs b/dev/DevWinUI.Controls/Controls/Ported/TileControl/TileControl.cs index ea24baa..6562239 100644 --- a/dev/DevWinUI.Controls/Controls/Ported/TileControl/TileControl.cs +++ b/dev/DevWinUI.Controls/Controls/Ported/TileControl/TileControl.cs @@ -1,4 +1,7 @@ -using Windows.Foundation; +// 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. +using Windows.Foundation; using Microsoft.UI.Dispatching; namespace DevWinUI;