Implement ChoicesBindingNameProperty
まだ誰も着手していません。
評価
調査の方向性
MaterialTextField の実装から始め、コメントアウトされている ChoicesBindingNameProperty と既存の実装を見つけます。Choices と ChoicesBindingName がピッカーダイアログにどのように到達するかを追跡し、BindingBase コンバーターによって、列挙されている各プラットフォームでオブジェクトの選択肢に表示する文字列を提供できることを確認します。
索引モデルが issue の本文から書いたものです。
説明
🚀 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
- 主要言語
- C#
- スター
- 631
- フォーク
- 150
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Baseflow/XF-Material-Library のほかの issue
-
.Net Maui Supportオープン
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
Baseflow/XF-Material-Library#458 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 50/100
Baseflow/XF-Material-Library#457 · コメント 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
Baseflow/XF-Material-Library#456 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
Baseflow/XF-Material-Library#454 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 58/100
Baseflow/XF-Material-Library#453 ·
Baseflow/XF-Material-Library の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
bug priority: P2
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
IridiumIO/CompactGUI#699 ·
メンテナーはふだん 3 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
bitfoundation/bitplatform#14070 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
メンテナーはふだん 1 日以内に返信