public virtual void CreateCellElements(GanttViewTextViewCellElement cell)
 {
     if (this.Cell != cell)
     {
         if (this.Cell != null)
         {
             this.Cell.Children.Remove((RadElement)this.stackLayoutElement);
         }
         cell.Children.Insert(0, (RadElement)this.stackLayoutElement);
     }
     this.UpdateExpander();
     this.UpdateLinks();
 }
Esempio n. 2
0
        protected override bool MeasureElement(
            IVirtualizedElement <GanttViewTextViewColumn> element)
        {
            GanttViewTextViewCellElement textViewCellElement = element as GanttViewTextViewCellElement;

            if (textViewCellElement == null)
            {
                return(false);
            }
            SizeF sizeF = this.MeasureElementCore((RadElement)textViewCellElement, this.availableSize);

            this.desiredSize.Height = Math.Max(this.desiredSize.Height, sizeF.Height);
            this.desiredSize.Width += sizeF.Width;
            return((double)this.desiredSize.Width - (double)this.Owner.ColumnScroller.Scrollbar.Value < (double)this.availableSize.Width);
        }
 public GanttViewDataCellElementCreatingEventArgs(GanttViewTextViewCellElement cellElement)
 {
     this.cellElement = cellElement;
 }