MaterialDesignInXAML / MaterialDesignInXAML/MaterialDesignInXamlToolkit
Glitch with controls inside cards
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ả
Bug explanation
It appears that there is a visual glitch whenever a certain controls are clicked on dark theme (when they're inside a card).
An example:
<Button Grid.Row="3" ToolTip="Actualiser"
Width="24" Height="24" Command="{Binding RefreshCommand}" Style="{StaticResource MaterialDesignToolForegroundButton}" >
<materialDesign:PackIcon Visibility="{Binding ElementName=DemoItemsListBox, Path=SelectedItem.AddButton}" HorizontalAlignment="Center" VerticalAlignment="Center" Kind="Refresh" Width="24" Height="24"></materialDesign:PackIcon>
</Button>
Results (when inside a card):

Results (when I put the exact same code outside of the card):

Same thing with a DataGridView when it's inside the card (it's not that apparent, but you can see the glitch on the left side of the sort arrow:

This also happens with the Light theme switched ON.
What could be the problem here? I'm suspecting its the window hosting this UserControl, but I'm not sure where to start looking.
If I host these buttons on a dialog, or something, they work just fine.
Version
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 tái hiện hành vi được báo cáo của Button và DataGridView bên trong và bên ngoài một thẻ bằng các theme tối và sáng được mô tả trong issue. So sánh kết quả hiển thị trong phiên bản 4.5.0; được xem là hoàn tất khi các control bên trong thẻ được render mà không gặp glitch đã báo cáo ở cả hai theme.
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
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 28/100