on-internet
← Community

How to add a sidebar in Avalonia UI?

Stack Overflow ·

I'm trying to add a sidebar to my Avalonia UI application, but I'm not sure how to do it. I've looked at the documentation and some examples, but I'm still having trouble. Here's what I've tried so far: <Grid> <SplitView x:Name="SplitView"> <SplitView.Pane> <TextBlock Text="Pane content"/> </SplitView.Pane> <Grid> <views:MainView/> </Grid> </SplitView> </Grid> This code creates a simple layout with a sidebar on the left and main content on the right. However, I'm not sure how to make the sidebar collapsible or resizable. Can anyone help me with this? Thanks in advance!

Comments

Sign in or sign up to comment and upvote.

No comments yet.