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.
トリガーされたときにポップアップする WPF ウィンドウがあります。ポップアップ ウィンドウには、いくつかのテキスト ボックスがあります。テキスト ボックスの 1 つを選択して入力を開始すると、フォーカスが Excel スプレッドシートに移動し、キーストロークがアクティブ セルに送信されます。どうすれば修正できるか知っている人はいますか?
ありがとう
解決策を見つけました。
ポップアップ ウィンドウを表示する前に、次のプロパティを変更する必要があります。
Globals.ThisAddIn.Application.Interactive = false;
そして、閉じるときにtrueにリセットします
Globals.ThisAddIn.Application.Interactive = true;