public DialogBaseControl(DialogBase dialog) { Caption = dialog.Caption; InitializeComponent(); _dialog = dialog; CreateButtons(); }
public DialogBaseControl(FrameworkElement originalContent, DialogBase dialog) { Caption = dialog.Caption; InitializeComponent(); var backgroundImage = originalContent.CaptureImage(); backgroundImage.Stretch = System.Windows.Media.Stretch.Fill; BackgroundImageHolder.Content = backgroundImage; _dialog = dialog; CreateButtons(); }
public DialogBaseControl(FrameworkElement originalContent, DialogBase dialog) { Caption = dialog.Caption; InitializeComponent(); var backgroundImage = originalContent.CaptureImage(); backgroundImage.Stretch = System.Windows.Media.Stretch.Fill; BackgroundImageHolder.Content = backgroundImage; _dialog = dialog; CreateButtons(); }