Beispiel #1
0
        // Token: 0x06003644 RID: 13892 RVA: 0x000F532C File Offset: 0x000F352C
        private static void OnRowSpanChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            TableCell tableCell = (TableCell)d;

            if (tableCell.Table != null)
            {
                tableCell.Table.OnStructureChanged();
            }
            TableCellAutomationPeer tableCellAutomationPeer = ContentElementAutomationPeer.FromElement(tableCell) as TableCellAutomationPeer;

            if (tableCellAutomationPeer != null)
            {
                tableCellAutomationPeer.OnRowSpanChanged((int)e.OldValue, (int)e.NewValue);
            }
        }
Beispiel #2
0
        /// <summary>
        /// <see cref="PropertyMetadata.PropertyChangedCallback"/>
        /// </summary>
        private static void OnColumnSpanChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            TableCell cell = (TableCell)d;

            if (cell.Table != null)
            {
                cell.Table.OnStructureChanged();
            }

            // Update AutomaitonPeer.
            TableCellAutomationPeer peer = ContentElementAutomationPeer.FromElement(cell) as TableCellAutomationPeer;

            if (peer != null)
            {
                peer.OnColumnSpanChanged((int)e.OldValue, (int)e.NewValue);
            }
        }