//
//
//
//
// $Revision: 5842 $
//
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using ICSharpCode.Core;
using MSHelpSystem.Core;
namespace MSHelpSystem.Controls
{
public partial class TocPadControl : UserControl
{
public TocPadControl()
{
InitializeComponent();
LoadToc();
Help3Service.ConfigurationUpdated += new EventHandler(Help3ServiceConfigurationUpdated);
}
void LoadToc()
{
if (!Help3Environment.IsLocalHelp) DataContext = null;
else DataContext = new[] { new TocEntry("-1") { Title = StringParser.Parse("${res:AddIns.HelpViewer.HelpLibraryRootTitle}") } };
}
void Help3TocItemChanged(object sender, RoutedPropertyChangedEventArgs