Exemplo n.º 1
0
            internal FrameworkElement RestoreDockedLayout(DockableCollection newCollection, DockableContextContentCreator contentCreator)
            {
                FrameworkElement content = null;

                if (contentCreator != null)
                {
                    content = contentCreator.Invoke(TypeName, Description);
                    if (content == null)
                    {
                        return(null);
                    }
                }

                SetContentColors(content, this.Background, this.Foreground);

                DockingPanel.SetTabText(content, TabText);
                DockingPanel.SetDescriptiveText(content, Description);

                newCollection.Items.Add(content);

                return(content);
            }