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?
Related
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.
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.
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.
I installed Blend 4 RC recently but strangely it deleted some of my VS2010 projects templates, including the most important ones being Silverlight User Control and Silverlight Application.
Does anybody know how to get back these templates or tell VS2010 to reset all templates?
A bit frustrating, I'm having to create projects on my laptop then copy them to my desktop manually :(
No matter, I just reinstalled SL4 Tools and I've got my templates back once more.
Blend 4 RC also confused VS2010 on my machine, causing the WPF UserControl template to disappear. I don't use the SL4 Tools, so solved the problem on my machine by placing the template from Program Files\Microsoft Visual Studio 10.0\Common7\IDE\ItemTemplates\CSharp\WPF\1033 in My Documents\Visual Studio 2010\Templates\ItemTemplates\Visual C#\WPF.
A better solution is also described here.
We have a system built using WPF and have (until recently) been developing using Visual Studio 2008 SP1 and Windows XP SP3.
We have upgraded some of our development boxes to windows 7 and we have discovered we are getting some unexpected behaviour when running our applications. Some controls do not display at all.
Has anybody else experienced issues like these and if so, how can we make them work?
Thanks in advance.
Just a guess I had some similar issues with controls (buttons in my case) that were using the DropShadowEffect. The solution was to switch from DropShadowEffect to DropShadowChrome.