예제 #1
0
        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)));
                }
            }
        }
예제 #2
0
 public QueryRightCommand(QueryRightViewModel viewModel)
 {
     _viewModel = viewModel;
 }