> 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

**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 benutzerdefinierter Drawer

![](/files/3q6advoK9NMPbPC9ENv1)

```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
```

## Fußzeile

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
```

## Relative Fußzeile

Eine relative Fußzeile bleibt immer am unteren Rand des Dokuments. Wenn der Inhalt der Seite nicht 100 % der Bildschirmhöhe einnimmt, wird die Fußzeile am unteren Rand der Ansicht positioniert. Ist der Inhalt größer als 100 % der Bildschirmhöhe, ist die Fußzeile nur sichtbar, wenn bis zum Ende 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 dann angezeigt, wenn der Bildschirm gescrollt wird. Sie bleibt am oberen Rand haften. Dieses Beispiel erstellt eine AppBar, die mit einem 10000 Pixel hohen div fixiert 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.
