Example #1
0
 public SendEmailPreView(CorrespondenceModel correspondence, string message, string mainTemplate = null)
 {
     InitializeComponent();
     DataContext = _viewModel = new SendEmailPreViewModel(correspondence, message, mainTemplate);
     RadWindowInteropHelper.SetAllowTransparency(this, false);
     Loaded += SendEmailPreView_Loaded;
     Owner   = Application.Current.MainWindow;
 }
        public override ToolWindow CreateToolWindow()
        {
            var window = base.CreateToolWindow();

            RadWindowInteropHelper.SetAllowTransparency(window, false);
            RadWindowInteropHelper.SetClipMaskCornerRadius(window, new CornerRadius(3));
            RadWindowInteropHelper.SetOpaqueWindowBackground(window, Brushes.LightGray);

            return(window);
        }