Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can the side menu be refreshed while the program is running? I want to add a search function. #258

Closed
mujianwu opened this issue Aug 1, 2024 · 4 comments

Comments

@mujianwu
Copy link
Contributor

mujianwu commented Aug 1, 2024

With the addition of features, the side menu became longer and longer. I tried to control the menu to display different content through buttons, but it seemed unable to load new content. At the same time, I also want to add a search function to the menu to make it more convenient to find features.

@kikipoulet
Copy link
Owner

I think that a search option integrated in the SideMenu control would be a good idea actually, so I reopen the issue, why not.

Maybe using a simple ValueConverter with the isVisible property of each MenuItem

@kikipoulet kikipoulet reopened this Aug 6, 2024
@kikipoulet
Copy link
Owner

kikipoulet commented Aug 6, 2024

I can see something more or less like this :

{7131B693-B9AD-48A6-8DE7-8728FD3ACCCF}

Or this :

compactsidemenu

With an option to make the SideMenuItems more compact.

@kikipoulet
Copy link
Owner

you can test the new feature in commit 16c717d

Put the class "Compact" in your SukiSideMenuItem to make the menuitems compact
Use the new property "IsSearchEnabled" of the SukiSideMenu control to enable the search functionality

@mujianwu
Copy link
Contributor Author

mujianwu commented Aug 6, 2024

Thank you for your adoption. With the help of @AuroraZiling , I changed the type of DemoPages to ObservableCollection, and then used DemoPages.AddRange and Contains methods have implemented the search function, so this issue has been closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants