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();
        }