Beispiel #1
0
        static KGanttChartView()
        {
            TimelinePageStartProperty.OverrideMetadata(typeof(KGanttChartView), new PropertyMetadata(GanttDates.StartDate, OnTimelinePageStartChanged));
            TimelinePageFinishProperty.OverrideMetadata(typeof(KGanttChartView), new PropertyMetadata(GanttDates.StartDate, OnTimelinePageFinishChanged));

            DisplayedTimeProperty.OverrideMetadata(typeof(KGanttChartView), new PropertyMetadata(GanttDates.StartDate, OnDisplayedTimeChanged));

            IsAsyncPresentationEnabledProperty.OverrideMetadata(typeof(KGanttChartView), new PropertyMetadata(true, OnIsAsyncPresentationEnabledChanged));

            BarHeightProperty.OverrideMetadata(typeof(KGanttChartView), new PropertyMetadata(double.NaN, OnBarHeightChanged));

            DependencyDeletionContextMenuItemHeaderProperty.OverrideMetadata(typeof(KGanttChartView), new PropertyMetadata(LocalizationManagerExt.GetSafeDesignerString("Core_Gantt_DeleteLink")));
        }
Beispiel #2
0
        /// <summary>
        /// Initialise la classe <see cref="KGanttChartDataGrid"/>.
        /// </summary>
        static KGanttChartDataGrid()
        {
            DataGridWidthProperty.OverrideMetadata(typeof(KGanttChartDataGrid),
                                                   new PropertyMetadata(new GridLength(0.3, GridUnitType.Star)));
            ChartWidthProperty.OverrideMetadata(typeof(KGanttChartDataGrid),
                                                new PropertyMetadata(new GridLength(0.7, GridUnitType.Star)));

            TimelinePageStartProperty.OverrideMetadata(typeof(KGanttChartDataGrid), new PropertyMetadata(GanttDates.StartDate, OnTimelinePageStartChanged));
            TimelinePageFinishProperty.OverrideMetadata(typeof(KGanttChartDataGrid), new PropertyMetadata(GanttDates.StartDate, OnTimelinePageFinishChanged));

            DisplayedTimeProperty.OverrideMetadata(typeof(KGanttChartDataGrid), new PropertyMetadata(GanttDates.StartDate, OnDisplayedTimeChanged));

            IsAsyncPresentationEnabledProperty.OverrideMetadata(typeof(KGanttChartDataGrid), new PropertyMetadata(true, OnIsAsyncPresentationEnabledChanged));

            DependencyDeletionContextMenuItemHeaderProperty.OverrideMetadata(typeof(KGanttChartDataGrid), new PropertyMetadata(LocalizationManagerExt.GetSafeDesignerString("Core_Gantt_DeleteLink")));
        }