MaterialDesignInXAML / MaterialDesignInXAML/MaterialDesignInXamlToolkit

Seemingly random binding errors for PopupBox

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

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

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

説明

I seem to get this error at random times during the execution of my application:

System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='MaterialDesignThemes.Wpf.PopupBox', AncestorLevel='1''. BindingExpression:Path=Foreground; DataItem=null; target element is 'PackIcon' (Name=''); target property is 'Foreground' (type 'Brush')

It's not completely "random" as it seems to coincides with clicking on some UI element. The funny thing is, the element that is clicked on is typically NOT a PopupBox. Is anyone else seeing this? Is there perhaps an error in my code somewhere that I could trace this to and not a bug?

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

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

調査の方向性

まず、説明されている UI 要素をクリックして報告された binding エラーを再現し、その後、メッセージで示されている PopupBox と PackIcon の binding 関係を調査します。完了条件は、エラーの発生元が toolkit かアプリケーションかを判断し、再現可能な原因または修正を文書化することです。

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

評価

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

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

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