public ModalViewHost(ModalViewBase modalViewBase)
        {
            InitializeComponent();

            MainContent.Content = modalViewBase;
            DataContext = modalViewBase.DataContext;
        }
示例#2
0
        public ModalViewHost(ModalViewBase modalViewBase)
        {
            InitializeComponent();

            MainContent.Content = modalViewBase ?? throw new ArgumentNullException(nameof(modalViewBase));
            DataContext         = modalViewBase.DataContext;
        }