Skip to content

Commit bf0aa17

Browse files
committed
Fix CI build errors
Update Label_Loaded method with nullability and logic The `Label_Loaded` method in `ButtonPopup.xaml.cs` was updated to accept a nullable `sender` parameter by changing its signature to `void Label_Loaded(object? sender, EventArgs e)`. Additionally, the method implementation was added to check if the `sender` is of type `Label`. If so, it casts the `sender` to a `Label` and calls the `SetSemanticFocus` method on it.
1 parent 1863267 commit bf0aa17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samples/CommunityToolkit.Maui.Sample/Views/Popups/ButtonPopup.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ void Button_Clicked(object? sender, EventArgs e)
1212
CloseAsync();
1313
}
1414

15-
void Label_Loaded(object sender, EventArgs e)
15+
void Label_Loaded(object? sender, EventArgs e)
1616
{
1717
if (sender is Label label)
1818
{

0 commit comments

Comments
 (0)