Skip to content

datagrid SelectAll button width binding error #1619

@qrrr-pi

Description

@qrrr-pi

Describe the bug

When horizontally scrolling the DataGrid, a binding error will occur, but it does not affect the normal operation of the program. Error message:

System.Windows.Data Error: 5 : Value produced by BindingExpression is not valid for target property. Double:'-0.11364275667962564' BindingExpression:Path=CellsPanelHorizontalOffset; DataItem='DataGrid' (Name='xxxx'); target element is 'Button' (Name=''); target property is 'Width' (type 'Double')

To Reproduce

  1. Create a DataGrid.
  2. Define more columns than can be displayed on the screen.
  3. Display the horizontal scrollbar.
  4. Scroll back and forth, and error messages will be visible in the debug console.

Expected behavior

no error

Screenshots

No response

OS version

win 11

.NET version

.net 10

WPF-UI NuGet version

4.1.0

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions