Skip to content
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
3e029ad
Update email-validation-behavior.md
TheCodeTraveler Aug 17, 2022
2de4938
Merge branch 'main' into main
jfversluis Aug 18, 2022
5d81215
Merge branch 'MicrosoftDocs:main' into main
TheCodeTraveler Nov 5, 2022
e297b9d
Merge branch 'MicrosoftDocs:main' into main
TheCodeTraveler Dec 13, 2022
c815aa3
Merge branch 'MicrosoftDocs:main' into main
TheCodeTraveler Feb 3, 2023
1711f50
Merge branch 'MicrosoftDocs:main' into main
TheCodeTraveler Feb 28, 2023
4098bca
Merge branch 'MicrosoftDocs:main' into main
TheCodeTraveler May 18, 2023
b2bc038
Merge branch 'MicrosoftDocs:main' into main
TheCodeTraveler Jun 8, 2023
8c07de1
Merge branch 'MicrosoftDocs:main' into main
TheCodeTraveler Sep 7, 2023
4818067
Merge branch 'MicrosoftDocs:main' into main
TheCodeTraveler Oct 1, 2023
906c21d
Add .NET Hot Reload Docs
TheCodeTraveler Oct 1, 2023
d3dcdd6
Merge branch 'MicrosoftDocs:main' into main
TheCodeTraveler Nov 8, 2023
9f91e11
Merge branch 'MicrosoftDocs:main' into main
TheCodeTraveler Dec 1, 2023
09ddb7e
Merge branch 'MicrosoftDocs:main' into main
TheCodeTraveler Sep 6, 2024
e5c66f6
Merge branch 'MicrosoftDocs:main' into main
TheCodeTraveler Oct 14, 2024
f724228
Merge branch 'MicrosoftDocs:main' into main
TheCodeTraveler Oct 17, 2024
ac4acab
Merge branch 'MicrosoftDocs:main' into main
TheCodeTraveler Nov 22, 2024
aec3234
Merge branch 'MicrosoftDocs:main' into main
TheCodeTraveler Dec 18, 2024
a60b02f
Merge branch 'MicrosoftDocs:main' into main
TheCodeTraveler May 25, 2025
0a45ad8
Merge branch 'MicrosoftDocs:main' into main
TheCodeTraveler Jun 14, 2025
fe2f99e
Update camera-view.md
TheCodeTraveler Jun 14, 2025
3b2a548
Merge branch 'main' into Update-`CameraView.CaptureImage()`-
jfversluis Jul 4, 2025
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
16 changes: 2 additions & 14 deletions docs/maui/views/camera-view.md
Original file line number Diff line number Diff line change
Expand Up @@ -408,29 +408,17 @@ The following example demonstrates how to use the `CaptureImage` method:
```cs
async void HandleCaptureButtonTapped(object? sender, EventArgs e)
{
// Use the Camera field defined above in XAML (`<toolkit:CameraView x:Name="Camera" />`)
Camera.MediaCaptured += HandleCameraViewMediaCaptured;

try
{
// Use the Camera field defined above in XAML (`<toolkit:CameraView x:Name="Camera" />`)
var captureImageCTS = new CancellationTokenSource(TimeSpan.FromSeconds(3));
await Camera.CaptureImage(captureImageCTS.Token);
Stream stream = await Camera.CaptureImage(captureImageCTS.Token);
}
catch(Exception e)
{
// Handle Exception
Trace.WriteLine(e);
}
finally
{
Camera.MediaCaptured -= HandleCameraViewMediaCaptured;
}
}

void HandleCameraViewMediaCaptured(object? sender, MediaCapturedEventArgs e)
{
Stream stream = e.Media;
// process media
}
```

Expand Down