C# 自动增大和缩小控件的窗体大小
C# Automatic Grow and shrink of control with form size
我现在正在构建一个程序,但需要一些 C# 方面的帮助。我希望程序随窗体增加控件并随窗体收缩但与窗体保持正确的关系。
像这样?
<DockPanel VerticalAlignment="Stretch">
<Button DockPanel.Dock="Top" Margin="10,10,30,30">My control</Button>
</DockPanel>
我现在正在构建一个程序,但需要一些 C# 方面的帮助。我希望程序随窗体增加控件并随窗体收缩但与窗体保持正确的关系。
像这样?
<DockPanel VerticalAlignment="Stretch">
<Button DockPanel.Dock="Top" Margin="10,10,30,30">My control</Button>
</DockPanel>