Window.SystemBackdrop Propiedad

Definición

Obtiene o establece el fondo del sistema que se va a aplicar a este Windowobjeto . El fondo se representa detrás del Window contenido.

public:
 property SystemBackdrop ^ SystemBackdrop { SystemBackdrop ^ get(); void set(SystemBackdrop ^ value); };
SystemBackdrop SystemBackdrop();

void SystemBackdrop(SystemBackdrop value);
public SystemBackdrop SystemBackdrop { get; set; }
var systemBackdrop = window.systemBackdrop;
window.systemBackdrop = systemBackdrop;
Public Property SystemBackdrop As SystemBackdrop

Valor de propiedad

El fondo del sistema que se va a aplicar a este Windowobjeto .

Ejemplos

En este ejemplo se muestra cómo establecer para SystemBackdrop usar Mica Alt.

<Window
    ...>
    <Window.SystemBackdrop>
        <MicaBackdrop Kind="BaseAlt"/>
    </Window.SystemBackdrop>

    <Grid RowDefinitions="*,*">
        <!-- This area has a transparent background, so the Mica
         backdrop will be mostly visible. For example, if there are
         buttons here, the backdrop will show up in the margins
         and gaps between the buttons. -->
        <Grid Background="Transparent"></Grid>

        <!-- This area has an opaque background,
         so the Mica backdrop won't be visible. -->
        <Grid Grid.Row="1" Background="Gray"></Grid>
    </Grid>
</Window>
public MainWindow()
{
    this.InitializeComponent();

    SystemBackdrop = new MicaBackdrop() 
                        { Kind = MicaKind.BaseAlt };
}

Comentarios

Para obtener más información sobre los fondos del sistema, vea Materiales en Windows 11.

El fondo se representa detrás del contenido especificado en Window.Content. Si todo el contenido es totalmente opaco, este fondo no tendrá ningún efecto visible.

Se aplica a

Consulte también