MaterialDesignInXAML / MaterialDesignInXAML/MaterialDesignInXamlToolkit

ToggleButton throws exception if IsThreeState is enabled

Đang mở
#2,133 4 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

bug
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ả

The ToggleButton throws an exception if the "IsThreeState" property is set to true and the button is clicked.

Exception thrown: 'System.InvalidOperationException' in PresentationFramework.dll
An unhandled exception of type 'System.InvalidOperationException' occurred in PresentationFramework.dll
Der Name "IndeterminateCheck" wurde im Namensbereich von "System.Windows.Controls.Grid" nicht gefunden.

Translated it would probably s.th. like: `The name "IndeterminateCheck" could not be found in the namespace of "System.Windows.Controls.Grid"`

Versions:
MaterialDesignThemes: 3.2.0
MaterialDesignColors: 1.2.7

Example Repo: https://github.com/badcel/BugMaterialDesignToggleButton.git

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Hướng nghiên cứu

Start by running the linked BugMaterialDesignToggleButton example with MaterialDesignThemes 3.2.0 and clicking a ToggleButton with IsThreeState enabled. Trace the ToggleButton behavior around the IndeterminateCheck lookup and reproduce the InvalidOperationException. Done means three-state clicking no longer throws and the indeterminate state works.

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
desktop
Loại issue
Lỗi
Độ 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

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.