> For the complete documentation index, see [llms.txt](https://docs.devolutions.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.devolutions.net/powershell-universal/de/apps/components/surfaces/appbar.md).

# AppBar

Fügen Sie PowerShell Universal-Apps eine App-Leiste für Branding, Navigation und Bildschirmaktionen hinzu, mit fester, klebender und Footer-Positionierung.

**Die App-Leiste zeigt Informationen und Aktionen zum aktuellen Bildschirm an.**

Die obere App-Leiste stellt Inhalte und Aktionen bereit, die sich auf den aktuellen Bildschirm beziehen. Sie wird für Branding, Bildschirmtitel, Navigation und Aktionen verwendet.

## AppBar mit benutzerdefiniertem Drawer

```powershell
$Drawer = New-UDDrawer -Children {
    New-UDList -Children {
        New-UDListItem -Label "Home"
        New-UDListItem -Label "Getting Started" -Children {
            New-UDListItem -Label "Installation" -OnClick {}
            New-UDListItem -Label "Usage" -OnClick {}
            New-UDListItem -Label "FAQs" -OnClick {}
            New-UDListItem -Label "System Requirements" -OnClick {}
            New-UDListItem -Label "Purchasing" -OnClick {}
        }
    }
}

New-UDAppBar -Position relative -Children { New-UDElement -Tag 'div' -Content { "Title" } } -Drawer $Drawer
```

## Footer

Um eine App-Leiste zu erstellen, die am unteren Rand der Seite angeheftet ist, können Sie den Parameter `-Footer` verwenden.

```powershell
New-UDAppBar -Children { "Hello" } -Footer
```

## Relativer Footer

Ein relativer Footer bleibt immer am unteren Rand des Dokuments. Wenn der Inhalt der Seite nicht 100 % der Bildschirmhöhe einnimmt, wird der Footer am unteren Rand der Ansicht positioniert. Wenn der Inhalt größer als 100 % der Bildschirmhöhe ist, ist der Footer nur sichtbar, wenn bis zum unteren Rand gescrollt wird.

```powershell
New-UDApp -Title 'PowerShell Universal' -Pages @(
    New-UDPage -Title home -Name home -Blank -HideNavigation -Content {
        New-UDHelmet -Tag 'style' -Content '
            #Footer {
                position: relative;
            }
            #Footer + div {
                display: none
            }
            #content {
                min-height: calc(100vh - 128px);
            }
        '
        New-UDAppBar -Position sticky -ClassName header -DisableThemeToggle -Children {
            New-UDParagraph -Text "Header"
        }
        New-UDElement -Tag 'div' -Content {
            1..100 | % {
                New-UDTypography -Text 'Hello' -Variant h1
            }
        } -Id 'content'
        New-UDAppBar -Id Footer -Footer -Children {
            New-UDParagraph -Text "Footer"
        }
    }
)
```

## Feste AppBar

Eine feste AppBar wird auch angezeigt, wenn der Bildschirm gescrollt wird. Sie bleibt oben fixiert. Dieses Beispiel erstellt eine feste AppBar mit einem div, das 10000 Pixel hoch ist.

```powershell
New-UDAppBar -Position fixed -Children { New-UDElement -Tag 'div' -Content { "Title" } }

New-UDElement -Tag 'div' -Content {

} -Attributes @{
    style = @{
        height = "10000px"
    }
}
```

## API

* [New-UDAppBar](/powershell-universal/de/powershell-befehle/new-udappbar.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.devolutions.net/powershell-universal/de/apps/components/surfaces/appbar.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
