private void OnSearch(object sender, FileViewEventArgs e) { Search_FileViewEventArgs searchArgs = e as Search_FileViewEventArgs; string search = searchArgs.Search; FilterSearch(searchArgs.Search); }
private void OnSelectionChanged(object sender, FileViewEventArgs e) { ListBoxSelectionChanged_FileViewEventArgs selectedArgs = e as ListBoxSelectionChanged_FileViewEventArgs; Debug.Assert(selectedArgs != null); IList<object> selected = selectedArgs.Selected as IList<object>; Debug.Assert(selected != null); List<string> selectedFiles = new List<string>(); foreach (var file in selected) { string fileString = Convert.ToString(file); selectedFiles.Add(fileString); } Select(selectedFiles); }
private void OnRefresh(object sender, FileViewEventArgs e) { string text = FileView.DataGrid.Items.Count + " items"; FileView.FilterResultLabel.Content = text; }