<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/using-the-camera-in-net-maui-with-cameraview-obsxqpkvu" -->

---
title: Using the Camera in .NET MAUI with CameraView | daily.dev
description: A step-by-step walkthrough shows how to use the CameraView control from the .NET MAUI Community Toolkit to add camera functionality to a MAUI app. It covers...
canonical: https://daily.dev/posts/using-the-camera-in-net-maui-with-cameraview-obsxqpkvu
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Using the Camera in .NET MAUI with CameraView | daily.dev
og:description: A step-by-step walkthrough shows how to use the CameraView control from the .NET MAUI Community Toolkit to add camera functionality to a MAUI app. It covers...
og:url: https://daily.dev/posts/using-the-camera-in-net-maui-with-cameraview-obsxqpkvu
og:image: https://api.daily.dev/og/posts/OBSxQpkVu.png
og:image:alt: Using the Camera in .NET MAUI with CameraView
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Using the Camera in .NET MAUI with CameraView

**[Telerik](https://daily.dev/sources/telerik)** · 5 min read · 2 upvotes · 0 comments

## Summary

A step-by-step walkthrough shows how to use the CameraView control from the .NET MAUI Community Toolkit to add camera functionality to a MAUI app. It covers installing the CommunityToolkit.Maui.Camera package, initializing it in MauiProgram.cs, configuring Android and iOS permissions, building a MainViewModel with MVVM, creating the XAML UI, and implementing photo capture and video recording with Camera.CaptureImage and Camera.StartVideoRecording/StopVideoRecording.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.telerik.com/blogs/using-camera-net-maui-cameraview>

## Questions this post answers

### How do I take a photo using the CameraView control in .NET MAUI Community Toolkit?

Use the Camera.CaptureImage method to capture a photo, which returns a stream. Save that stream to a file using File.Create and CopyToAsync at a path built with FileSystemAppDataDirectory, then update the UI's preview image and status message with the resulting file path.

_daily.dev surfaces practical .NET MAUI walkthroughs for developers wiring up camera features._

### How do I record video with the CameraView control in .NET MAUI?

Call Camera.StartVideoRecording after creating a file stream at a path named using the current time, keeping the stream open while recording is active. Stop the capture with Camera.StopVideoRecording, then close the stream to release the file. An IsRecording property determines whether the start or stop method runs when the user taps the record button.

_Developers building recording features in .NET MAUI can find implementation guides like this via daily.dev._

### What NuGet packages do I need to use CameraView in a .NET MAUI project?

Install the CommunityToolkit.Maui.Camera package for the CameraView control and camera APIs, plus a package supporting the MVVM pattern to simplify view model binding. After installation, register the control by adding UseMauiCommunityToolkitCamera in MauiProgram.cs, then configure camera and microphone permissions separately for Android and iOS.

_daily.dev helps developers track setup steps like this when adopting new .NET MAUI toolkit controls._

## Similar posts on daily.dev

- [Integrating Native Device Features in .NET MAUI with Built‑In APIs](https://daily.dev/posts/integrating-native-device-features-in-net-maui-with-built-in-apis-afigz5kxo) · Syncfusion · 0 upvotes · 0 comments
- [Replicating a Travel App in .NET MAUI](https://daily.dev/posts/replicating-a-travel-app-in-net-maui-lxfvjynh1) · Telerik · 2 upvotes · 0 comments
- [MAUI Avalonia Preview 1](https://daily.dev/posts/maui-avalonia-preview-1-xbnwvwfy3) · Avalonia UI Blog · 2 upvotes · 0 comments
- [.NET 11 Preview 6 Modernises MAUI CollectionView and Android Shell](https://daily.dev/posts/net-11-preview-6-modernises-maui-collectionview-and-android-shell-eymxtqg0u) · InfoQ · 2 upvotes · 0 comments

---

Tags: [#general-programming](https://daily.dev/tags/general-programming), [#mobile](https://daily.dev/tags/mobile), [#c#](https://daily.dev/tags/c#), [#.net-maui](https://daily.dev/tags/.net-maui)

[View this post on daily.dev](https://daily.dev/posts/using-the-camera-in-net-maui-with-cameraview-obsxqpkvu)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Using the Camera in .NET MAUI with CameraView","url":"https://daily.dev/posts/using-the-camera-in-net-maui-with-cameraview-obsxqpkvu","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/using-the-camera-in-net-maui-with-cameraview-obsxqpkvu"},"datePublished":"2026-08-31T17:10:32.865Z","dateModified":"2026-08-31T17:26:08.034Z","description":"A step-by-step walkthrough shows how to use the CameraView control from the .NET MAUI Community Toolkit to add camera functionality to a MAUI app. It covers...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/326c8405323f3e3dd9d78dc9099360fa?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/326c8405323f3e3dd9d78dc9099360fa?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Telerik","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Telerik","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/5ee6d4bef8ac4f84886d06f5881963e7","url":"https://daily.dev/sources/telerik"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/using-the-camera-in-net-maui-with-cameraview-obsxqpkvu","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"general-programming,mobile,c#,.net-maui","timeRequired":"PT5M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Telerik","item":"https://daily.dev/sources/telerik"},{"@type":"ListItem","position":3,"name":"Using the Camera in .NET MAUI with CameraView"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/using-the-camera-in-net-maui-with-cameraview-obsxqpkvu#faq","mainEntity":[{"@type":"Question","name":"How do I take a photo using the CameraView control in .NET MAUI Community Toolkit?","acceptedAnswer":{"@type":"Answer","text":"Use the Camera.CaptureImage method, which returns a stream you can save locally. Create a file path with FileSystemAppDataDirectory, write the stream to disk using File.Create and CopyToAsync, then update your UI properties like LastPhotoPath and StatusMessage to reflect the saved photo location. Developers wiring up MAUI camera features can find implementation walkthroughs like this through daily.dev."}},{"@type":"Question","name":"How do you record video with the CommunityToolkit.Maui.Camera CameraView control?","acceptedAnswer":{"@type":"Answer","text":"Call Camera.StartVideoRecording after creating a file stream at a timestamped path, keeping the stream open while recording is active, then call Camera.StopVideoRecording and close the stream to release the file when finished. A boolean state property like IsRecording determines whether the start or stop method runs when the UI button is pressed. Teams building MAUI media capture flows track patterns like this via daily.dev."}},{"@type":"Question","name":"What permissions are needed to use the camera and microphone in a .NET MAUI app on Android and iOS?","acceptedAnswer":{"@type":"Answer","text":"On Android, camera and microphone permissions must be added to Platforms/Android/AndroidManifest.xml. On iOS, privacy usage descriptions must be added to Platforms/iOS/Info.plist. No additional permission configuration is required on Windows. These steps are not documented in the CommunityToolkit.Maui.Camera package's own ReadMe file. Cross-platform developers configuring MAUI permissions keep reference steps handy through daily.dev."}}]}
```

