-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
.NET 9 #21
Merged
Merged
.NET 9 #21
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Updated target frameworks in `App.csproj` and `IeuanWalker.Maui.Switch.csproj` from .NET 8.0 to .NET 9.0. Removed `net8.0-maccatalyst` target framework from `App.csproj`. Reorganized `App.csproj` with moved and restructured properties and item groups. Removed `SupportedOSPlatformVersion` for `maccatalyst`, `windows`, and `tizen` from `App.csproj`. Removed `CodesignKey`, `CodesignProvision`, and `ProvisioningType` properties for `net8.0-ios` from `App.csproj`. Restructured several `ItemGroup` elements in `App.csproj`, including resources, fonts, images, and package references. Updated `PackageReleaseNotes` in `IeuanWalker.Maui.Switch.csproj`. Updated `ItemGroup` conditions in `IeuanWalker.Maui.Switch.csproj` to reflect new target frameworks. Changed `BindableProperty` default values in `CustomSwitch.xaml.cs` from `Rectangle` to `Rect`. Removed leading BOM character from XML declaration in several XAML files.
Refactored `App.csproj` by removing unnecessary closing tags for `ItemGroup` and `Project` elements, potentially to correct formatting or include additional elements. Removed a `PropertyGroup` from `IeuanWalker.Maui.Switch.csproj`, which contained metadata such as `GitInfoReportImportance`, `PackageId`, `Summary`, `Authors`, and `Owners`, indicating that this metadata is no longer needed.
Updated App.csproj to remove old package references and add new ones, including updates to CommunityToolkit.Maui, CommunityToolkit.Mvvm, IeuanWalker.Maui.StateButton, and SkiaSharp.Extended.UI.Maui. Added new package reference for Microsoft.Maui.Controls version 9.0.10. Updated IeuanWalker.Maui.Switch.csproj to include a new package reference for Microsoft.Maui.Controls version 9.0.10.
Modified the App constructor to remove direct initialization of MainPage with AppShell. Added a new CreateWindow method that overrides the base class method to create and return a new Window object initialized with AppShell. This change improves the structure and initialization process of the application.
Updated the `DisplayAlert` method calls in `Switch_OnToggled` and `Toggled` methods across several files to use `Application.Current!.Windows[0].Page!` instead of `Application.Current!.MainPage!`. This change ensures alerts are displayed on the first window's page, accommodating scenarios with multiple windows or when the main page is not active. Affected files: `CustomSwitchPage.xaml.cs`, `PanGestureTestPage.xaml.cs`, `SwitchViewPage.xaml.cs`, and `SwitchViewModel.cs`.
Updated App.csproj and IeuanWalker.Maui.Switch.csproj to enable XAML C# binding with source compilation for .NET MAUI projects. Added a new PropertyGroup in IeuanWalker.Maui.Switch.csproj to set GitInfoReportImportance to high.
Added xmlns:control namespace to reference App.Controls or App.Controls.CustomSwitchExamples in multiple XAML files. Added x:DataType attribute to enable compile-time data binding checks and IntelliSense support. Reordered xmlns:stateButton namespace and added x:DataType in CustomButton.xaml. Added x:DataType to examples:IosSwitch elements and DataTrigger elements in IsBusyTestPage.xaml and IsEnabledTestPage.xaml. Added x:DataType to Grid element in CustomSwitch.xaml.
Updated .NET version from 7.0.101 to 9.*.* in Release.yml and build.yml. Changed NUGET_PATH in Release.yml to use GitHub event release tag name instead of fixed version 1.0.0 in build.yml.
Enhanced code readability by removing unnecessary spaces in various files, including conditional statements and XML files. Added an override method `CreateWindow` in `App.xaml.cs` to handle window creation with `AppShell`. Updated `splash.svg` to include a DOCTYPE declaration and adjusted formatting. Added a debug statement in `SwitchView.cs` to log changes in the `IsToggled` property.
Changed default values for StrokeShapeProperty and KnobStrokeShapeProperty in the CustomSwitch class from Rect to Rectangle. This update likely corrects or improves the shape type used for these properties.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.