private tkControlEditor GetControlEditor(object element, fiGraphMetadata graphMetadata)
        {
            tkControlPropertyEditor.fiLayoutPropertyEditorMetadata metadata;
            if (graphMetadata.TryGetMetadata(out metadata) == false)
            {
                metadata        = graphMetadata.GetMetadata <tkControlPropertyEditor.fiLayoutPropertyEditorMetadata>();
                metadata.Layout = ((tkCustomEditor)element).GetEditor();
            }

            return(metadata.Layout);
        }
        private PageMetadata GetPageMetadata(fiGraphMetadata graphMetadata)
        {
            PageMetadata metadata;

            if (graphMetadata.TryGetMetadata(out metadata) == false)
            {
                metadata = graphMetadata.GetMetadata <PageMetadata>();
                metadata.PageEndIndex = _pageMinimumCollectionLength;
            }

            return(metadata);
        }