Visual Studio,wpf,groupbox [英] Visual Studio , wpf ,groupbox

查看:235
本文介绍了Visual Studio,wpf,groupbox的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello


请帮帮我。



在Visual Studio中 C#,Wpf, groupbox 。如何输入 groupbox 四个按钮,我可以放一个,这个按钮自动放在中间。


我需要在 groupbox


这是针对 groupping


提前致谢。

解决方案


你没有说你想怎么改变布局。我的预测非常基本,所以它是样本。


< GroupBox Header =" My Groupbox"> 
< StackPanel Orientation =" Vertical">
< Button Content ="按钮1" />
< Button Content =" Button 2" />
< Button Content ="按钮3" />
< Button Content ="按钮4" />
< / StackPanel>
< / GroupBox>


要更改布局,只需将属性Orientation更改为Horizo​​ntal。

如果您需要任何进一步的帮助,请说。


Hello !

Help me please.

 

In Visual Studio , C#, Wpf, groupbox . How can I put in groupbox four buttons i can put one and this automatically placed in the middle.

I need easy change layout inside groupbox .

This is for groupping .

Thanks in advance.

解决方案

Hi,

You didn't say how do you want to change layout. My prediction was really basic, so it's sample.

<GroupBox Header="My Groupbox">
    <StackPanel Orientation="Vertical">
        <Button Content="Button 1" />
        <Button Content="Button 2" />
        <Button Content="Button 3" />
        <Button Content="Button 4" />
    </StackPanel>
</GroupBox>

To change layout, just change property Orientation to Horizontal.

If you need any further assistance just say.


这篇关于Visual Studio,wpf,groupbox的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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