Kanban-Tasker icon indicating copy to clipboard operation
Kanban-Tasker copied to clipboard

NavigationView.put_SelectedItem exception: The parameter is incorrect. container

Open sam-wheat opened this issue 4 years ago • 3 comments

Hey Hunter I ran into the same issue as you with the NavigationView. Saw your post on UWP repo.

I posted a mock up:

https://github.com/microsoft/microsoft-ui-xaml/issues/1200

sam-wheat avatar Aug 23 '19 03:08 sam-wheat

Hey! Ahh yes the container issue. What source are you building from? A user and I made a workaround with MenuItems and removed using SelectedItem binding on the Navigation View, since MenuItemsSource had that major issue. Though, MenuItems is having index issues here and there, but I'm setting the SelectedItem from Code Behind to take care of selection and all now.

Did you happen to try and put it back to that? 🤔 It looks like from the XAML my old source, but you could have added it! But thank you for creating the official report :)

hjohnson12 avatar Aug 23 '19 15:08 hjohnson12

I was able to use MenuItemsSource and SelectedItem - it is difficult to not use these properties since they are so fundamental to MVVM. I saw where you tried it also and commented out MenuItemsSource. I set PanelDisplayMode=Left just so I could keep working. Not a long term solution of course hopefully the UWP guys will give us a workaround.

sam-wheat avatar Aug 23 '19 16:08 sam-wheat

Yeah, setting display mode to Left was definitely a quick-fix 😄 In general, I probably wont have any sort of left pane in the future just so I'm not getting close to Kanban Ink's application! :)

hjohnson12 avatar Aug 23 '19 16:08 hjohnson12