private void InitFieldListViewIfNeeded() { if (fieldListView == null) { fieldListView = new FieldListView(); fieldListView.SetDataContext(noteFieldView.fieldsViewModel); fieldListView.FieldClickEvent += FieldListViewClickEventHandler; } }
private void InitFlyoutAndViewModelIfNeeded() { if (fieldListView == null) { fieldListView = new FieldListView(); noteFieldsViewModel = new NoteFieldsViewModel(templateInformationView.ViewModel.CurrentModel); fieldListView.SetDataContext(noteFieldsViewModel); fieldListView.FieldClickEvent += FieldFlyoutButtonClickHandler; } }