C# Class TrakHound_UI.Timeline.TimelineBand

Inheritance: System.Windows.Controls.Control
ファイルを表示 Open project: TrakHound/TrakHound-Community Class Usage Examples

Public Properties

Property Type Description
DefaultEventTemplateProperty DependencyProperty
DefaultItemTemplateProperty DependencyProperty
DefaultShortEventTemplateProperty DependencyProperty
DefaultTextItemTemplateProperty DependencyProperty
EventTemplateProperty DependencyProperty
InertialScroll InertialTimelineScroll
IsMainBandProperty DependencyProperty
ItemTemplateProperty DependencyProperty
MaxEventHeightProperty DependencyProperty
OnSelectionChanged EventHandler
ShortEventTemplateProperty DependencyProperty
TextItemTemplateProperty DependencyProperty
TimelineWindowSizeProperty DependencyProperty

Private Properties

Property Type Description
FireEventCreated void
GetDataContext string
MoveScale void
OnCanvasDoubleClick void
OnCanvasMouseLeftButtonDown void
OnCanvasMouseLeftButtonUp void
OnCanvasMouseWheel void
OnControlLoaded void
OnControlSizeChanged void
OnFullScreen void
OnSizeChanged void
SafeDateChange void
SafeDateChange void
StopDragging void
TimelineBand System
UpdateControlSize void

Public Methods

Method Description
CalculateEventPositions ( ) : void

Calculates event positions (should be called after CalculateEventRows for main (see IsMainBand) timelineband)

CalculateEventRows ( ) : void
ClearEvents ( ) : void

Clear all events from timelineband screen

CreateTimelineCalculator ( string calendarType, DateTime currentDateTime, DateTime minDateTime, DateTime maxDateTime ) : void
DefaultEventTemplateChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void
DefaultItemTemplateChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void
DefaultShortEventTemplateChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void
DefaultTextItemTemplateChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void
DisplayEvents ( ) : void

Display all events which should be visible in current timelineband window

EventTemplateChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void
IsMainBandChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void
ItemTemplateChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void
MaxEventHeightChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void
OnApplyTemplate ( ) : void
OnScrollPositionChanged ( ) : void
ResetVisibleDaysHighlight ( ) : void

ShortEventTemplateChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void
TextItemTemplateChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void
TimelineWindowSizeChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void
ToString ( ) : string

Protected Methods

Method Description
OnCanvasMouseMove ( Point pPrev, Point pNew ) : void
OnDefaultEventTemplateChanged ( DependencyPropertyChangedEventArgs e ) : void
OnDefaultItemTemplateChanged ( DependencyPropertyChangedEventArgs e ) : void
OnDefaultShortEventTemplateChanged ( DependencyPropertyChangedEventArgs e ) : void
OnDefaultTextItemTemplateChanged ( DependencyPropertyChangedEventArgs e ) : void
OnEventTemplateChanged ( DependencyPropertyChangedEventArgs e ) : void
OnItemTemplateChanged ( DependencyPropertyChangedEventArgs e ) : void
OnMoveScale ( ) : void
OnShortEventTemplateChanged ( DependencyPropertyChangedEventArgs e ) : void
OnTextItemTemplateChanged ( DependencyPropertyChangedEventArgs e ) : void
OnTimelineTrayChanged ( TimelineTray old, TimelineTray newTray ) : void
OnTimelineWindowSizeChanged ( DependencyPropertyChangedEventArgs e ) : void

Private Methods

Method Description
FireEventCreated ( FrameworkElement element, TimelineDisplayEvent de ) : void
GetDataContext ( int index ) : string
MoveScale ( Point prevPos, Point newPos ) : void

Moves timeline according to mouse move during drag-drop

OnCanvasDoubleClick ( Point point ) : void
OnCanvasMouseLeftButtonDown ( Point p ) : void
OnCanvasMouseLeftButtonUp ( Point p ) : void
OnCanvasMouseWheel ( object sender, MouseWheelEventArgs e ) : void
OnControlLoaded ( object sender, RoutedEventArgs e ) : void
OnControlSizeChanged ( object sender, SizeChangedEventArgs e ) : void
OnFullScreen ( object sender, EventArgs e ) : void
OnSizeChanged ( object sender, SizeChangedEventArgs e ) : void
SafeDateChange ( TimeSpan span, bool subtract ) : void
SafeDateChange ( TimeSpan span, bool subtract, bool fixAsMaxDate ) : void
StopDragging ( ) : void
TimelineBand ( ) : System
UpdateControlSize ( bool animate = true, Size size = null ) : void

Method Details

CalculateEventPositions() public method

Calculates event positions (should be called after CalculateEventRows for main (see IsMainBand) timelineband)
public CalculateEventPositions ( ) : void
return void

CalculateEventRows() public method

public CalculateEventRows ( ) : void
return void

ClearEvents() public method

Clear all events from timelineband screen
public ClearEvents ( ) : void
return void

CreateTimelineCalculator() public method

public CreateTimelineCalculator ( string calendarType, DateTime currentDateTime, DateTime minDateTime, DateTime maxDateTime ) : void
calendarType string
currentDateTime DateTime
minDateTime DateTime
maxDateTime DateTime
return void

DefaultEventTemplateChanged() public static method

public static DefaultEventTemplateChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void
d DependencyObject
e DependencyPropertyChangedEventArgs
return void

DefaultItemTemplateChanged() public static method

public static DefaultItemTemplateChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void
d DependencyObject
e DependencyPropertyChangedEventArgs
return void

DefaultShortEventTemplateChanged() public static method

public static DefaultShortEventTemplateChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void
d DependencyObject
e DependencyPropertyChangedEventArgs
return void

DefaultTextItemTemplateChanged() public static method

public static DefaultTextItemTemplateChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void
d DependencyObject
e DependencyPropertyChangedEventArgs
return void

DisplayEvents() public method

Display all events which should be visible in current timelineband window
public DisplayEvents ( ) : void
return void

EventTemplateChanged() public static method

public static EventTemplateChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void
d DependencyObject
e DependencyPropertyChangedEventArgs
return void

IsMainBandChanged() public static method

public static IsMainBandChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void
d DependencyObject
e DependencyPropertyChangedEventArgs
return void

ItemTemplateChanged() public static method

public static ItemTemplateChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void
d DependencyObject
e DependencyPropertyChangedEventArgs
return void

MaxEventHeightChanged() public static method

public static MaxEventHeightChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void
d DependencyObject
e DependencyPropertyChangedEventArgs
return void

OnApplyTemplate() public method

public OnApplyTemplate ( ) : void
return void

OnCanvasMouseMove() protected method

protected OnCanvasMouseMove ( Point pPrev, Point pNew ) : void
pPrev Point
pNew Point
return void

OnDefaultEventTemplateChanged() protected method

protected OnDefaultEventTemplateChanged ( DependencyPropertyChangedEventArgs e ) : void
e DependencyPropertyChangedEventArgs
return void

OnDefaultItemTemplateChanged() protected method

protected OnDefaultItemTemplateChanged ( DependencyPropertyChangedEventArgs e ) : void
e DependencyPropertyChangedEventArgs
return void

OnDefaultShortEventTemplateChanged() protected method

protected OnDefaultShortEventTemplateChanged ( DependencyPropertyChangedEventArgs e ) : void
e DependencyPropertyChangedEventArgs
return void

OnDefaultTextItemTemplateChanged() protected method

protected OnDefaultTextItemTemplateChanged ( DependencyPropertyChangedEventArgs e ) : void
e DependencyPropertyChangedEventArgs
return void

OnEventTemplateChanged() protected method

protected OnEventTemplateChanged ( DependencyPropertyChangedEventArgs e ) : void
e DependencyPropertyChangedEventArgs
return void

OnItemTemplateChanged() protected method

protected OnItemTemplateChanged ( DependencyPropertyChangedEventArgs e ) : void
e DependencyPropertyChangedEventArgs
return void

OnMoveScale() protected method

protected OnMoveScale ( ) : void
return void

OnScrollPositionChanged() public method

public OnScrollPositionChanged ( ) : void
return void

OnShortEventTemplateChanged() protected method

protected OnShortEventTemplateChanged ( DependencyPropertyChangedEventArgs e ) : void
e DependencyPropertyChangedEventArgs
return void

OnTextItemTemplateChanged() protected method

protected OnTextItemTemplateChanged ( DependencyPropertyChangedEventArgs e ) : void
e DependencyPropertyChangedEventArgs
return void

OnTimelineTrayChanged() protected method

protected OnTimelineTrayChanged ( TimelineTray old, TimelineTray newTray ) : void
old TimelineTray
newTray TimelineTray
return void

OnTimelineWindowSizeChanged() protected method

protected OnTimelineWindowSizeChanged ( DependencyPropertyChangedEventArgs e ) : void
e DependencyPropertyChangedEventArgs
return void

ResetVisibleDaysHighlight() public method

public ResetVisibleDaysHighlight ( ) : void
return void

ShortEventTemplateChanged() public static method

public static ShortEventTemplateChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void
d DependencyObject
e DependencyPropertyChangedEventArgs
return void

TextItemTemplateChanged() public static method

public static TextItemTemplateChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void
d DependencyObject
e DependencyPropertyChangedEventArgs
return void

TimelineWindowSizeChanged() public static method

public static TimelineWindowSizeChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void
d DependencyObject
e DependencyPropertyChangedEventArgs
return void

ToString() public method

public ToString ( ) : string
return string

Property Details

DefaultEventTemplateProperty public_oe static_oe property

public static DependencyProperty DefaultEventTemplateProperty
return DependencyProperty

DefaultItemTemplateProperty public_oe static_oe property

public static DependencyProperty DefaultItemTemplateProperty
return DependencyProperty

DefaultShortEventTemplateProperty public_oe static_oe property

public static DependencyProperty DefaultShortEventTemplateProperty
return DependencyProperty

DefaultTextItemTemplateProperty public_oe static_oe property

public static DependencyProperty DefaultTextItemTemplateProperty
return DependencyProperty

EventTemplateProperty public_oe static_oe property

public static DependencyProperty EventTemplateProperty
return DependencyProperty

InertialScroll public_oe property

public InertialTimelineScroll InertialScroll
return InertialTimelineScroll

IsMainBandProperty public_oe static_oe property

public static DependencyProperty IsMainBandProperty
return DependencyProperty

ItemTemplateProperty public_oe static_oe property

public static DependencyProperty ItemTemplateProperty
return DependencyProperty

MaxEventHeightProperty public_oe static_oe property

public static DependencyProperty MaxEventHeightProperty
return DependencyProperty

OnSelectionChanged public_oe property

public EventHandler OnSelectionChanged
return EventHandler

ShortEventTemplateProperty public_oe static_oe property

public static DependencyProperty ShortEventTemplateProperty
return DependencyProperty

TextItemTemplateProperty public_oe static_oe property

public static DependencyProperty TextItemTemplateProperty
return DependencyProperty

TimelineWindowSizeProperty public_oe static_oe property

public static DependencyProperty TimelineWindowSizeProperty
return DependencyProperty