Пример #1
0
        private void CompactingJoControl_OnIsVisibleChanged(object sender, DependencyPropertyChangedEventArgs e)
        {
            if (compactingJoControl.Visibility == System.Windows.Visibility.Visible)
            {
                var viewModel = new CreateJOViewModel
                {
                    CurrentViewActionButtons = compactingJoControl.ViewModel
                };

                this.ViewModel = viewModel;
            }
        }
Пример #2
0
        private void knittingJOControl_IsVisibleChanged_1(object sender, DependencyPropertyChangedEventArgs e)
        {
            if (knittingJOControl.Visibility == System.Windows.Visibility.Visible)
            {
                CreateJOViewModel viewModel = new CreateJOViewModel();
                viewModel.CurrentViewActionButtons = knittingJOControl.ViewModel as IActionButtons;

                this.ViewModel = viewModel;
            }
        }