public ListViewPage() { InitializeComponent(); var viewModel = new ListViewPageViewModel(); ListView.ItemsSource = viewModel.Messages; this.BindingContext = viewModel; }
public void SetData(int index, Entry code, Entry cost, Entry shares) { if (code.Text != "" && cost.Text != "" && shares.Text != "") { string SaveData = code.Text + "," + cost.Text + "," + shares.Text; ListViewPageViewModel.DataSave(index, SaveData); Navigation.PopAsync(); } else { DisplayAlert("Entry Command Meseg", "未入力の項目があります。", "OK"); } }
public ListViewPage() { InitializeComponent(); BindingContext = new ListViewPageViewModel(); }
public ListViewPage() { InitializeComponent(); _viewmodel = (ListViewPageViewModel)BindingContext; }