Skip to content

DataGrid: ScrollBar context menu commands don't work as expected #258

Description

@zrt2399

Describe the bug

When using a DataGrid, several commands in the ScrollBar context menu do not behave as expected.

The following menu items are affected:

  • Scroll to Top
  • Scroll to Bottom
  • Page Up
  • Page Down
  • Left Edge
  • Right Edge

These commands do not scroll to the expected position.

Image

To Reproduce

  1. Run the Avalonia.Controls.DataGrid sample project.

  2. Right-click the ScrollBar.

  3. Click any of the following context menu commands:

    • Scroll to Top
    • Scroll to Bottom
    • Page Up
    • Page Down
    • Left Edge
    • Right Edge

Expected behavior

No response

Avalonia version

12.1.0

OS

No response

Additional context

AvaloniaUI/Avalonia#19413

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