private void TypeCountMenuItem_Click(object sender, RoutedEventArgs e) { FileNode currentNode = (sender as FrameworkElement).DataContext as FileNode; (this.DataContext as SchemeViewModel).StatisticSpecifyNodeContent(currentNode); }