Skip to content

Commit

Permalink
Fix CS8622, Add nullability annotations to event handler parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Arlodotexe committed Dec 17, 2024
1 parent 2680d18 commit ddf3d56
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions components/CameraPreview/samples/CameraPreviewSample.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ protected async override void OnNavigatedFrom(NavigationEventArgs e)
await CleanUpAsync();
}

private async void Application_Suspending(object sender, SuspendingEventArgs e)
private async void Application_Suspending(object? sender, SuspendingEventArgs e)
{
if (Frame?.CurrentSourcePageType == typeof(CameraPreviewSample))
{
Expand All @@ -102,7 +102,7 @@ private async void Application_Suspending(object sender, SuspendingEventArgs e)
}
}

private async void Application_Resuming(object sender, object e)
private async void Application_Resuming(object? sender, object e)
{
if (CameraPreviewControl != null)
{
Expand All @@ -113,19 +113,19 @@ private async void Application_Resuming(object sender, object e)
}
}

private void CameraPreviewControl_FrameArrived(object sender, FrameEventArgs e)
private void CameraPreviewControl_FrameArrived(object? sender, FrameEventArgs e)
{
_currentVideoFrame = e.VideoFrame;
}

private void CameraPreviewControl_PreviewFailed(object sender, PreviewFailedEventArgs e)
private void CameraPreviewControl_PreviewFailed(object? sender, PreviewFailedEventArgs e)
{
ErrorBar.Message = e.Error;
ErrorBar.IsOpen = true;
}


private async void CaptureButton_Click(object sender, RoutedEventArgs e)
private async void CaptureButton_Click(object? sender, RoutedEventArgs e)
{
var softwareBitmap = _currentVideoFrame?.SoftwareBitmap;

Expand Down

0 comments on commit ddf3d56

Please sign in to comment.