Beispiel #1
0
        private void GenerateRows(double finalHeight, bool ignoreSameSize = true)
        {
            if (!RowsValid && (m_OldHeight != finalHeight || !ignoreSameSize))
            {
                m_OldHeight = finalHeight;

                if (RowPresenter == null)
                    return;

                RowsValid = true;
                RowPresenter.Children.Clear();

                for (double i = 0; i < finalHeight; i += RowHeight)
                {
                    GanttRow row = new GanttRow
                    {
                        ParentPanel = this,
                        BorderBrush = this.ParentGanttChart.GanttRowBorderBrush,
                        GapBackgroundBrush = this.GapBackgroundBrush,
                        GapBorderBrush = this.GapBorderBrush
                    };
                    row.IsShowActualItem = IsShowActualMark;
                    this.RowPresenter.Children.Add(row);
                }
                ResetRows();
            }
        }
Beispiel #2
0
 private GanttRow CreateRow(IGanttNode node)
 {
     GanttRow row = new GanttRow();
     row.BorderBrush = BorderBrush;
     row.Background = Background;
     row.ParentPanel = this;
     row.Node = node;
     return row;
 }