Search
Active

1
Sign in to vote
0
Sign in to vote
Sign in
to vote
Type: Suggestion
ID: 507204
Opened: 11/1/2009 12:03:01 AM
Access Restriction: Public
0
Workaround(s)
Popup クラスとその継承クラスの StaysOpen プロパティを False の状態で表示すると、そのクラスがマウスをキャプチャしてしまいます。

この動作の影響により次の問題が発生します(ContextMenu クラスを例にします)。

1. ContextMenu を表示している状態で、非クライアント領域(閉じるボタンなど)を一回でクリックすることができません。2回クリックしてやっとボタンをクリックすることができるようになります。
2. ContextMenu を表示している状態で、同じアプリケーションの他のウィンドウを一回クリックしてもアクティブになりません。2回クリックしてやっとアクティブ状態になります。
3. WPF アプリケーション内にアクティブ状態の Window が一つもない場合に、ContextMenu を表示すると、他のアプリケーションやデスクトップをクリックしても ContextMenu が閉じられません。(NotifyIcon を右クリックした時に発生します。)
Details (expand)
対象製品
.NET Framework 4 Beta 1
対象オペレーティング システム
Windows Vista
提案内容
このマウスをキャプチャする動作を、キャプチャするかどうかをプロパティで制御できるようにして欲しいです。

捕捉:
これらの動作は、Windows OS の標準の動作と異なると思います。また、この動作では ContextMenu が重い動作に感じられます。もっと軽快な動作にするべきではないでしょうか?
提案による改善点
その他 (下記に詳細を記述してください)
その他の改善点
操作性の改善
File Attachments
0 attachments
Sign in to post a comment.
Posted by Microsoft on 11/2/2009 at 12:06 AM
この度は、フィードバックをお送りいただき、誠にありがとうございます。 現在、お送りいただきました報告内容に基づき問題を調査中ですので、しばらくお待ちください。 よろしくお願いいたします。

[Problem Description]
When you display the Popup class or its inheritor with the StaysOpen property set to False, the class captures the mouse. Affected by this behavior, the following issues occur (the ContextMenu class is used as an example):

1. When ContextMenu is displayed, you cannot click a non-client area (e.g., the Close button) by clicking it once. When you click a button twice, it can be clicked.
2. When you click another window in the same application once with ContextMenu displayed, it does not become active. You have to click it twice to make it active.
3. When ContextMenu is displayed with no active window in a WPF application, you cannot close ContextMenu by clicking another application or the desktop. (This occurs when NotifyIcon is right-clicked.)

[Suggestion]
This mouse capture behavior should be able to be controlled by a property.

Supplement:
I think the above behaviors are different from the behavior of the standard Windows OS. Furthermore, ContextMenu seems heavy in the above behaviors. Shouldn't it be much lighter?

[Benefits]
Others

[Other benefits]
Improved Operability
Posted by Microsoft on 11/3/2009 at 7:34 PM
Thank you for your feedback, We are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Posted by Microsoft on 11/3/2009 at 8:12 PM
(こちらは、[投稿者: Microsoft、投稿日時: 2009/11/03 19:34] の和訳です。)

フィードバックをお寄せいただき、ありがとうございます。 私たちは現在、Youryella さんからご投稿いただきました問題を調査しております。 もしこちらの件が緊急である場合には、直接弊社のサポート窓口 (http://support.microsoft.com) までお問い合わせください。