Skip to content

Conversation

@StephaneDelcroix
Copy link
Contributor

@StephaneDelcroix StephaneDelcroix commented Oct 23, 2025

Description of Change

sample content template has wrong event handlers signatures, triggering warnings with XSG. Fix the signature

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

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

@StephaneDelcroix StephaneDelcroix force-pushed the dev/stdelc/xsg_fixsctemplate branch from 78ca539 to 18aca1d Compare October 24, 2025 07:10
@rmarinho
Copy link
Member

/backport to release/10.0.1xx

@github-actions
Copy link
Contributor

Started backporting to release/10.0.1xx: https://github.com/dotnet/maui/actions/runs/18774784897

@rmarinho rmarinho merged commit bdaa464 into net10.0 Oct 24, 2025
19 checks passed
@rmarinho rmarinho deleted the dev/stdelc/xsg_fixsctemplate branch October 24, 2025 09:21
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.

3 participants