private void selectAllButtonClick(object sender, RoutedEventArgs e) { grid.SelectAll(); SelectionLabel.Content = "" + Datas.Count + " / " + Datas.Count; }
/// <summary> /// Affiche une collection d'objets dans le navigateur. /// </summary> /// <param name="datas">La collection d'objet à afficher dans le navigateur</param> public void DisplayDatas(List <InputTable> datas) { Datas = new System.Collections.ObjectModel.ObservableCollection <InputTable>(datas); this.grid.ItemsSource = Datas; grid.SelectAll(); }