Skip to content

Conversation

StephaneDelcroix
Copy link
Contributor

Description of Change

sample content template uses deprecated API and has wrong event handlers signatures, triggering warnings with XSG. Ignore the deprecation, fix the signature

@Copilot Copilot AI review requested due to automatic review settings October 23, 2025 17:37
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR addresses compiler warnings in the MAUI mobile template by fixing event handler signatures to properly handle nullable sender parameters and suppressing deprecation warnings for styles that use deprecated APIs.

Key Changes:

  • Updated event handler signatures to accept nullable object? sender parameters
  • Added null-safety checks when casting and accessing the sender object
  • Suppressed deprecation warnings (0618) for AppStyles.xaml that uses deprecated APIs

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
src/Templates/src/templates/maui-mobile/Pages/Controls/TaskView.xaml.cs Updated CheckBox_CheckedChanged event handler to use nullable sender and added null-safety checks
src/Templates/src/templates/maui-mobile/MauiApp.1.csproj Added NoWarn directive to suppress deprecation warnings for AppStyles.xaml
src/Templates/src/templates/maui-mobile/AppShell.xaml.cs Updated SfSegmentedControl_SelectionChanged event handler to accept nullable sender parameter

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