/// <summary> /// Initializes a new instance of the <see cref="TableOfContents"/> class. /// </summary> public TableOfContents() : base() { DefaultStyleKey = typeof(TableOfContents); _datasource = new TocDataSource(this); ItemsSource = _datasource; ItemTemplateSelector = new TocItemTemplateSelector(this); #if !NETFX_CORE ContextMenuService.AddContextMenuOpeningHandler(this, ContextMenuEventHandler); #endif }
/// <summary> /// Initializes a new instance of the <see cref="TableOfContents"/> class. /// </summary> public TableOfContents() : base() { DefaultStyleKey = typeof(TableOfContents); _datasource = new TocDataSource(this); }