> 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/it/comandi-powershell/new-udappbar.md).

# New-UDAppBar

New-UDAppBar crea un componente app bar personalizzato in PowerShell Universal che sostituisce la barra di navigazione integrata nella parte superiore di una dashboard.

### Sinossi

Crea un AppBar.

### Sintassi

```powershell
New-UDAppBar [[-Id] <String>] [[-Drawer] <Hashtable>] [[-Children] <ScriptBlock>] [[-Position] <String>] [-Footer] [-DisableThemeToggle] [[-ClassName] <String>] [[-Color] <String>] [<CommonParameters>]
```

### Descrizione

Crea un AppBar. Può essere utilizzato per sostituire l'AppBar integrato.

### Parametri

#### -Id

L'ID del componente. Per impostazione predefinita è un GUID casuale.

```
Required?                    false
Position?                    1
Default value                [Guid]::NewGuid()
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false
```

#### -Drawer

Un drawer che può essere aperto da questo AppBar. Utilizzi New-UDDrawer per creare un drawer da passare a questo parametro.

```
Required?                    false
Position?                    2
Default value
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false
```

#### -Children

Elementi figlio di questo AppBar. Gli elementi figlio di un AppBar sono comunemente testo e pulsanti.

```
Required?                    false
Position?                    3
Default value
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false
```

#### -Position

La posizione di questo AppBar. Una posizione fissa sostituirà l'AppBar predefinito.

```
Required?                    false
Position?                    4
Default value                sticky
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false
```

#### -Footer

Posiziona l'app bar in fondo alla pagina per creare un footer

```
Required?                    false
Position?                    named
Default value                False
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false
```

#### -DisableThemeToggle

Rimuove l'interruttore del tema dall'app bar.

```
Required?                    false
Position?                    named
Default value                False
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false
```

#### -ClassName

Una classe CSS da applicare all'app bar.

```
Required?                    false
Position?                    5
Default value
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false
```

#### -Color

Il colore del tema da utilizzare per l'app bar.

```
Required?                    false
Position?                    6
Default value                default
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false
```

#### Parametri comuni

Questo cmdlet supporta i parametri comuni: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable e OutVariable. Per ulteriori informazioni, veda [about\_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).

### Output

### Esempi

#### Esempio 1: app bar di base

```powershell
New-UDAppBar -Children { New-UDTypography -Text 'Hello' } -Position relative
```

Crea un nuovo AppBar relativo agli altri componenti.

#### Esempio 2: app bar con drawer

```powershell
New-UDAppBar -Children { New-UDTypography -Text 'Hello' } -Position relative -Drawer (New-UDDrawer -Content { New-UDTypography -Text 'Drawer' })
```

Crea un nuovo AppBar con un drawer.

#### Esempio 3: app bar senza interruttore del tema

```powershell
New-UDAppBar -Children { New-UDTypography -Text 'Hello' } -Position relative -DisableThemeToggle
```

Crea un nuovo AppBar senza interruttore del tema.

#### Esempio 4: app bar con colore secondario

```powershell
New-UDAppBar -Children { New-UDTypography -Text 'Hello' } -Position relative -Color secondary
```

Crea un nuovo AppBar con un colore secondario.

\[Component("AppBar", "Creates an AppBar.")]


---

# 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/it/comandi-powershell/new-udappbar.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.
