Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Templates/src/templates/maui-mobile/AppShell.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public static async Task DisplayToastAsync(string message)
await toast.Show(cts.Token);
}

private void SfSegmentedControl_SelectionChanged(object sender, Syncfusion.Maui.Toolkit.SegmentedControl.SelectionChangedEventArgs e)
private void SfSegmentedControl_SelectionChanged(object? sender, Syncfusion.Maui.Toolkit.SegmentedControl.SelectionChangedEventArgs e)
{
Application.Current!.UserAppTheme = e.NewIndex == 0 ? AppTheme.Light : AppTheme.Dark;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ public ICommand TaskCompletedCommand
set => SetValue(TaskCompletedCommandProperty, value);
}

private void CheckBox_CheckedChanged(object sender, CheckedChangedEventArgs e)
private void CheckBox_CheckedChanged(object? sender, CheckedChangedEventArgs e)
{
var checkbox = (CheckBox)sender;
if (checkbox.BindingContext is not ProjectTask task)
var checkbox = (CheckBox?)sender;

if (checkbox?.BindingContext is not ProjectTask task)
return;

if (task.IsCompleted == e.Value)
Expand Down
Loading