GeometrySource Generic Class

Provides the base class of a source of geometry. Generates and caches the geometry based on the input parameters and the layout bounds.

Namespace: Microsoft.Expression.Media
Assembly: Microsoft.Expression.Drawing (in microsoft.expression.drawing.dll)

Syntax

'Declaration
Public MustInherit Class GeometrySource(Of TParameters As IGeometrySourceParameters)
    Implements IGeometrySource
'Usage
Dim instance As GeometrySource(Of TParameters)
public abstract class GeometrySource<TParameters> : IGeometrySource where TParameters : IGeometrySourceParameters
generic<typename TParameters> where TParameters : IGeometrySourceParameters
public ref class GeometrySource abstract : IGeometrySource

Remarks

A typical implementation will extend the UpdateCachedGeometry() to update this.cachedGeometry. This base class will then handle the invalidation, pipeline to the geometry effects, and then cache relative to the layout bounds. An implementation should try to reuse the cached geometry as much as possible to avoid reconstruction in the rendering thread. An implementation can extend the ComputeLogicalBounds to handle Stretch differently.

Inheritance Hierarchy

System.Object
  Microsoft.Expression.Media.GeometrySource

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

GeometrySource Members
Microsoft.Expression.Media Namespace