WPF GroupBox [英] WPF GroupBox

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

问题描述

我正在尝试做一些事情,例如GroupBox的标题位于左上角的边框和边框之间具有对比色。任何帮助都表示赞赏。

I am trying to do something like where the header for the GroupBox sits between the border on the top left corner and the border has contrasting colors. Any help is appreciated.

推荐答案

您要做的是以下内容:

What you want to do is the following:

1. 将一个分组框添加到您的窗口/ UserControl

1.  Add a groupbox to your window / UserControl

2. 右键单击组合框。

2.  Right click on the groupbox.

3. 选择编辑模板/编辑副本

3.  Select Edit Template / Edit a Copy

然后,您将在资源中添加GroupBox的模板。 然后,您可以操作模板,以便组框看起来像您想要的那样。

Then you will have added the template for a GroupBox in your resources.  You can then manipulate the template so that the groupbox looks as you want.


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

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