WPF: How to do a Word 2007 like context toolbar? - wpf-controls

I'm starting with WPF and would like to show a Word 2007 like toolbar when selecting a text in text editor. The toolbar looks like this :
alt text http://cdn.cloudfiles.mosso.com/c54102/x2_b4b4ca
Would like to know how to achieve the following
fade in fade out effect on a toolbar
split buttons
Could you please point me to the ressources where to start or what standard WPF controls should I use (Popup control, or ToolBar, or others).
Thanks in advance.

I answer my own question. I think that the better thing is to use mini-toolbar from Office UI for developper. You can get it from here :
http://msdn.microsoft.com/en-us/office/aa973809.aspx
And click the link "Licence the Office UI".

Related

HTML Edit preview in vertical landscape in Komodo Edit

I'm trying out different text editor for HTML coding. I want an editor with a preview mode instead of having to open it in a browser every time. I have tried Atom but my preview package is acting bugging and only moves left but cannot move to the right.
I found out that Komodo Edit 11.1 does a preview but right now it is only showing it in a horizontal preview. How do I make a vertical preview as shown below? (This is from W3Schools.com)
Here is what my Komodo Editor looks like now.
I have found the answer. To my own question. If you guys are looking for the same thing. Here is what you do.
Right-click at the top of the editor and click on "Show Menubar"
Hover your mouse over View and navigate down to "Rotate Split View"

How can I add an icon to a toolbar item in VisualStudio 2012?

I'm using VisualStudio 2012. There is the toolbar with a lot of icons. I can adapt the toolbar nearly fully to my wishes.
But, there are certain commands that have not got an icon associated.
When I add one of these to the toolbar, there is not shown an icon, but the associated text. Which may be quite long. In my case, I want to have "Rebuild Solution" on the toolbar. This does not have an icon. And I'm using the german version of VS, where the text is "Projektmappe neu erstellen". Very long and quite unpleasing to see this much amount of space on the toolbar used by one command.
I'd like to have an icon here instead of this looong text.
If it is impossible to show an icon, I'd be content with a possibility to rename the thing in the toolbar, e.g. to "X", which would use much less space on the toolbar, too.
You can set "X" name for a toolbar item in VS toolbar options with the Modify Selection button:

Using MenuBar and Ribbon Simultaneously in MFC

I want to achieve something like this
Is it possible in MFC? If yes, what is the ideal way?
Yes, it is. I was demanded to do it and now have an application displaying a menu and a ribbon. In my case my main window class is derived from CFrameWndEx and it has a CMFCMenuBar member and a CMFCRibbonBar.
But I agree with #Michael Walz it is a strange interface.
The rest of the work, is your job to investigate...
BTW, the ribbon on your picture does not seem to be really a ribbon as it has no tabs on its top. Is really a ribbon you want, or are you speaking about a toolbar?

WPF - Flahing button with a icon on it

How do I place two icons on a WPF button, one in the middle (static icon) and one on the top left (based on a condition)? Also need to Flash the same WPF Button based on a condition?
(While flasing it switches between two background colors, the icons remains same).
Not sure if anyone will want to help you develop super annoying flashing advertising ad style buttons :)
But to point you in the right direction the answer is in learning how to override default control template for the button then for flashing - work on Animation. Once you try that and encounter problems, then post your code and someone will help.
P.S. 'Adam Nathan's WPF Unleashed' is a good start. Good luck!

How to disable button of Ribbon ToolBar?

[Possible Duplicate]
Disable Ribbon Button
But I came with question, as I'm this question not answered and I'm looking for available server side solution.
I wonder if there is a way to disable button or many buttons from Ribbon toolbar from server side?
Using Ribbon.TrimById Method (String) you can locate Ribbon, RibbonButton or RibbonGroup to hide.
Complete sample to hide Ribbon buttons sharepoint 2010 programmatically.
I think you will want to look into the HideCustomAction option of the Feature Framework. http://msdn.microsoft.com/en-us/library/ms414790.aspx
It has the ability to hide some aspects of the default UI elements in the product and the documentation does talk about the Ribbon so it may do what you want.

Resources