在wpf中如何修复单页中的所有控件 [英] In wpf how to fix all controls in Single Page

查看:78
本文介绍了在wpf中如何修复单页中的所有控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在WPF中制作小应用程序但是在小屏幕上运行它的开头(我修复了大小)但是在最大化屏幕后,所有控件都没有出现在同一个地方(对齐正在改变)PLZ任何人让我知道解决方案

I am Making Small Application In WPF but After running its opening in small screen(what ever size i fixed) but after maximizing the screen, all controls are not appearing in same place (Alignment is changing) plz any one let me know the solution

推荐答案

可能的解决方案是:



1.将控件安排在像<的布局中code> grid,stackpanel或canvas 根据您的要求



2.设置身高 widt h控件到auto



希望它有帮助:)
The possible solution are:

1. arrange your controls in a layout like grid, stackpanel or canvas according to your requirement

2. set the height and width of controls to "auto".

hope it helps :)


你想要固定布局而不管窗口大小?然后在窗口中找到根网格控件,并将高度和宽度设置为某些特定值。
do you want fixed layout regardless of windows size? Then find the root grid control in your window and set Height and Width to some specific values.


这篇关于在wpf中如何修复单页中的所有控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆