Пример #1
0
        private void CancelButton_OnClick(object sender, RoutedEventArgs e)
        {
            var nav = GetNavigationService();

            nav?.Cancel();

            var result = CloseButton.Content == "Готово";
            var window = LayoutHelper.FindParent <Window>(this);

            window.CloseWithResult(result);
        }