Compositor.CreateHostBackdropBrush Compositor.CreateHostBackdropBrush Compositor.CreateHostBackdropBrush Compositor.CreateHostBackdropBrush Method

Definition

Creates an instance of CompositionBackdropBrush that samples from the area behind the visual, before the window is drawn.

public : CompositionBackdropBrush CreateHostBackdropBrush()
CompositionBackdropBrush CreateHostBackdropBrush() const;
public CompositionBackdropBrush CreateHostBackdropBrush()
Public Function CreateHostBackdropBrush() As CompositionBackdropBrush

Returns

Returns the created CompositionBackdropBrush.

Additional features and requirements

Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)

Remarks

The standard backdrop brush samples the area immediately behind the visual where it is used. The host backdrop brush tells the compositor to sample from the area behind the visual, before the window is drawn. The host backdrop brush is translucent and it hit-tests as opaque. The app cannot read the pixel data back.