Can the side menu be refreshed while the program is running? I want to add a search function.
mujianwu opened this issue · 4 comments
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.
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
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
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.