protected override void DisposeManagedResources()
 {
     base.DisposeManagedResources();
     this.DisposeIndetns();
     this.UnbindRowProperties();
     if (this.Cell == null || this.stackLayoutElement.IsDisposed)
     {
         return;
     }
     this.Cell.Children.Remove((RadElement)this.stackLayoutElement);
     this.stackLayoutElement.Dispose();
     this.stackLayoutElement = (GanttCellSelfReferenceStackElement)null;
     this.expander           = (GanttViewTextViewItemExpanderItem)null;
 }
        public GanttCellSelfReferenceLayout(GanttViewTextItemElement itemElement)
        {
            this.itemElement        = itemElement;
            this.indents            = new List <GanttIndentCellElement>();
            this.stackLayoutElement = new GanttCellSelfReferenceStackElement();
            this.stackLayoutElement.StretchVertically   = true;
            this.stackLayoutElement.StretchHorizontally = true;
            int num = (int)this.stackLayoutElement.SetDefaultValueOverride(RadElement.FitToSizeModeProperty, (object)RadFitToSizeMode.FitToParentBounds);

            this.expander = new GanttViewTextViewItemExpanderItem(itemElement);
            this.expander.StretchVertically = true;
            this.stackLayoutElement.Children.Add((RadElement)this.expander);
            this.BindRowProperties();
        }