WPF Ribbon changes title bar style in XP - wpf

[EDITED]
After several tries, I found out it was the Microsoft WPF Ribbon that causes the title bar style not rendering correctly.
Application without Ribbon in XP:
Application with Ribbon in XP:
I have already set the theme to be XP style. Still not fix. It is a bug in Microsoft Ribbon or am I missing something? On Window 7, on the other hand, renders OK.
Develop on WPF C# .NET 4, VS2010.

Why do you care? this is a user setting to have Aero enabled or not in Vista or 7 and theming enabled or not in XP like in 2 and 3 pictures you sent.
In general you should ignore this. Office 2007 and 2010 with ribbon UI renders the same but because ribbons are skinning the application windows completely.
My suggestion is to either use skins and do the same or simply ignote this because if I use Vista with Aero enabled I would not like your App to look like classic Win2000 applications.

This is anyways an issue with the window title bar as it will use the default theme of the OS you are using.
I suggest you to neutralize the style by implementing a custom window style that takes the windows 7 look n feel for all windows ion your applications. Have a look at the MessageBox control from latest extended WPF toolkit.
It has a windows 7 style themse that looks exactly same on all the above OS if you use
Window.AllowsTransparency="False"
Window.WindowStyle="None"
Window.Style="{StaticResource Windows7WindowStyle}"

Related

How to make a flat ribbon look like File Explorer Windows 8.1 in Windows Forms C#?

I want to create ribbon tab (flat style - look like File Explorer Windows 8.1 and Office 2013) in my windows form C# project. Please help me! I try using OfficeRibbon with dll file (https://officeribbon.codeplex.com/) but it only it only Office 2007 Ribbon. Office 2013 is flat style but it doesn't work.
Use DevExpress Ribbon .This Tool Provide Ribbon form MDI with document manager and lot of customized controls and Skins for windows form .
The OfficeRibbon control's office 2013 style is almost there, straight out of the box:
You might need to apply your own theme to get it similar in color to Windows 8. More on theming HERE

Microsoft Ribbon for WPF (4.0.0.11019)

I am using the latest WPF Ribbon control downloaded from http://www.microsoft.com/downloads/en/details.aspx?FamilyID=2bfc3187-74aa-4154-a670-76ef8bc2a0b4&displaylang=en
In Windows XP, the Ribbon application window’s title bar looks like from Windows 98… or like from console window. How can I improve the appearance of tittle bar.
Answered by a Microsoft Consultant:
The RibbonWindow ships with three templates as of the October 2010 release - Classic, Aero Basic, and Aero with glass. On XP's Luna theme, we fall back to displaying the Classic look for the RibbonWindow. It should be fairly easy to retemplate RibbonWindow to achieve the native XP look - use our RibbonWindow templates in the Ribbon Source and Samples MSI as an example. If we get feedback from several customers that the Luna theme is a top request, we will definitely consider including that for our next release.

Windows 7 Aero theme

I've already check stackoverflow and the web for my problem, but I can't find any answer.
I can't find a way to have the Windows 7 Aero theme working. I mean, I have the Aero style from PresentationFramework.Aero, but it has the Vista look, the blue selection is not exactly the same.
This is the Windows 7 theme in Windows Explorer
And this is mine (the Aero look, I got by follow this thread)
I Have already managed to do the same ,as windows 7, by hand, but it's a pain to have to style every control, in order to retrieve this effect. Do you know if there is any way to get the Windows 7 Aero?
There is no way to achieve this out-of-the-box. The default WPF List- and TreeView controls are extremely lacking in functionality (compared to the native counterparts) and the whole WPF Aero theme is severely missing polish. It wasn't updated for Windows 7 (which Aero-variant looks also better than Vista), and it doesn't even look like Vista. Apparently many people are satisfied with a half-assed copycat theme (also judging by lots of fake-looking Windows styles in UI toolkits).

Windows 7 Status Menu style Window

I'm working on a project and I'm wondering how to get a type of window common in Windows's wireless controls, as shown in the screen shot below:
(source)
There's no close or maximize buttons, but the border is still present. My tools include Expression Blend 3 and Visual Studio 08. I was also wondering what the font used on these are, as it doesn't seem to be the normal Tahoma found in Office 7.
That font is Segoe UI. It comes with Office 2007 and Windows Vista/7.
I don't know about the font, but you can set WindowStyle=None on your Window to get the border-only effect.

Menu Format is different in Windows 7 vs Windows XP for a Winforms app

I have a Winforms app that was originally created in vs 2005 and that was converted to vs 2008. When running this app in Windows 7, the menus don't look like the standard menus in Windows 7 (i.e., the formatting for the menu items is different than the formatting for other applications). This applies to menus displayed on the menu bar of the application as well as the right-click context menus. FYI, I am using the System.Windows.Forms.MenuStrip and the System.Windows.Forms.ContextMenuStrip controls.
Does anyone know why the menus aren't rendering with the default Windows 7 look and feel?
MenuStrip uses a custom renderer, it doesn't leave it up to Windows to draw the menu. You can change the RenderMode property to System but that doesn't help, it's a pre-Win7 version of what system-drawn menus looked like. If you want Windows to render the menu then you'll have to fall back to the .NET 1.1 MainMenu component. Another way is to assign the Renderer property to your own custom renderer, not really practical.
This is also an issue with WPF, worse because it renders all the controls itself. We are quickly approaching a stage where the look-and-feel of a program is determined by the UI class library, not the operating system.
If you have any OWNERDRAW items in your menus, Windows 7 will revert to a backward compatible drawing mode to avoid breaking your code. Do you override the drawing of any of the items?

Resources