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

CurrentIndex field on declarative/listbox #356

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

DoctypeRosenthal
Copy link

@DoctypeRosenthal DoctypeRosenthal commented Dec 14, 2017

A little feature which allows you to set the selected item of a ListBox when you create the component. This was useful for me, so I'd like to share. Merge if you like.

@DoctypeRosenthal DoctypeRosenthal changed the title Declarative/listbox CurrentIndex field on declarative/listbox Dec 14, 2017
@ktye
Copy link
Contributor

ktye commented Mar 9, 2018

Will this always select the first index, even if unset?
lb.CurrentIndex is 0 by default, which is a valid value.

@DoctypeRosenthal
Copy link
Author

If lb.CurrentIndex is 0 by default then this will activate the first list item.

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

Successfully merging this pull request may close these issues.

2 participants