最小化时控制收缩,然后最大化主窗体 [英] controls shrink when minimize and then maximize main form
本文介绍了最小化时控制收缩,然后最大化主窗体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨
我的项目是在wpf mvvm,目前我遇到了一个问题。我有一个屏幕,其中我有树视图,按钮,组合框文本框和数据网格控件。
Everythin在首次使用时工作正常,但是当我调整主窗口大小时,我的所有控件都缩小并且当我最大化时变得非常小屏幕。
i我使用网格进行布局,这个网格有4行1,3,4的大小是自动的,而第2行有*大小。 />
数据网格在第二行。
Hi
My project is in wpf mvvm and currently i am facing a issue. I have a screen in which i have treeview, button, combobox textbox and datagrid controls.
Everythin works fine on first use but when i resize the main window all my controls shrink and become very small when i maximize the screen.
i am using grid for layout and this grid has 4 rows 1,3,4 are given the size auto while 2nd row has a * size.
the datagrid is in second row.
推荐答案
请参阅我对该问题的评论。了解WPF布局: http://wpftutorial.net/LayoutProperties.html [ ^ ]。
几乎不可能给你更具体的建议根据您的信息。
-SA
Please see my comment to the question. Learn about WPF layout: http://wpftutorial.net/LayoutProperties.html[^].
It's hardly possible to advise you something more specific based on your information.
—SA
这篇关于最小化时控制收缩,然后最大化主窗体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文