Skip to content

Commit 54eb499

Browse files
Merge pull request #859 from AvaloniaUI/858-groupbox-implementation-can-be-affected-by-styles
Update groupbox.md
2 parents a3660e2 + 8a74cb5 commit 54eb499

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

docs/tutorials/groupbox.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,10 @@ Once the style is in place, you can use the `HeaderedContentControl` in your XAM
7474

7575
The style uses Avalonia's theme resources to ensure the control looks appropriate in both light and dark themes. The header text appears to "break" the border line by using a background color matching the window, creating the classic `GroupBox` appearance. The content area features rounded corners and proper padding for a modern look.
7676

77-
This implementation provides all the visual and functional benefits of a traditional `GroupBox` while maintaining consistency with Avalonia's design patterns and theme system.
77+
This implementation provides all the visual and functional benefits of a traditional `GroupBox` while maintaining consistency with Avalonia's design patterns and theme system.
78+
79+
:::tip
80+
The above sample assumes you are using the Avalonia template defaults. `HeaderedContentControl` is affected by custom themes or styles, which may cause the control's appearance to render differently. For example, a universal `BorderThickness` of 1 may cause a border to appear around the header.
81+
82+
If this occurs, please adjust the control-specific styles of the `HeaderedContentControl`.
83+
:::

0 commit comments

Comments
 (0)