コード例 #1
0
 public void RowsInvalidateArrange()
 {
     if (RowsPanel != null)
     {
         RowsPanel.RowsInvalidateArrange();
     }
 }
コード例 #2
0
 public void ColumnsChanged()
 {
     if (RowsPanel != null)
     {
         RowsPanel.ColumnsChanged();
     }
 }
コード例 #3
0
        internal void BringIndexIntoView(int idx)
        {
            if (RowsPanel == null || idx < 0 || idx >= Items.Count)
            {
                return;
            }

            _focusedRowIndex = idx;
            if (!Select(_focusedRowIndex))
            {
                ItemContainerGenerator.StatusChanged += OnStatusChanged;
                RowsPanel.BringRowIntoView(_focusedRowIndex);
            }
        }
コード例 #4
0
 protected void BringIndexIntoView(int idx)
 {
     if (RowsPanel != null && idx >= 0 && idx < this.Items.Count)
     {
         _focusedRowIndex = idx;
         var el = this.ItemContainerGenerator.ContainerFromIndex(_focusedRowIndex) as FrameworkElement;
         if (el == null)
         {
             this.ItemContainerGenerator.StatusChanged += OnStatusChanged;
             RowsPanel.BringRowIntoView(_focusedRowIndex);
         }
         else
         if (el != null)
         {
             el.Focus();
             el.BringIntoView();
         }
     }
 }
コード例 #5
0
        private void BringIndexIntoView(int idx)
        {
            if (RowsPanel == null || idx < 0 || idx >= Items.Count)
            {
                return;
            }

            _focusedRowIndex = idx;
            var frameworkElement = ItemContainerGenerator.ContainerFromIndex(_focusedRowIndex) as FrameworkElement;

            if (frameworkElement == null)
            {
                ItemContainerGenerator.StatusChanged += OnStatusChanged;
                RowsPanel.BringRowIntoView(_focusedRowIndex);
            }
            else if (frameworkElement != null)
            {
                frameworkElement.Focus();
                frameworkElement.BringIntoView();
            }
        }
コード例 #6
0
 public void BringIndexIntoView(int idx)
 {
     if (ParentTableView.SelectionMode != AyTableViewSelectionMode.NoSelect)
     {
         if (RowsPanel != null && idx >= 0 && idx < this.Items.Count)
         {
             _focusedRowIndex = idx;
             var el = this.ItemContainerGenerator.ContainerFromIndex(_focusedRowIndex) as FrameworkElement;
             if (el == null)
             {
                 this.ItemContainerGenerator.StatusChanged += OnStatusChanged;
                 RowsPanel.BringRowIntoView(_focusedRowIndex);
             }
             else
             if (el != null)
             {
                 el.Focus();
                 el.BringIntoView();
             }
         }
     }
 }