O'Reilly logo

XAML Unleashed by Adam Nathan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required