Glitch with controls inside cards

オープン
#2,907 コメント 6 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
28/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
csharp
領域
design, desktop

調査の方向性

まず、issue で説明されているダークテーマとライトテーマを使い、カードの内外で報告された Button と DataGridView の動作を再現します。バージョン 4.5.0 で視覚的な結果を比較します。両方のテーマで、カード内のコントロールが報告されたグリッチなしにレンダリングされれば完了です。

索引モデルが issue の本文から書いたものです。

説明

bug evaluation required
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):

P2FCXguasE

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

nVxHWSuinA

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:

X332xQt42Y

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

主要言語
C#
スター
16.3k
フォーク
3.5k
平均マージ
4時間 25分
マージ済み PR(30日)
4

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

MaterialDesignInXAML/MaterialDesignInXamlToolkit のほかの issue

MaterialDesignInXAML/MaterialDesignInXamlToolkit の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。