Is there an equivalent in WPF to the Titled Borders that exists in Java’s Swing framework? Below is a link that contains a screenshot of what I am looking for, and some very poor ASCII art.
http://www.java2s.com/Code/Java/Swing-JFC/TitledBorder.htm
-------TITLE--------
| |
| |
| |
|__________________|
Thanks.
What you’re after is called a "GroupBox" in Windows speak.
I’ve found this example of how to use it on C# Corner:
A GroupBox can only contain one direct child, so if you want several sub controls you’ll have to wrap them in a Grid, a Panel, or a ContentControl.
There’s more information on the GroupBox at the MSDN, it’s Class Page and How to Style it.
If you want the header text to be anything other than left aligned then you’ll need to create your own style (as outlined in this answer.