Skip to content

Why does the SelectAll button in DataGrid have a 6 bottom margin? #236

@GF-Huang

Description

@GF-Huang

Describe the bug

<ToggleButton Margin="0,0,0,6" hc:DataGridAttach.CurrentDataGrid="{Binding RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type DataGrid}}}" hc:DataGridAttach.IsSelectAll="{Binding IsChecked,RelativeSource={RelativeSource Self}}" Width="{Binding CellsPanelHorizontalOffset, RelativeSource={RelativeSource AncestorType=DataGrid},Converter={StaticResource DoubleMinConverter}}" hc:IconSwitchElement.Geometry="{StaticResource AllGeometry}" hc:IconSwitchElement.GeometrySelected="{StaticResource AllGeometry}" Foreground="{DynamicResource PrimaryBrush}" Style="{StaticResource ToggleButtonIconTransparent}">

It make the SelectAll button not align to the other column header text (higher then others).

Image

Steps to reproduce the bug

Just run the HandyControl demo.

Expected behavior

No response

Screenshots

No response

NuGet package version

HandyControl 3.6.0

IDE

Visual Studio 2022

Framework type

.NET 9.0

Windows version

Windows 11 (26100.4652)

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions