public SetupViewModel() { Name = new ObservableProperty <string>(); Job = new ObservableProperty <string>(); ATK = new ObservableProperty <int>(); SuccessRage = new ObservableProperty <float>(); Visible = new ObservableProperty <bool>(false); Path = new ObservableProperty <string>("梅菜扣肉"); Process = new ObservableProperty <float>(0.5f); SelectedIndex = new ObservableProperty <int>(1); Datas = new BindableList <Dropdown.OptionData>() { new Dropdown.OptionData("First"), new Dropdown.OptionData("Second"), new Dropdown.OptionData("Third"), }; SelectedIndex.AddListener(OnDropDownChanged); }