public DocumentMetadataControlsPanel()
        {
            InitializeComponent();

            ObjTabs.Children.Clear();
            ObjTabs.AddContent("Properties", "Properties", null, false, false, TabMetadata);
            ObjTabs.AddContent("Annotations", "Annotations", null, false, false, TabUserData);
            ObjTabs.AddContent("Preview", "Preview", null, false, false, TabPreview);

            HyperlinkRestore.Click += HyperlinkRestore_Click;

            this.DataContextChanged += DocumentMetadataControlsPanel_DataContextChanged;

            ObjTweetBar.Visibility = Visibility.Visible;

            ReevaluateDataContext();
        }
        public DocumentMetadataControlsPanel()
        {
            Theme.Initialize();

            InitializeComponent();

            ObjTabs.Children.Clear();
            ObjTabs.AddContent("Properties", "Properties", null, false, false, TabMetadata);
            ObjTabs.AddContent("Annotations", "Annotations", null, false, false, TabUserData);
            ObjTabs.AddContent("Preview", "Preview", null, false, false, TabPreview);

            HyperlinkRestore.Click += HyperlinkRestore_Click;

            DataContextChanged += DocumentMetadataControlsPanel_DataContextChanged;

            ReevaluateDataContext();
        }