Windows.UI.Xaml.Media Namespace
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides basic media support, graphics primitives, and brush-drawing API.
Classes
AcrylicBrush |
Paints an area with a semi-transparent material that uses multiple effects including blur and a noise texture. Equivalent WinUI 2 API for UWP: Microsoft.UI.Xaml.Media.AcrylicBrush (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
ArcSegment |
Represents an elliptical arc between two points. |
BezierSegment |
Represents a cubic Bezier curve drawn between two points. |
BitmapCache |
Represents the behavior of caching a visual element or tree of elements as bitmap surfaces. |
Brush |
Defines objects used to paint graphical objects. Classes that derive from Brush describe how the area is painted. |
BrushCollection |
Represents an ordered collection of Brush values. |
CacheMode |
Represents cached content modes for graphics acceleration features. |
CompositeTransform |
Applies multiple transform operations to an object. |
CompositionTarget |
Represents the composited display surface for an app. This class provides application-wide rendering events. |
DoubleCollection |
Represents an ordered collection of Double values. |
EllipseGeometry |
Represents the geometry of a circle or ellipse. |
FontFamily |
Represents a family of related fonts. |
GeneralTransform |
Provides generalized transformation support for objects. GeneralTransform is a base class that's in the hierarchy of practical transform classes such as TranslateTransform. |
Geometry |
Provides a base class for objects that define geometric shapes. Geometry objects can be used for clipping regions and as geometry definitions for rendering two-dimensional graphical data as a Path. |
GeometryCollection |
Represents a collection of Geometry objects. |
GeometryGroup |
Represents a composite geometry, composed of other Geometry objects. |
GradientBrush |
An abstract class that describes a gradient, composed of gradient stops. |
GradientStop |
Describes the location and color of a transition point in a gradient. |
GradientStopCollection |
Represents a collection of GradientStop objects that can be individually accessed by index. |
ImageBrush |
Paints an area with an image. The image source is typically obtained from file formats such as Joint Photographic Experts Group (JPEG). |
ImageSource |
Provides an object source type for the Image.Source and ImageBrush.ImageSource properties. |
LinearGradientBrush |
Paints an area with a linear gradient. |
LineGeometry |
Represents the geometry of a line. |
LineSegment |
Represents a line drawn between two points, which can be part of a PathFigure within Path data. |
LoadedImageSourceLoadCompletedEventArgs |
Provides event data for the LoadedImageSurface.LoadCompleted event. |
LoadedImageSurface |
Represents a composition surface that an image can be downloaded, decoded and loaded onto. You can load an image using a Uniform Resource Identifier (URI) that references an image source file, or supplying a IRandomAccessStream. |
Matrix3DProjection |
Applies a Matrix3D projection to an object. |
MatrixHelper |
Provides static helper methods for processing Matrix values. C# and Microsoft Visual Basic code should use members of Matrix instead. |
MatrixTransform |
Creates an arbitrary affine matrix transformation that is used to manipulate objects or coordinate systems in a two-dimensional plane. |
MediaTransportControlsThumbnailRequestedEventArgs |
Provides data for the MediaTransportControls.ThumbnailRequested event. |
PartialMediaFailureDetectedEventArgs |
Provides data for the PartialMediaFailureDetected event. |
PathFigure |
Represents a subsection of a geometry, a single connected series of two-dimensional geometric segments. |
PathFigureCollection |
Represents a collection of PathFigure objects that collectively make up the geometry of a PathGeometry. |
PathGeometry |
Represents a complex vector-based shape that may be composed of arcs, curves, ellipses, lines, and rectangles. |
PathSegment |
Represents a segment of a PathFigure object. Derived classes of PathFigure describe different types of segments. |
PathSegmentCollection |
Represents a collection of PathSegment objects that can be individually accessed by index. |
PlaneProjection |
Represents a perspective transform (a 3-D-like effect) on an object. |
PointCollection |
Represents a collection of Point values that can be individually accessed by index. |
PolyBezierSegment |
Represents one or more cubic Bezier curves. |
PolyLineSegment |
Represents a set of line segments defined by a Point collection with each Point specifying the end point of a line segment. |
PolyQuadraticBezierSegment |
Represents a set of quadratic Bezier segments. |
Projection |
Provides a base class for projections, which describe how to transform an object in 3-D space using perspective transforms. |
QuadraticBezierSegment |
Creates a quadratic Bezier curve between two points in a PathFigure. |
RateChangedRoutedEventArgs |
Provides event data for the RateChanged event. |
RectangleGeometry |
Describes a two-dimensional rectangular geometry. |
RenderedEventArgs |
Provides event data for the Rendered event. |
RenderingEventArgs |
Provides event data for the Rendering event. |
RevealBackgroundBrush |
Important RevealBackgroundBrush is available for use in the operating systems specified in the Requirements section. However, we do not recommend its use as it may be altered or unavailable in subsequent versions. Paints a control background with a reveal effect using composition brush and light effects. Equivalent WinUI 2 API for UWP: Microsoft.UI.Xaml.Media.RevealBackgroundBrush (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
RevealBorderBrush |
Important RevealBorderBrush is available for use in the operating systems specified in the Requirements section. However, we do not recommend its use as it may be altered or unavailable in subsequent versions. Paints a control border with a reveal effect using composition brush and light effects. Equivalent WinUI 2 API for UWP: Microsoft.UI.Xaml.Media.RevealBorderBrush (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
RevealBrush |
Important RevealBrush is available for use in the operating systems specified in the Requirements section. However, we do not recommend its use as it may be altered or unavailable in subsequent versions. Base class for brushes that use composition effects and lighting to implement the reveal visual design treatment. Equivalent WinUI 2 API for UWP: Microsoft.UI.Xaml.Media.RevealBrush (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
RotateTransform |
Rotates an object around a specified point in a two-dimensional x-y coordinate system. |
ScaleTransform |
Scales an object in the two-dimensional x-y coordinate system. |
Shadow |
The base class for shadow effects that can be applied to a XAML element. |
SkewTransform |
Represents a two-dimensional skew. |
SolidColorBrush |
Paints an area with a solid color. The solid color is defined by a Color value. |
ThemeShadow |
A ThemeShadow is a preconfigured shadow effect that can be applied to any XAML element to draw shadows appropriately based on x, y, z coordinates. ThemeShadow also automatically adjusts for other environmental specifications:
|
TileBrush |
Base class that describes a way to paint a region. Parent of ImageBrush. |
TimelineMarker |
Represents metadata associated with a specific point in a media file. |
TimelineMarkerCollection |
Represents a collection of TimelineMarker objects that can be individually accessed by index. A TimelineMarkerCollection is an ordered list where the order is determined by the Time value of each TimelineMarker item contained in the collection. For more info on how this affects the collection API, see Remarks. |
TimelineMarkerRoutedEventArgs |
Provides event data for the MarkerReached event. |
Transform |
Defines functionality that enables transformations in a two-dimensional plane. |
TransformCollection |
Represents a collection of Transform objects that can be individually accessed by index. |
TransformGroup |
Represents a composite Transform composed of other Transform objects. |
TranslateTransform |
Translates (moves) an object in the two-dimensional x-y coordinate system. |
VisualTreeHelper |
Provides utility methods that can be used to traverse object relationships (along child-object or parent-object axes) in the visual tree of your app. |
XamlCompositionBrushBase |
Provides a base class used to create XAML brushes that paint an area with a CompositionBrush. |
XamlLight |
Provides a base class used to create XAML lights that use a CompositionLight to apply lighting effects to XAML elements and brushes. |
Structs
Matrix |
Represents a 3 × 3 affine transformation matrix used for transformations in two-dimensional space. |
Enums
AcrylicBackgroundSource |
Defines values that specify whether the brush samples from the app content or from the content behind the app window. Equivalent WinUI 2 API for UWP: Microsoft.UI.Xaml.Media.AcrylicBackgroundSource (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
AlignmentX |
Describes how content is positioned horizontally in a container. |
AlignmentY |
Describes how content is positioned vertically in a container. |
AudioCategory |
Describes the purpose of the audio information in an audio stream. Used as a value by AudioCategory. |
AudioDeviceType |
Describes the primary usage of the device that is being used to play back audio. This value is used by AudioDeviceType. |
BrushMappingMode |
Specifies the coordinate system used by a Brush. |
ColorInterpolationMode |
Determines how the colors in a gradient are interpolated. |
ElementCompositeMode |
Declares alternate composition and blending modes for elements in mixed XAML / Microsoft DirectX UI. |
FastPlayFallbackBehaviour |
Defines constants that specify how MediaTransportControls fast-forward/backward buttons behave. |
FillRule |
Specifies how the intersecting areas of PathFigure objects contained in a Geometry are combined to form the area of the Geometry. |
GradientSpreadMethod |
Specifies how to draw the gradient outside a gradient brush's gradient vector or space. |
LoadedImageSourceLoadStatus |
Defines constants that specify whether an image loaded, or why it failed to load. |
MediaCanPlayResponse |
Describes the likelihood that the media engine can play a media source based on its file type and characteristics. |
MediaElementState |
Defines the potential states of a MediaElement object. |
PenLineCap |
Describes the shape at the end of a line or segment. |
PenLineJoin |
Describes the shape that joins two lines or segments. |
RevealBrushState |
Important RevealBrush is available for use in the operating systems specified in the Requirements section. However, we do not recommend its use as it may be altered or unavailable in subsequent versions. Defines constants that specify the pointer state of an element. Equivalent WinUI 2 API for UWP: Microsoft.UI.Xaml.Media.RevealBrushState (for WinUI in the Windows App SDK, see the Windows App SDK namespaces). |
Stereo3DVideoPackingMode |
Describes the frame-packing mode for stereo 3-D video content. |
Stereo3DVideoRenderMode |
Describes the stereo 3-D video render mode for the current media source. |
Stretch |
Describes how content is resized to fill its allocated space. |
StyleSimulations |
Describes the simulation style of a font. |
SweepDirection |
Specifies the direction in which an elliptical arc is drawn. |
Delegates
RateChangedRoutedEventHandler |
Represents the method that will handle the RateChanged event. This event fires when PlaybackRate or DefaultPlaybackRate change either via user interaction or from code. |
TimelineMarkerRoutedEventHandler |
Represents methods that will handle various routed events related to timeline markers. |