コード例 #1
0
 public MaterialFormsWindow(WindowSession session, int dialogId = 0)
 {
     SetValue(SessionAssist.HostingSessionProperty, session);
     DataContext = session.Window;
     InitializeComponent();
     DialogHost.Identifier = "DialogHost" + dialogId;
 }
コード例 #2
0
        public MaterialFormsWindow(WindowSession session, int dialogId = 0)
        {
            SetValue(SessionAssist.HostingSessionProperty, session);
            DataContext = session.Window;
            InitializeComponent();
            var view = session.Window.Dialog.View;

            ContentPresenter.Content = view;
            Background = view.Background;
            // We need to remove view background as it blocks dragmove behavior
            view.Background       = null;
            DialogHost.Identifier = "DialogHost" + dialogId;
        }