/// /// <summary> /// Add new timeline band</summary> /// public void AddTimelineBand( int height, bool isMain, TimelineCalendarType srcType, int columnsCount ) { AddTimelineBand(height, isMain, srcType, columnsCount, isMain ? DEFAULT_MAIN_EVENT_SIZE : DEFAULT_SECONDARY_EVENT_SIZE); }
public void AddTimelineBand( int height, bool isMain, TimelineCalendarType srcType, int columnsCount, int maxEventHeight ) { Timeline.AddTimelineBand(height, isMain, srcType, columnsCount, maxEventHeight); }
public TimelineCalendar( string cultureCalendar, TimelineCalendarType itemType, DateTime minDateTime, DateTime maxDateTime ) { m_type = itemType; m_calendar = CalendarFromString(cultureCalendar); m_minDate = minDateTime; m_maxDate = maxDateTime; }
public TimelineCalendar( string cultureCalendar, TimelineCalendarType itemType, DateTime minDateTime, DateTime maxDateTime ) { m_type = itemType; m_calendar = CalendarFromString(cultureCalendar); m_minDate = minDateTime; m_maxDate = maxDateTime; }
public void AddTimelineBand( int height, bool isMain, TimelineCalendarType srcType, int columnsCount, int eventSize ) { TimelineBand band; RowDefinition rd; band = new TimelineBand(); if (m_notifier != null) { m_notifier.AddElement(band); } band.IsMainBand = isMain; band.ItemSourceType = srcType; rd = new RowDefinition(); if (height > 0) { rd.Height = new GridLength((double)height); band.Height = height; } else { rd.Height = new GridLength(1.0, GridUnitType.Star); } this.RowDefinitions.Add(rd); band.SetValue(Grid.RowProperty, this.RowDefinitions.Count() - 1); band.Margin = new Thickness(0.0); band.TimelineWindowSize = columnsCount; band.MaxEventHeight = eventSize; band.TimelineTray = this; if (band.IsMainBand) { m_mainBand = band; } m_bands.Add(band); this.Children.Add(band); }
public void AddTimelineBand( int height, bool isMain, TimelineCalendarType srcType, int columnsCount, int eventSize ) { TimelineBand band; RowDefinition rd; band = new TimelineBand(); if (m_notifier != null) { m_notifier.AddElement(band); } band.IsMainBand = isMain; band.ItemSourceType = srcType; rd = new RowDefinition(); if (height > 0) { rd.Height = new GridLength((double) height); band.Height = height; } else { rd.Height = new GridLength(1.0, GridUnitType.Star); } this.RowDefinitions.Add(rd); band.SetValue(Grid.RowProperty, this.RowDefinitions.Count() - 1); band.Margin = new Thickness(0.0); band.TimelineWindowSize = columnsCount; band.MaxEventHeight = eventSize; band.TimelineTray = this; if (band.IsMainBand) { m_mainBand = band; } m_bands.Add(band); this.Children.Add(band); }
/// /// <summary> /// Add new timeline band</summary> /// public void AddTimelineBand( int height, bool isMain, TimelineCalendarType srcType, int columnsCount ) { AddTimelineBand(height, isMain, srcType, columnsCount, isMain ? DEFAULT_MAIN_EVENT_SIZE : DEFAULT_SECONDARY_EVENT_SIZE); }