問題タブ [xamarin-binding]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
xamarin - ScrollViewにListViewとその他のコントロールを表示するには?
ListView
内に およびその他のコントロールを表示したいScrollView
。すべてが にバインドされていViewModel
ます。ListView
a を a の中に入れることは推奨されていないため、私の試みは失敗しましたScrollView
。ViewCell
DataTemplate
私は複雑Buttons
なListView
.
私の目標を達成するために、誰かが Xaml または CS パターンを教えてくれることを願っています。
iOS と Android で動作するソリューションのみを提案してください!
ありがとう
エリック
xamarin.forms - Xamarin.Forms.Binding を System.string に変換する
バインディング オブジェクトをどのように文字列に変換しますか? バインド可能なプロパティを使用してテキストをプロパティにバインドしようとしていますが、次のようなエラーが表示されます
Xamarin.Forms.Binding から System.string に変換できません。
BindableProperty returnType typeof(string) がこれをキャッチしたと思いました。
これが私のフロントエンドコードです (App.rug.Length は文字列です):
ここに私のバックエンドコードがあります:
エラーは次のとおりです。
Xamarin.Forms.Xaml.XamlParseException: 位置 26:68。プロパティ "ItemSubText" を割り当てることができません: "Xamarin.Forms.Binding" と "System.String" の型が一致しません