protected override async Task CloseMayOverrideAsync() { var vm = _vm; if (vm != null) { await vm.CloseAsync(); vm.Dispose(); VM = null; } //await BriefcaseCoverView.CloseAsync().ConfigureAwait(false); await AnimationsControl.CloseAsync().ConfigureAwait(false); }
protected override async Task OpenMayOverrideAsync(object args = null) { await AnimationsControl.OpenAsync(); if (_vm == null) _vm = new BriefcaseVM(_animationStarter); await _vm.OpenAsync().ConfigureAwait(true); RaisePropertyChanged_UI(nameof(VM)); //await BriefcaseCoverView.OpenAsync().ConfigureAwait(false); await AnimationsControl.OpenAsync().ConfigureAwait(true); //RegisterIsShowingBinderHandler(); // LOLLO NOTE do not set the datacontext of the whole control or it will alter the dependency properties, if any. // Instead, set LayoutRoot.DataContext, where LayoutRoot is the main child of the Page or UserControl. // For example: // LayoutRoot.DataContext = VM; }
//private void OnThreeBtnDialog_Closed(object sender, object e) //{ // _isHasUserAnswered = true; //} private void OnThreeBtnDialogContent_UserAnswered(object sender, BriefcaseVM.ImportBinderOperations e) { _isHasUserAnswered = true; }