Tim Miller
10 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
26 additions and
20 deletions
-
src/Avalonia.Themes.Fluent/Controls/GroupBox.xaml
-
src/Avalonia.Themes.Simple/Controls/GroupBox.xaml
|
|
|
@ -33,16 +33,19 @@ |
|
|
|
CornerRadius="{TemplateBinding CornerRadius}" |
|
|
|
BorderThickness="{TemplateBinding BorderThickness}" |
|
|
|
BorderBrush="{TemplateBinding BorderBrush}"> |
|
|
|
<Border.Clip> |
|
|
|
<CombinedGeometry GeometryCombineMode="Exclude"> |
|
|
|
<CombinedGeometry.Geometry1> |
|
|
|
<RectangleGeometry Rect="{Binding #RootGrid.Bounds}" /> |
|
|
|
</CombinedGeometry.Geometry1> |
|
|
|
<CombinedGeometry.Geometry2> |
|
|
|
<RectangleGeometry Rect="{Binding #Header.Bounds}" /> |
|
|
|
</CombinedGeometry.Geometry2> |
|
|
|
</CombinedGeometry> |
|
|
|
</Border.Clip> |
|
|
|
<Border.OpacityMask> |
|
|
|
<VisualBrush> |
|
|
|
<VisualBrush.Visual> |
|
|
|
<Canvas Background="Transparent"> |
|
|
|
<Rectangle Fill="Transparent" |
|
|
|
Width="{Binding #Header.Bounds.Width}" |
|
|
|
Height="{Binding #Header.Bounds.Height}" |
|
|
|
Canvas.Left="{Binding #Header.Bounds.X}" |
|
|
|
Canvas.Top="{Binding #Header.Bounds.Y}"/> |
|
|
|
</Canvas> |
|
|
|
</VisualBrush.Visual> |
|
|
|
</VisualBrush> |
|
|
|
</Border.OpacityMask> |
|
|
|
</Border> |
|
|
|
|
|
|
|
<!-- ContentPresenter for the header --> |
|
|
|
|
|
|
|
@ -31,16 +31,19 @@ |
|
|
|
CornerRadius="{TemplateBinding CornerRadius}" |
|
|
|
BorderThickness="{TemplateBinding BorderThickness}" |
|
|
|
BorderBrush="{TemplateBinding BorderBrush}"> |
|
|
|
<Border.Clip> |
|
|
|
<CombinedGeometry GeometryCombineMode="Exclude"> |
|
|
|
<CombinedGeometry.Geometry1> |
|
|
|
<RectangleGeometry Rect="{Binding #RootGrid.Bounds}" /> |
|
|
|
</CombinedGeometry.Geometry1> |
|
|
|
<CombinedGeometry.Geometry2> |
|
|
|
<RectangleGeometry Rect="{Binding #Header.Bounds}" /> |
|
|
|
</CombinedGeometry.Geometry2> |
|
|
|
</CombinedGeometry> |
|
|
|
</Border.Clip> |
|
|
|
<Border.OpacityMask> |
|
|
|
<VisualBrush> |
|
|
|
<VisualBrush.Visual> |
|
|
|
<Canvas Background="Transparent"> |
|
|
|
<Rectangle Fill="Transparent" |
|
|
|
Width="{Binding #Header.Bounds.Width}" |
|
|
|
Height="{Binding #Header.Bounds.Height}" |
|
|
|
Canvas.Left="{Binding #Header.Bounds.X}" |
|
|
|
Canvas.Top="{Binding #Header.Bounds.Y}"/> |
|
|
|
</Canvas> |
|
|
|
</VisualBrush.Visual> |
|
|
|
</VisualBrush> |
|
|
|
</Border.OpacityMask> |
|
|
|
</Border> |
|
|
|
|
|
|
|
<!-- ContentPresenter for the header --> |
|
|
|
|