public MainWindow() { //PresentationTraceSources.DataBindingSource.Switch.Level = SourceLevels.Critical; InitializeComponent(); DriveInfo[] drives = DriveInfo.GetDrives(); foreach (DriveInfo driveInfo in drives) { root.Items.Add(TreeBuilder.CreateNode(driveInfo, driveInfo.TotalSize, ItemType.Drive)); } }