ICompositionSurfaceFacade Interface
Definition
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.
Represents a placeholder for a composition surface that can be used like a real composition surface.
public interface class ICompositionSurfaceFacade
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Foundation.LiftedContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(2292997622, 14207, 23799, 160, 46, 237, 80, 116, 211, 4, 82)]
struct ICompositionSurfaceFacade
/// [Windows.Foundation.Metadata.Guid(2292997622, 14207, 23799, 160, 46, 237, 80, 116, 211, 4, 82)]
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Foundation.WindowsAppSDKContract, 65536)]
struct ICompositionSurfaceFacade
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Foundation.LiftedContract), 65536)]
[Windows.Foundation.Metadata.Guid(2292997622, 14207, 23799, 160, 46, 237, 80, 116, 211, 4, 82)]
public interface ICompositionSurfaceFacade
[Windows.Foundation.Metadata.Guid(2292997622, 14207, 23799, 160, 46, 237, 80, 116, 211, 4, 82)]
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Foundation.WindowsAppSDKContract), 65536)]
public interface ICompositionSurfaceFacade
Public Interface ICompositionSurfaceFacade
- Attributes
Remarks
The surface façade interface lets you create an object that can be assigned to the Surface property of a CompositionSurfaceBrush object, or passed as the surface
argument to the Compositor.CreateSurfaceBrush method. An application or framework object that implements this interface must also implement the ICompositionSurface interface, so that it can be assigned to the Surface
property of a brush.
The CompositionSurfaceBrush
queries for ICompositionSurfaceFacade
and calls the GetRealSurface method only once at property assignment time (which is at creation time, in the case of CreateSurfaceBrush
) to retrieve the real ICompositionSurface
object from the façade. The real object cannot in turn also be a façade; it must be a real object, or the assignment (or creation) method fails with E_INVALIDARG
. The façade and the real surface are then referenced by the brush. In that way, the façade object is kept alive by the visual tree in the same way as a real surface.
Methods
GetRealSurface() |
Retrieves the |