Create Host Backdrop Brush Method
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.
Creates an instance of CompositionBackdropBrush that samples from the area behind the visual, before the window is drawn.
public: virtual CompositionBackdropBrush ^ CreateHostBackdropBrush() = CreateHostBackdropBrush;
public CompositionBackdropBrush CreateHostBackdropBrush();
Public Function CreateHostBackdropBrush () As CompositionBackdropBrush
Returns the created CompositionBackdropBrush.
Windows 10 Creators Update (introduced in 10.0.15063.0)
Windows.Foundation.UniversalApiContract (introduced in v4.0)
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. By default, the host backdrop brush is translucent and it hit-tests as opaque. The app cannot read the pixel data back.
The transparency of the host backdrop brush is a property the user can control from Settings or by using power policies.