public MainWindow() { InitializeComponent(); FileManager = new FileManager(); ListViewDirectory.ItemTemplate = (DataTemplate)ListViewDirectory.FindResource("ListViewSmallView"); FileManager.Error += ShowError; ShowTreeDisks(); SetDirectory(@"C:\"); }
private void AddressTextBox_KeyUp(object sender, KeyEventArgs e) { switch (e.Key) { case Key.Escape: SetAddresBoxText(FileManager.GetCurrentDirectory().FullName); ListViewDirectory.Focus(); break; case Key.Enter: SetDirectory(AddressTextBox.Text); ListViewDirectory.Focus(); break; default: break; } }
private void Button_Click4(object sender, RoutedEventArgs e) { ListViewDirectory.ItemTemplate = (DataTemplate)ListViewDirectory.FindResource("ListViewBigView"); ListViewDirectory.ItemsPanel = (ItemsPanelTemplate)ListViewDirectory.FindResource("ListViewIconItemsPanel"); ListViewDirectory.View = null; }
private void Button_Click3(object sender, RoutedEventArgs e) { ListViewDirectory.ItemTemplate = (DataTemplate)ListViewDirectory.FindResource("ListViewDetailsView"); ListViewDirectory.ItemsPanel = (ItemsPanelTemplate)ListViewDirectory.FindResource("ListViewListItemsPanel"); ListViewDirectory.View = (ViewBase)ListViewDirectory.FindResource("ListViewDetailsGridView"); }