CaptureElement

CaptureElement is basically the capture equivalent of MediaElement. MediaElement contains all the plumbing necessary for playback, and the same could be said about CaptureElement for capture. It is a UIElement with only two properties (excluding ones inherited from its FrameworkElement base class): Source and Stretch. Like MediaElement, Stretch is Uniform by default. Unlike MediaElement, but like every other element with a Stretch property, its content does not get centered when you choose UniformToFill.

CaptureElement’s Source property is of type MediaCapture, a Windows Runtime class that does all the hard work. It enables you to capture videos, photos, as well as two options lacking from CameraCaptureUI: video-only recordings ...

Get XAML Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.