Changed base type of LibraryView from Window to UserControl. Used WPF.FindUpVisualTree()