/// <summary>
        /// Initializes a new instance of the <see cref="CustomViewModelDialogBase{TViewModel}"/> class.
        /// </summary>
        private void Initialize()
        {
            ViewModel = CustomDialogViewModelResolver?.Resolve <TViewModel>();

            if (ViewModel != null)
            {
                ViewModel.Dialog   = this;
                CustomDialogConfig = ViewModel.CustomDialogConfig;
            }
        }
Example #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="CustomViewModelDialogBase{TViewModel}"/> class.
        /// </summary>
        protected CustomViewModelDialogBase()
        {
            ViewModel = CustomDialogViewModelResolver?.Resolve <TViewModel>();

            if (ViewModel != null)
            {
                ViewModel.Dialog   = this;
                CustomDialogConfig = ViewModel.CustomDialogConfig;
            }
        }