MaterialDesignInXAML / MaterialDesignInXAML/MaterialDesignInXamlToolkit
Allow collapsing overflow area of ToolBar
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- C#
- Star
- 16.3k
- Fork
- 3.5k
- Merge trung bình
- 1 ngày 22 giờ
- Pull request đã merge (30 ngày)
- 8
Mô tả
**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.
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu bằng cách xác định template ToolBar và ToolBarOverflowButtonVisibilityConverter được tham chiếu trong issue, sau đó kiểm tra cách vùng overflow được hiển thị trong XAML. Thêm một behavior XAML có thể cấu hình để thu gọn vùng đó mà không thay đổi các cách sử dụng Grid khác, và xác minh rằng các toolbar có và không có overflow được render như mong đợi.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- csharp
- Lĩnh vực
- design, desktop
- Loại issue
- Tính năng
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100