C# Class CoderForRent.Charting.TimespanHeader.TimespanHeader

Inheritance: System.Windows.Controls.ContentControl, IMouseWheelObserver
Exibir arquivo Open project: jogibear9988/SlGanttChart

Public Properties

Property Type Description
CurrentTimeProperty System.Windows.DependencyProperty
ZoomFactorProperty System.Windows.DependencyProperty

Private Properties

Property Type Description
ConvertDistanceToDays double
GetPosition double
GetTimespan System.TimeSpan
GetTotalUnits double
GetWidth double
InvalidateRowPresenters void
RaiseZoomFactorChange void
UpdateRowTimes void

Public Methods

Method Description
OnApplyTemplate ( ) : void
OnMouseWheel ( MouseWheelArgs args ) : void
TimespanHeader ( ) : System

Protected Methods

Method Description
ArrangeOverride ( Size finalSize ) : Size
RaiseCurrentTimeChanged ( EventArgs e ) : void
this_MouseLeave ( object sender, System.Windows.Input.MouseEventArgs e ) : void
this_MouseLeftButtonDown ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
this_MouseLeftButtonUp ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
this_MouseMove ( object sender, System.Windows.Input.MouseEventArgs e ) : void
this_SizeChanged ( object sender, System.Windows.SizeChangedEventArgs e ) : void

Private Methods

Method Description
ConvertDistanceToDays ( double dist ) : double
GetPosition ( System.DateTime d ) : double
GetTimespan ( double distance ) : System.TimeSpan
GetTotalUnits ( ) : double
GetWidth ( System.DateTime time, TimeUnits timeUnit ) : double
InvalidateRowPresenters ( ) : void
RaiseZoomFactorChange ( EventArgs e ) : void
UpdateRowTimes ( ) : void

Method Details

ArrangeOverride() protected method

protected ArrangeOverride ( Size finalSize ) : Size
finalSize System.Windows.Size
return System.Windows.Size

OnApplyTemplate() public method

public OnApplyTemplate ( ) : void
return void

OnMouseWheel() public method

public OnMouseWheel ( MouseWheelArgs args ) : void
args CoderForRent.Charting.Core.MouseWheelArgs
return void

RaiseCurrentTimeChanged() protected method

protected RaiseCurrentTimeChanged ( EventArgs e ) : void
e System.EventArgs
return void

TimespanHeader() public method

public TimespanHeader ( ) : System
return System

this_MouseLeave() protected method

protected this_MouseLeave ( object sender, System.Windows.Input.MouseEventArgs e ) : void
sender object
e System.Windows.Input.MouseEventArgs
return void

this_MouseLeftButtonDown() protected method

protected this_MouseLeftButtonDown ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
sender object
e System.Windows.Input.MouseButtonEventArgs
return void

this_MouseLeftButtonUp() protected method

protected this_MouseLeftButtonUp ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
sender object
e System.Windows.Input.MouseButtonEventArgs
return void

this_MouseMove() protected method

protected this_MouseMove ( object sender, System.Windows.Input.MouseEventArgs e ) : void
sender object
e System.Windows.Input.MouseEventArgs
return void

this_SizeChanged() protected method

protected this_SizeChanged ( object sender, System.Windows.SizeChangedEventArgs e ) : void
sender object
e System.Windows.SizeChangedEventArgs
return void

Property Details

CurrentTimeProperty public_oe static_oe property

public static DependencyProperty,System.Windows CurrentTimeProperty
return System.Windows.DependencyProperty

ZoomFactorProperty public_oe static_oe property

public static DependencyProperty,System.Windows ZoomFactorProperty
return System.Windows.DependencyProperty