Exemple #1
0
        private void BuildLibraryTreeView()
        {
            //add Library root folder
            HelpDocumentsFolderTreeItem DFTI = new HelpDocumentsFolderTreeItem();

            DFTI.Folder = "Library";
            DFTI.Path   = mLibraryFolder;
            TreeViewItem root = MainTreeView.Tree.AddItem(DFTI);

            //expand to view the sub folders
            root.IsExpanded = true;
        }
Exemple #2
0
        private void BuildLibraryTreeView()
        {
            MainTreeView.TreeTitleStyle = (Style)TryFindResource("@ucTitleStyle_2");

            //add Library root folder
            HelpDocumentsFolderTreeItem DFTI = new HelpDocumentsFolderTreeItem();

            DFTI.Folder = "Library";
            DFTI.Path   = mLibraryFolder;
            TreeViewItem root = MainTreeView.Tree.AddItem(DFTI);

            //expand to view the sub folders
            root.IsExpanded = true;
        }