Пример #1
0
        private void btnHome_Click(object sender, RoutedEventArgs e)
        {
            ScalingModal sm    = new ScalingModal(MainGrid, InnerGrid);
            var          popup = new ConfirmBackHome(sm);

            sm.Closed += ScalingModal_Closed;
            sm.Expand(popup, ScalingModalExpandCollapseAnimation.SlideB);
        }
Пример #2
0
        private void ScalingModal_Closed(object sender, EventArgs e)
        {
            ConfirmBackHome popup = sender as ConfirmBackHome;

            if (popup.IsConfirmed)
            {
                _pageVM.StopTimer();

                PageResult result = new PageResult("Home");
                _kernelService.NextPage(result);
            }
        }