Beispiel #1
0
 private void kryptonDockingManager_PageLoading(object sender, DockPageLoadingEventArgs e)
 {
     // Example code showing how to reload the extra data that was saved into the page config
     e.XmlReader.Read();
     Console.WriteLine("PageConfig was saved at {0}", e.XmlReader.GetAttribute("SavedMilliseconds"));
     e.XmlReader.Read();
 }
        private void DockingManager_PageLoading(object sender, DockPageLoadingEventArgs e)
        {
            if (e.Page is KryptonStorePage)
            {
                return;
            }

            if (e.XmlReader.Name != "CPD")
            {
                throw new ArgumentException("Expected 'CPD' element was not found");
            }

            var window = e.Page.GetDockWindow();

            OnDockWindowLoading(window, e);
        }
        protected override void OnDockWindowLoading(DockWindow window, DockPageLoadingEventArgs e)
        {
            if (window == null)
            {
                var config = new WindowConfig();
                config.Load(e.XmlReader);

                window = EditorAPI.CreateWindowImpl(WorkspaceWindow.Document, config.ObjectPath, config.OpenAsSettings);
                AddDockWindowInternal(window, false, e.Page);
            }
            else
            {
                //window already created
            }

            //window.OnLoading( e.XmlReader );
        }
 protected virtual void OnDockWindowLoading(DockWindow window, DockPageLoadingEventArgs e)
 {
 }