Files
docs-desktop/dotnet-desktop-guide/framework/wpf/controls/how-to-define-a-groupbox-template.md
T
Andy De George da363692ff Initial WPF content migrated (#17)
* Reset branch for WPF changes

* Convert BMP to PNG; fix link-out-of-scope err

* Add snippets for WPF... 6794 files!!!!

* Add missing snippets

* update file updated between migration

* Fix paths to include

* update breadcrumb and toc

* fix index links

* fix index links

* fix index links

* fix markdown
2020-09-04 09:46:28 -07:00

1.1 KiB

title, ms.date, helpviewer_keywords, ms.assetid
title ms.date helpviewer_keywords ms.assetid
How to: Define a GroupBox Template 03/30/2017
controls [WPF], GroupBox
GroupBox control [WPF], creating templates
85a4d1a7-4753-4f4a-b26d-14fa10c1ddb5

How to: Define a GroupBox Template

This example shows how to create a template for a xref:System.Windows.Controls.GroupBox control.

Example

The following example defines a xref:System.Windows.Controls.GroupBox control template by using a xref:System.Windows.Controls.Grid control for layout. The template uses a xref:System.Windows.Controls.BorderGapMaskConverter to define the border of the xref:System.Windows.Controls.GroupBox so that the border does not obscure the xref:System.Windows.Controls.HeaderedContentControl.Header%2A content.

[!code-xamlGroupBoxSnippet#GroupBoxTemplate]

See also