开发者

How can I disable the window icon context menu

If you left click on t开发者_高级运维he top left icon in a window's title bar a context menu comes up (Restore, Move, Size, etc.)

How can I disable the menu? My apps Ribbon application button overlaps that area and it comes up sometimes while pressing the button.

IconVisibility="Collapsed" or IconVisibility="Hidden" hides the icon but the click event is still triggered.


If you are using the Office 07 skin (as most of the examples around on the net use), this is a bug. You may have also noticed the hit detection for the Orb is a bit dodgy.

When I was developing our UI, I was forced to change skin because I found the Office 07 skin too buggy.

My recommendation, as Microsoft has changed the Office 2010 ribbon to look like this: Office 2010 ribbon http://pakblogger.com/wp-content/uploads/2009/05/2010-21.png

is to use the base skin, which looks essentially the same. Then you can remove the icon like normal if you wish.

EDIT: To use the base skin, just remove the code in the XAML that sets the skin.

This is the pitfall of using the CTP, there is bugs and there isn't much you can do about it

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜