public void ApplyTemplate()
{
borderSelectionLogic = new BorderSelectionLogic(
treeView,
treeView.Template.FindName("selectionBorder", treeView) as Border,
treeView.Template.FindName("scrollViewer", treeView) as ScrollViewer,
treeView.Template.FindName("content", treeView) as ItemsPresenter,
MultiSelectTreeView.RecursiveTreeViewItemEnumerable(treeView, false, false));
}