Skip to content
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 10 commits into from
Nov 19, 2024
Merged

.NET 9 #21

merged 10 commits into from
Nov 19, 2024

Conversation

IeuanWalker
Copy link
Owner

No description provided.

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.
@IeuanWalker IeuanWalker merged commit 2aa3044 into master Nov 19, 2024
2 checks passed
@IeuanWalker IeuanWalker deleted the net9 branch November 19, 2024 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant