Skip to content

NavigationViewItem is not vertically aligned and moves unnecessarily #679

@torum

Description

@torum

NavigationViewItem's content is not vertically aligned and moves to further right as Pane opens. I attached simple sample project.

Screenshots
Image
Image

OS: Windows 11.
FluentAvalonia Version 2.3.0

Avalonia Version 11.3.2

Additional context
Templary fix seems to be to override following values.

	<Thickness x:Key="NavigationViewItemContentPresenterMargin">0</Thickness>
	<Thickness x:Key="NavigationViewPaneContentGridMargin">0,4,0,3</Thickness> 

And in the NavigationViewItemStyles.axaml, change ControlTheme's Padding to "-2,0,2,0".
I have no idea if this workaround causes unwanted side effects. But so far, it is working for me.

Sample project
AvaloniaTest1.zip

PS. I'm very very new to Avalonia UI. So I may be missing something. Plus, English is not my first language, so... my English may sound weird.
Thank you for your great work!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions