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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement ChoicesBindingNameProperty #440

Open
7 tasks done
maurice0800 opened this issue Nov 26, 2021 · 0 comments
Open
7 tasks done

Implement ChoicesBindingNameProperty #440

maurice0800 opened this issue Nov 26, 2021 · 0 comments

Comments

@maurice0800
Copy link

maurice0800 commented Nov 26, 2021

馃殌 Feature Requests

ChoicesBindingNameProperty is currently commented out in the code. You cannot set it but there already is an implementation for it.

Contextualize the feature

You can set any object as Choices but currently there is no option to specify which property of the object should be shown in the picker dialog.

Describe the feature

There should be an option to specify a converter which receives the object from the list and returns a string for the dialog. For this the type of ChoicesBindingName needs to be changed to BindingBase.

Usage would be something like this:

<ui:MaterialTextField AlwaysShowUnderline="True"
                                Choices="{Binding Choices}"
                                ChoicesBindingName="{Binding Converter={StaticResource ChoicesToStringConverter}}"
                                InputType="Choice"
                                Placeholder="Demo"
                                ReturnType="Next"/>

Platforms affected (mark all that apply)

  • 馃摫 iOS
  • 馃 Android
  • 馃弫 WPF
  • 馃寧 UWP
  • 馃崕 MacOS
  • 馃摵 tvOS
  • 馃悞 Xamarin.Forms
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

No branches or pull requests

1 participant