mirror of
https://github.com/Stone-Red-Code/docs-desktop.git
synced 2026-09-08 16:06:07 +02:00
Links: .NET Desktop - framework\wpf (#109)
* Links: .NET Desktop - framework\wpf * Apply suggestions from code review Co-authored-by: Andy De George <[email protected]>
This commit is contained in:
co-authored by
Andy De George
parent
c1d6e1d23e
commit
674b773578
@@ -7,9 +7,11 @@ helpviewer_keywords:
|
||||
ms.assetid: 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-xaml[GroupBoxSnippet#GroupBoxTemplate](~/samples/snippets/csharp/VS_Snippets_Wpf/GroupBoxSnippet/CS/Window1.xaml#groupboxtemplate)]
|
||||
@@ -17,4 +19,4 @@ This example shows how to create a template for a <xref:System.Windows.Controls.
|
||||
## See also
|
||||
|
||||
- <xref:System.Windows.Controls.GroupBox>
|
||||
- [How to: Create a GroupBox](https://docs.microsoft.com/previous-versions/dotnet/netframework-3.5/ms748321(v=vs.90))
|
||||
- [How to: Create a GroupBox](/previous-versions/dotnet/netframework-3.5/ms748321(v=vs.90))
|
||||
|
||||
Reference in New Issue
Block a user