-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Issue with NavigationViewExtensions.SelectedIndex Property #1905
Labels
Comments
michael-hawker
added
bug 🐛
An unexpected issue that highlights incorrect behavior
extensions ⚡
labels
Mar 19, 2018
michael-hawker
added a commit
that referenced
this issue
Mar 19, 2018
We would sometimes in error set the SelectedItem to null due to an issue with comparing to the com object from the MenuItems list. Now we do a safer check and avoid resetting the item if its the same, and if we gave a valid index avoid setting to null if we do fail.
6 tasks
azchohfi
added a commit
that referenced
this issue
Mar 19, 2018
…onfix Fix for NavigationView SelectedIndex Bug #1905
OpportunityLiu
added a commit
to OpportunityLiu/UWPCommunityToolkit
that referenced
this issue
Apr 12, 2018
* Change the background color of items when they are added or removed * extract method for common logic * only need to go from the index the item was inserted/removed * Ignore items to the end of the list, we'll handle that in another method * unsubscribe from events and remove the list when it's been unloaded * move methods to the bottom below changed handlers * unsubscribe from all list events when it is unloaded * Inherit from HeaderedContentControl to remove duplicate properties * Change default StepFrequency to 1 to match Slider * Change sample to use a regular slider for StepFrequency * Added ItemContainerStyleSelector ItemContainerStyleSelector allows for code to change the ItemContainerStyle on the fly * Fix for NavigationView SelectedIndex Bug CommunityToolkit#1905 We would sometimes in error set the SelectedItem to null due to an issue with comparing to the com object from the MenuItems list. Now we do a safer check and avoid resetting the item if its the same, and if we gave a valid index avoid setting to null if we do fail. * Strectch the content of the expander header to allow for other content * Update PULL_REQUEST_TEMPLATE.md * Use the index from the arguments rather than getting it from the container * Get the proper command bar added * Extract command logic * Removing Moldavian * Add Initial HeaderStyle Property to Expander * Move Height of Expander Header into Template * Update Expander Docs * fixed relative links in docs * attempting to fix dependency issue * updated version of gitversioning * updated gitversioning version * revert msbuild.sdk.extras * Removed obsolete comment from build script * Remove duplicate compositeTransform.CenterY * Fixed a NullReferenceException in AdvancedCollectionView Filter When setting a filter, then resetting it to null, an exception occured. This has been fixed. * Fix crash (CommunityToolkit#1913).
ghost
locked as resolved and limited conversation to collaborators
Nov 26, 2019
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'm submitting a...
Current behavior
In some advanced scenarios, the selected item of the NavigationView is set to null when the user selects an item.
Expected behavior
SelectedItem not set to null...
Minimal reproduction of the problem with instructions
Wasn't able to see it in sample app even though my project uses the same structure. Think it has to do with something binding to the selecteditem elsewhere maybe. Anyway, was able to fix the issue with logic here on line 148.
Should be
Then worked like a charm, thought there was something wrong with my app... I'll submit a PR soon.
Environment
The text was updated successfully, but these errors were encountered: