A control that presents it's contents as a modal dialog.
Requires the 'DialogPresenter' template-style.
상속: System.Windows.Controls.ContentControl, IDialogPresenter
        public void Initialize(DialogPresenter control)
        {
            control.Width = 800;
            control.Height = 600;
            control.Background = Colors.Black.ToBrush(0.05);
            
            // Setup content.
            dialogContent.DataContext = dialogViewModel;
            dialogContent.Content = childContent;
            control.Content = dialogContent;

            // Wire up events.
            dialogContent.GotFocus += delegate { Debug.WriteLine("Content GOT FOCUS"); };
            childContent.GotFocus += delegate
                                         {
                                             focusCount++;
                                             childContent.Text = "GOT FOCUS: " + focusCount;
                                         };
        }
 public void MaskBrush_White(DialogPresenter control)
 {
     control.MaskBrush = new SolidColorBrush(Colors.White);
     control.MaskOpacity = 0.7;
     Debug.WriteLine(string.Format("MaskBrush: White; Opacity: {0}", control.MaskOpacity));
 }
 public void MaskBrush_Black(DialogPresenter control)
 {
     control.MaskBrush = new SolidColorBrush(Colors.Black);
     control.MaskOpacity = 0.5;
     Debug.WriteLine(string.Format("MaskBrush: Black; Opacity: {0}", control.MaskOpacity));
 }
 public void Change_Content_to_AcceptCancelPanel(DialogPresenter control)
 {
     control.Content = dialogContent;
 }
 public void Change_Content_to_Placeholder(DialogPresenter control)
 {
     control.Content = new Placeholder {Color = Colors.Blue};
 }
 public void Toggle_IsShowing(DialogPresenter control)
 {
     control.IsShowing = !control.IsShowing;
     Debug.WriteLine("IsShowing: " + control.IsShowing);
 }