Text boxes overlap in windows 8.1 app - c#

I have a problems with text boxes overlapping when I use an emulator with different screen size. What is the best way to optimize my output so it is independent of phone screen size and resolution?
Here is an example of the issue I am running into
This is written in C# with XAML.
http://1drv.ms/1znAqJ9
thank you in advance for any help.

The reason they Overlap is because I believe you have explicitly defined the Margin Pixels in your Code which does not allow relative scaling on different sized phones.
As per your Images, I see you want text boxes in a Horizontal aligned Format.
So I suggest you Use a Stack Panel with the Orientation Property set to Horizontal and Add all your TextBoxes to the Stackpanel.
Then they will scale automatically in different Resolutions in Emulator.

Related

Windows forms dynamically evenly distribute controls?

I am making a lot of camera tracking applications. I want to open the selected cameras in a layout. But mostly one camera will be watched. But I also have to do something to watch multiple. I want the screen to be divided into 2 when there are 2 cameras and when there are 3 cameras, the screen will be divided into 4. I couldn't do it with FlowLayoutControl. Because it is necessary to give dimension to the video control that I added. How should I do such a thing. I'm adding a screenshot of the fixed size control insertion part. I did the thing in the image but gave 200x200 dimensions to the controls inside. This is not what I really want to do. I want controls that change dynamically in size according to the number of controls. How do i do this?

Don't auto scale zoomable picture box

I’m writing in c# with Visual Studio 2013. I need to have a pixelPictureBox that the user can zoom (1:1 only) and move what parts show. I also want to make the window it’s in scalable and allow more or less room for the picture. However, this is causing white space to be added when the 2 shapes don’t match, which is not OK. I can take care of properly scaling the pixelPictureBox, but I need to stop the automatic scale from happening. Is there any way to do this? Thanks!
This looks like it's actually a problem with the display panel size and the image size. Before I've zoomed it, the image is bigger than the display area but it still wiggles with a bit of white space when the user drags it one way or the other.

Button didn't change its size based on the screen resolution

How can I make my Windows Store App look great on large resolutions? For example a Button - how can I change its font size based on the resolution? If I view my app on 13" the button looks OK, but if I view it on 27" display it looks very, very small. Isn't something to be used in the Windows store apps framework to adapt a button, textBlock, etc to the screen resolution?
Set StretchDirection="Both" & StretchProperty="Fill" in ViewBox
This is a consequence of screen scaling based on DPI... which makes your button the same physical size on both monitors, but totally ignores the fact that the user sits/stands much closer to one than the other. Maybe someday we'll have a not-stupid scaling scheme that works based on subtended angles.
Large format monitors already have larger pixels, I suggest you simply opt out of display scaling in your application. (But do respect the global system font size settings)
I'm not sure what the opt-out setting is in XAML (WPF), but in WinForms, I'd be changing the AutoScaleMode property.

Control Screen Brightness in WIndows Phone 7

Is it possible to to use c# to change the screen brightness? I know some apps can control it so if there is not a direct way then does anyone know of a workaround?
Thanks
Unfortunately you don't have that level of hardware control, but if you only need to make the screen dimmer, you just need to scale down the RGB values of each pixel.
Depending on what you're working with, there are a number of approaches, but if you have a black background, you can just adjust the opacity of your front layer, which will effectively dim the content.

Why does windows form resize on a different computer

I have a form that I have sized to what I wanted, it has a few panels, some buttons and some labels on it but when I open it on a different computer, it is resized and it is larger. I am using visual studio 2008. I know this is very little detail but I thought maybe someone knows of a known issue or some troubleshooting steps that I can take.
Possible reasons for this are different screen resolution and different DPI.
Several possible reasons. First and foremost is the form's AutoScaleMode property. The default, Font, ensures that both the font and the controls get resized to leave enough room for any displayed text. Text size is measured in points, 1/72 of an inch. If you run your program on a machine with a larger dots-per-inch setting for the video adapter, the fonts grow accordingly and need more pixels. That needs the controls to be bigger as well to prevent clipping the text.
Another reason is user preferences for border width (Aero) and caption bar height. A form is sized based on its designed ClientSize, the actual Size at runtime will be determined by adding those preferences to the design size. That's very rarely a problem.
May be the computers have different screen resolution and that's why it appears small in one and large on the other computer
Diffeent resolutions, different browsers, different versions. If you want o keep this from happening, you must specify their width and height.

Categories