How to left align window title in Windows 8 / 2012? - wpf

Is there a way to (intrinsically) left align window title in Windows 8 or 2012 machine?
The Window's title in Window 8 or 2012 is horizontally center-aligned.
We have a WPF application that is ported to Windows 8 / 2012 machine. We are testing it along with couple of our clients and the clients need the title of the window to be left aligned as it was in Window 7 or XP.
I know we can do this using ControlTemplate in WPF but that would be too much for this little thing.
I am sure this is question is going to come up as more applications are ported to Windows 8 / 2012.
Is there any quick solution to this? Or do you know if Microsoft is going to give this flexibility in final releases of Windows 8 or 2012?

It is the default behavior of Windows 8, so it isn't advised.
ALTHOUGH Visual Studio 2012 left-aligns the titles, so it is possible, however inconsistent it may be.
It's doubtful Microsoft will offer up how to override the default functionality or change it since it is already RTM. This may help you get some of the way.

All window titles in Windows 8 are center aligned. Forcing an application title to be left aligned in Windows 8 would be almost like forcing the minimize and maximize buttons to show up on the left side of the window.
You may be able to accomplish this using a custom draw window like DXWindow from DevExpress. See this post:
http://www.devexpress.com/Support/Center/p/Q298641.aspx
However, the application will appear out of place on Windows 8 and may not pass desktop application certification.

Related

Default DPI effects on Visual Studio and Windows Forms

I am having a strange effect when editing a legacy Windows Forms project in Visual Studio 2015 on my new computer with a high DPI (150%) setting. When I edit the project on the laptop screen (DPI 150) everything appears normal and the forms' default font is the standard size of 8pt (note Visual Studio's menus and text all appear correctly), but when I dock the laptop and use on my monitors with a DPI of 100 all the forms get increased to a font size of 15.25. It's almost as if somewhere, when I installed Visual Studio (and SQL Server Management Studio for that matter), they registered the DPI 150% setting as the default and when I drop back down to 100% everything is getting inverted (150/100). Anyone have any experience with this? I can't follow other articles to get my Windows Forms project DPI-Aware if I can't get back to a 96 DPI baseline.
I have solved my own issue. Documenting here for anyone else who might have this strange experience. When docked, I had three displays connected, two 1920x1200 monitors through DVI and one 1024x768 projector through VGA. Apparently this extra projector connection was creating some sort of strange DPI issues in Visual Studio's form designer (and SQL Server Management Studio's query results). Disconnecting the VGA connection fixed the problem.

WPF Formatting Issues for Fonts Between Windows 8 and Windows 7

I have written a basic WPF VB.net application, in Visual Studio 2012 in Windows 8.
The program basically takes over the full screen and displays text that is supplied from a XML it is meant to fill the screen based on the screen resolution and size.
The problem that I am having is to do with formatting. If I run the application up in Windows 8 the text will fill the screen correctly.
As soon as I run the application in Windows 7 on any PC it seems to change the spacing and end up leave space at the bottom of the screen.
I have checked the follow and not been able to find any reason for it:
1. Screen resolution (they are both running 1650 X 1080 at 96 dpi)
Copied the Fonts from the Windows 8 install ( no change)
Tried a different types (Tahoma, Segoe, Century Gothic) nothing changes .
Checked over all setting on Windows 7 (With or with out Aero theme, with or without Taskbar)
This is a similar issue to what I have
Differing char spacing in a WPF RichTextBox
But this still has not fixed my issue. ( http://msdn.microsoft.com/en-us/library/vstudio/system.windows.media.textformattingmode%28v=vs.100%29.aspx)
Any help on this would be great as I am really stumped to what the actual issues is and or could be.
here is some images of what the issues are
http://tmblr.co/Z3zZjsgWM-BG

Alignment issues with a WPF application and Windows 8

I just deployed my WPF application to Windows 8 and was shocked to see that none of my labels line up with their respective textboxes! In both Visual Studio 2010 and 2012 they snap-to and line up perfectly in the design view. They also line up perfectly when the application runs in Windows 7 and XP. I'm using the same resolution/DPI settings for both deployments. Has anyone else noticed this issue? Does anyone have any ideas as to why this is happening?
Are you manipulating the size of the TextBoxes or labels in your application?

Winforms control spacing in Windows 7

We have an in-house .net 2.0 winforms app currently developed on Visual Studio 2005 in Windows XP. Everyone in the office until now is running Windows XP, and there are no issues.
We recently ordered a new computer with Windows 7 for one of our managers we were hoping to use, and the app installs fine. The issue is the spacing around every label, textbox, and button - making some forms not fit.
Is there some setting that we can use to make Windows 7 display each control where it is placed in our XP development environment and like the rest of our XP clients show?
Ugh, what kind of idiot management team gives a new machine to a manager instead of a programmer?
Control Panel + Display, Advanced tab, change the DPI setting to repro the problem on your XP machine. Read the docs for the Form.AutoScaleMode to find out what's going on.

Am I missing some controls for windows mobile?

I'm a C# developer taking my first steps in Windows Mobile development. I've installed Visual Studio 2008 SP1 and the Windows mobile 6 Pro and Standard SDK's. Now I am trying to create a simple winforms application.
The problem is that when I set the Target Platform to Windows Mobile Standard, I seem to be missing a lot of controls. For example, there is a checkbox, but there isn't even a simple button (take a look at this screenshot ). When I switch to Windows Mobile 6 Professional, I get all kinds of controls.
What could be the problem? I've already tried to repair the WM 6 standard SDK, but that did not help.
Thanks,
Adrian
That's correct. Windows Mobile Standard, also known as Smartphone, doesn't have a touchscreen. All interaction is done through the two menu action buttons. Because of this many controls, like buttons, don't make sense and are therefore filtered from the toolbox.

Resources