MaterialDesignInXAML / MaterialDesignInXAML/MaterialDesignInXamlToolkit
Allow collapsing overflow area of ToolBar
Dieses Issue hat noch niemand übernommen.
- 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:

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
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Ö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