Using the excellent Microsoft Ribbon for WPF for .NET 4 (not the .NET 4.5 build in class) I'm trying to achieve a ribbon like in Office 2010:
However I cannot get the File text to be shown on the ribbon:RibbonApplicationMenu.
If I change the project Wizard generated code from
<ribbon:RibbonApplicationMenu SmallImageSource="Resources\SmallIcon.png">
to
<ribbon:RibbonApplicationMenu KeyTipService.KeyTip="F" Label="File">
I get this:
Notice that the text File is not shown. What am I missing?
Looks like you will have to use GlyphRun to display custom text in the head of RibbonApplicationMenu. Please refer to the accepted answer on thread How to set text at the head of a RibbonApplicationMenu
Microsoft needs to fix this. It should work by just setting the "Label" as you described.
EDIT:
I just realized that Microsoft isn't even using the RibbonApplicationMenu...
Look at the following images again:
Microsoft Word is using just a Tab, and turning it blue! (something i haven't figured out how to do)
They really should fix this!
Also, I noticed that Microsoft's blog on the topic just uses Icons:
http://blogs.msdn.com/b/wpf/archive/2010/08/03/introducing-microsoft-ribbon-for-wpf.aspx
Related
using VS 2013 and MahApps. I want to create a simple totally custion dialog, and am lost.
I would like to use XAML, but only code is also OK. The examples and documentations are very limited. Anyone can walk me through this?
Thanks!
There's already an answer from MahApps author.
He suggested to replace the dialog template with a style.
Also, there's a SimpleChildWindow project that he's supporting. It's not totally custom but surely simple.
I'm interested in creating a window in WPF that has a style similar to the way Visual Studio 2012 looks (the seamless window with color around edges, color is not necessary). This might not be a very programming - oriented question, but does anyone know of a library like the Fluent Ribbon library that can create this style?
Thanks!
I think if you look for the term "Custom Window Chrome" you'll get answers about what you're looking for. I wrote a library a while back that did a lot of the work for this:
http://archive.msdn.microsoft.com/WPFShell
There's also a blog post linked there that explains how it's implemented:
https://learn.microsoft.com/en-us/archive/blogs/wpfsdk/custom-window-chrome-in-wpf
So I seen a nice example layout in the http://www.sellsbrothers.com/tools/#ShowMeTheTemplate Metro/JS Template for VS11.
It looks like this:
I really like the look of this and I was wondering how I could achieve this in WPF, not really that great with the various controls/layouts and content of WPF yet. Could anyone get me started with how to achieve something similar to this?
What I am really looking for is an xaml code snippet for VS2010 (WPF) of one of the group containers and how they are aligned as such in the picture? I mean I dont even really know what containers/controls you would use for something like this but it sure as hell looks sweet!
Bare in mind Im not fussed about the background/application title just something where I can get that type of grouping/structure and layout similar to this in vs2010 WPF?
Are you looking for the default application in Visual Studio 11?
File -> New Project -> Visual C# or Javascript -> Grid application
UPDATE:
if you want to get more ideas about C#/XAML metro application before you install Windows 8 Consumer Preview, go to this page and take a look at the snippet.
Hi In Office 2010 you get a popup window if you click on ? or press F1
(Sorry for the Danish text)
Before I start coding my own popup Window in WPF, I would like to know if there is some standard behind it, like the good old .CHM file. Microsoft Compiled HTML Help
It is called Vista (Assistance Platform) Help.
Since I have to support XP, I haven't looked into it really (stuck to CHM), but Vista+ has some other helpsystem. I've dug the following links up from my Help link collection
http://helpware.net/aphelp/default.htm
http://www.help-info.de/en/Help_Info_AP_Help/ap_help.htm
http://en.wikipedia.org/wiki/AP_Help_1.0
Microsofts Doxygen like tool "Sandcastle" also seems to use it:
http://en.wikipedia.org/wiki/Sandcastle_%28software%29
I was putting finishing touches on a new WPF/Silverlight custom control and decided that this time I would go with .NET 3.5 SP1 requirement (for WPF version). So, I decided to go with recommended new way of setting toolbox icon/image with ThumbnailAttribute. After spending some time on it I couldn't make it work and turned for help to Google.
Surprisingly a search for ThumbnailAttribute produces basically no results on Google. There's MSDN documentation of the class, a few irrelevant hits and 2 articles (one of which is mine) showing how to do it the old way and just mentioning that there's a new way with ThumbnailAttribute.
So, my question is this: does anybody use ThumbnailAttribute to set toolbox images for WPF/Silverlight controls? Does it work?
Update: Microsoft recommends using specifically named icon files rather than ThumbnailAttribute as per Michael S. Scherotter (see comment below).
You want to create a design-time assembly for your class. You do this to assign design-time attributes to a class that don't take up space in the assembly. This is important for Silverlight apps which should have smaller assemblyies for faster downloading.
See this article for an description of the design-time assembly.
For Icons, in the design-time assembly add 12x12 and 24x24 PNG icons as embedded resources with these names:
Namespace.ControlName.12x12.png
Namespace.ControlName.24x24.png