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.
ListBoxItem のコンテンツをコピー可能にするにはどうすればよいですか? 編集できません。
これは、コンテキスト メニュー、ボタン、またはキーバインド (Ctrl+C) を使用して実現できます。
ビューモデルで ListBoxItem コンテンツの準備ができている場合は、上記のいずれかによって開始されたコマンドで次のように言います
Clipboard.SetData(DataFormats.Text, (Object)contentOfListBoxItem);
これにより、contentOfListBoxItem がクリップボードにコピーされます