tags:

views:

136

answers:

2

If you left click on the 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.

+2  A: 

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

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

Alastair Pitts
The key point being that the WPF ribbon is only a CTP. The Win32 one is considerably more stable, but is not leveraged at all for the WPF version. Keep an eye out for newer releases.
Zooba
+1  A: 

See this blog post.

ArildF
Thanks, ArildF, for flagging me down on this one. I've deleted my answer. I plead brain burn-out from a bus-ride from Vientiane, Laos to Chiang Mai, Thailand :) best,
BillW
Nice post, thanks. I went with AP Erebus' advice but this is technically the answer to the question.
karl.r