Window.SystemBackdrop Eigenschaft

Definition

Ruft den Systemhintergrund ab, der auf dieses angewendet werden soll, oder legt diesen Windowfest. Der Hintergrund wird hinter dem Window Inhalt gerendert.

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

Eigenschaftswert

Der Systemhintergrund, der auf diese Windowangewendet werden soll.

Beispiele

In diesem Beispiel wird gezeigt, wie Festgelegt wird, SystemBackdrop dass Mica Alt verwendet wird.

<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 };
}

Hinweise

Weitere Informationen zu Systemkulissen finden Sie unter Materialien in Windows 11.

Der Hintergrund wird hinter dem in Window.Content angegebenen Inhalt gerendert. Wenn der gesamte Inhalt vollständig undurchsichtig ist, hat dieser Hintergrund keine sichtbare Wirkung.

Gilt für:

Weitere Informationen