internal HeaderFooterItem()
    {
      m_itemContainerManager = new DataGridItemContainerManager( this );

      //to prevent creation of the headerfooteritem by anybody else than us.
      BindingOperations.SetBinding( this, HeaderFooterItem.ItemIndexProperty, m_sItemIndexBinding );
      BindingOperations.SetBinding( this, HeaderFooterItem.IsBeingEditedInternalProperty, m_sIsBeingEditedInternalBinding );
      BindingOperations.SetBinding( this, HeaderFooterItem.IsCurrentInternalProperty, m_sIsCurrentInternalBinding );
      BindingOperations.SetBinding( this, HeaderFooterItem.HasValidationErrorInternalProperty, m_sHasValidationErrorInternalBinding );

      BindingOperations.SetBinding( this, RowSelector.VisibleProperty, m_sRowSelectorVisibleBinding );
      BindingOperations.SetBinding( this, RowSelector.RowSelectorStyleProperty, m_sRowSelectorStyleBinding );
    }
Пример #2
0
        internal HeaderFooterItem()
        {
            m_itemContainerManager = new DataGridItemContainerManager(this);

            //to prevent creation of the headerfooteritem by anybody else than us.
            BindingOperations.SetBinding(this, HeaderFooterItem.ItemIndexProperty, m_sItemIndexBinding);
            BindingOperations.SetBinding(this, HeaderFooterItem.IsBeingEditedInternalProperty, m_sIsBeingEditedInternalBinding);
            BindingOperations.SetBinding(this, HeaderFooterItem.IsCurrentInternalProperty, m_sIsCurrentInternalBinding);
            BindingOperations.SetBinding(this, HeaderFooterItem.HasValidationErrorInternalProperty, m_sHasValidationErrorInternalBinding);

            BindingOperations.SetBinding(this, RowSelector.VisibleProperty, m_sRowSelectorVisibleBinding);
            BindingOperations.SetBinding(this, RowSelector.RowSelectorStyleProperty, m_sRowSelectorStyleBinding);
        }
Пример #3
0
        public GroupHeaderControl()
        {
            this.CommandBindings.Add(new CommandBinding(DataGridCommands.ExpandGroup,
                                                        this.OnExpandExecuted,
                                                        this.OnExpandCanExecute));

            this.CommandBindings.Add(new CommandBinding(DataGridCommands.CollapseGroup,
                                                        this.OnCollapseExecuted,
                                                        this.OnCollapseCanExecute));

            this.CommandBindings.Add(new CommandBinding(DataGridCommands.ToggleGroupExpansion,
                                                        this.OnToggleExecuted,
                                                        this.OnToggleCanExecute));

            m_itemContainerManager = new DataGridItemContainerManager(this);
        }
    public GroupHeaderControl()
    {
      this.CommandBindings.Add( new CommandBinding( DataGridCommands.ExpandGroup,
                                                    this.OnExpandExecuted,
                                                    this.OnExpandCanExecute ) );

      this.CommandBindings.Add( new CommandBinding( DataGridCommands.CollapseGroup,
                                                    this.OnCollapseExecuted,
                                                    this.OnCollapseCanExecute ) );

      this.CommandBindings.Add( new CommandBinding( DataGridCommands.ToggleGroupExpansion,
                                                    this.OnToggleExecuted,
                                                    this.OnToggleCanExecute ) );

      m_itemContainerManager = new DataGridItemContainerManager( this );
    }