Window.SystemBackdrop Propiedad

Definición

Obtiene o establece el telón de fondo del sistema que se va a aplicar a este Window. El telón de 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

Telón de fondo del sistema que se va a aplicar a este Window.

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">
            <TextBlock Text="Grid 1"/>
        </Grid>

        <!-- This area has an opaque background,
        so the Mica backdrop won't be visible. -->
        <Grid Grid.Row="1" Background="Gray">
            <TextBlock Text="Grid 2"/>
        </Grid>


</Window>
public MainWindow()
{
    this.InitializeComponent();

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

Comentarios

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

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

Se aplica a

Consulte también