Picker Attribute "SelectedIndex" Not being respected on page load - fix#22353
Closed
kubaflo wants to merge 1 commit into
Closed
Picker Attribute "SelectedIndex" Not being respected on page load - fix#22353kubaflo wants to merge 1 commit into
kubaflo wants to merge 1 commit into
Conversation
Contributor
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
Contributor
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
Contributor
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
Contributor
|
@kubaflo Could you rebase to fix the conflicts? Thanks in advance. |
Contributor
Author
|
@jsuarezruiz I've rebased and solved conflicts :) |
Contributor
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
Contributor
|
Can this be reviewed? |
bhavanesh2001
suggested changes
Mar 11, 2025
Contributor
bhavanesh2001
left a comment
There was a problem hiding this comment.
Couple of things I noticed
- If i define my picker something like this
<Picker SelectedIndex="2"
Title="Choose an item" SelectedIndexChanged="Picker_SelectedIndexChanged"
>
<Picker.Items>
<x:String>Item 1</x:String>
<x:String>Item 2</x:String>
<x:String>Item 3</x:String>
<x:String>Item 4</x:String>
<x:String>Item 5</x:String>
</Picker.Items>
</Picker>this will throw on page load in both iOS and Android
SelectedIndexChangedis getting fired on Page load inAndroidbut not iniOS. I think it shouldn't get fired .
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #9150
Fixes #22028
For the following code: