Interaction logic for PromptDialogWindowContent.xaml
Inheritance: System.Windows.Controls.UserControl
 private LinkPromptDialogWindow(string title, string text, LinkInfo link) : base(title)
 {
     var viewModel = new LinkPromptDialogWindowViewModel(text, link);
     Content = new LinkPromptDialogWindowContent
     {
         DataContext = viewModel,
     };
 }
示例#2
0
        private LinkPromptDialogWindow(string title, string text, LinkInfo link) : base(title, width: 320, height: 200)
        {
            var viewModel = new LinkPromptDialogWindowViewModel(text, link);

            Content = new LinkPromptDialogWindowContent
            {
                DataContext = viewModel,
            };
        }