Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
イベントTreeViewをトリガーするWPFがあります。SelectedItemChangedでアイテムを選択するたびに、選択したアイテムとツリー内の選択したすべてのノードの祖先TreeViewに対してSelectedItemChangedイベントがトリガーされます。
TreeView
SelectedItemChanged
SelectedItemChangedイベントが複数回発生するのを防ぐにはどうすればよいですか?
ハンドラにe.Handledtoを設定します。true
e.Handled
true
編集
このテーマの最新情報として、このブログ投稿をご覧ください。