Ejemplo n.º 1
0
        private void ShowDialog(VMMessageDailog dm)
        {
            var messageWindow = new ModalDailogWindow(dm);

            messageWindow.ShowDialog();
            //dm.Callback(messageWindow.DialogResult);
        }
Ejemplo n.º 2
0
        private static void OnViewModeChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            if (d != null)
            {
                ModalDailogWindow window = d as ModalDailogWindow;

                if (window.IsActive)
                {
                    ViewModeType oldViewModel = (ViewModeType)e.OldValue;

                    if (oldViewModel == ViewModeType.Add ||
                        oldViewModel == ViewModeType.Edit)
                    {
                        window.UpdateActiveElementBindings();
                    }
                    else
                    {
                        //window.MoveFocus(FocusNavigationDirection.Next);
                    }
                }
            }
        }