public QueryRight() { InitializeComponent(); viewModel = new QueryRightViewModel(); this.DataContext = viewModel; headers = new List <Tuple <string, string, double, Type> >(); foreach (var column in gridView1.Columns) { if (column.Header is GridViewColumnHeader header) { headers.Add(new Tuple <string, string, double, Type>(header.Content.ToString(), header.Tag.ToString(), column.ActualWidth, typeof(string))); } } }
public QueryRightCommand(QueryRightViewModel viewModel) { _viewModel = viewModel; }