【发布时间】:2014-04-07 16:33:48
【问题描述】:
我正在构建一个涉及从列表中添加项目的表单,但是向用户显示的列表取决于从另一个列表中进行的选择。为此,我有两个 MvxSpinner,每个都有一个绑定的 ItemsSource 和 SelectedItem。
<MvxSpinner
android:layout_width="300dp"
android:layout_height="50dp"
local:MvxBind="ItemsSource item_source_one; SelectedItem selected_item_one;"/>
<MvxSpinner
android:layout_width="300dp"
android:layout_height="50dp"
local:MvxBind="ItemsSource item_source_two; SelectedItem selected_item_two;"/>
当selected_item_one 更改时item_source_two 更改为新列表。所有这些都有效,除非 item_source_two 更改 selected_item_two 保持与更改前相同。我希望selected_item_two 与item_source_two 更改时视觉显示的内容相匹配。
【问题讨论】: