Beispiel #1
0
        public MainWindow()
        {
            InitializeComponent();
            FileManager = new FileManager();
            ListViewDirectory.ItemTemplate = (DataTemplate)ListViewDirectory.FindResource("ListViewSmallView");
            FileManager.Error += ShowError;
            ShowTreeDisks();

            SetDirectory(@"C:\");
        }
Beispiel #2
0
 private void Button_Click4(object sender, RoutedEventArgs e)
 {
     ListViewDirectory.ItemTemplate = (DataTemplate)ListViewDirectory.FindResource("ListViewBigView");
     ListViewDirectory.ItemsPanel   = (ItemsPanelTemplate)ListViewDirectory.FindResource("ListViewIconItemsPanel");
     ListViewDirectory.View         = null;
 }
Beispiel #3
0
 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");
 }