public IWpfTableControl4 GetTableControl()
        {
            var initialColumnStates = GetInitialColumnStates();
            var fixedColumns        = GetFixedColumns();

            return((IWpfTableControl4)_controlProvider.CreateControl(
                       _tableManager,
                       true,
                       initialColumnStates,
                       fixedColumns));
        }
Exemple #2
0
        public IWpfTableControl4 CreateTableControl()
        {
            var tableControl = (IWpfTableControl4)_tableControlProvider.CreateControl(
                _tableManager,
                autoSubscribe: true,
                BuildColumnStates(),
                UnusedReferencesColumnDefinitions.ColumnNames.ToArray());

            tableControl.ShowGroupingLine    = true;
            tableControl.DoColumnsAutoAdjust = true;
            tableControl.DoSortingAndGroupingWhileUnstable = true;

            return(tableControl);
Exemple #3
0
        public BindingPaneControl(IServiceProvider serviceProvider, BindingPaneViewModel viewModel)
        {
            IComponentModel          componentModel       = serviceProvider.GetService <SComponentModel, IComponentModel>();
            ITableManagerProvider    tableManagerProvider = componentModel.GetService <ITableManagerProvider>();
            IWpfTableControlProvider tableControlProvider = componentModel.GetService <IWpfTableControlProvider>();

            this.ViewModel       = viewModel;
            this.tableDataSource = new TableDataSource(this.ViewModel.Entries);
            this.tableManager    = tableManagerProvider.GetTableManager(Constants.TableManagerString);
            this.tableManager.AddSource(this.tableDataSource, ColumnNames.DefaultSet.ToArray());
            this.TableControl = tableControlProvider.CreateControl(this.tableManager, true,
                                                                   ColumnNames.DefaultSet.Select(n => new ColumnState2(n, isVisible: true, width: 0)),
                                                                   ColumnNames.DefaultSet.ToArray());

            this.InitializeComponent();

            this.tableHolder.Child = this.TableControl.Control;
        }