MaterialDesignInXAML / MaterialDesignInXAML/MaterialDesignInXamlToolkit

Allow collapsing overflow area of ToolBar

Offen
#2,723 9 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

enhancement up-for-grabs
Vorherrschende Sprache
C#
Sterne
16.3k
Forks
3.5k
Ø Merge
1 T. 22 Std.
Gemergte PRs (30 T.)
8

Beschreibung

**Is your feature request related to a problem? Please describe.**
A ToolBar always contains the area for the overflow, even there is no overflow at all. I am not sure if this is intended behavior or no. For small toolbars I find this rather annoying.

Here a small example, the overflow part is the lighter area to the right of the ‘B’ button:
![grafik](https://user-images.githubusercontent.com/3511772/171138302-565e7bbc-97b2-452d-a10e-a1e6f2f77bd6.png)

In the package code itself I can get achieve my expected result by changing `ToolBarOverflowButtonVisibilityConverter` to return `Visibility.Collapsed` instead of `Visibility.Hidden`. But I guess that could cause issues in other use cases.

**Describe the solution you'd like**
The behavior of the overflow area is configurable in XAML.

**Describe alternatives you've considered**
My current workaround is to collapse the overflow grid using an implicit style:
```XAML


<Setter Property="Visibility" Value="Collapsed" />

```
This works only as long as there are no other uses of Grid.

**Additional context**
This is based on to 4.5.0.

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Beginne damit, das im Issue referenzierte ToolBar-Template und ToolBarOverflowButtonVisibilityConverter zu finden, und untersuche anschließend, wie der Überlaufbereich in XAML angezeigt wird. Füge ein konfigurierbares XAML-Verhalten zum Ausblenden dieses Bereichs hinzu, ohne andere Grid-Verwendungen zu ändern, und überprüfe, dass ToolBars mit und ohne Überlauf wie erwartet gerendert werden.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
csharp
Bereich
design, desktop
Issue-Typ
Feature
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.