C# Class Mckineap.ViewModels.Grids.TimelineGridViewModel

Inheritance: Mckineap.Utilities.ObservableObject
显示文件 Open project: loic-lavergne/mckineap

Public Methods

Method Description
FrameToPixel ( double frameValue ) : double
OnMouseMove ( object sender, System.Windows.Input.MouseEventArgs e ) : void
PixelToFrame ( double pixelValue ) : double
SwitchToDeviceMenu ( ) : void
TimelineChangeCommand ( ) : void
TimelineGridViewModel ( ) : Assimp
scrollViewer1_ScrollChanged ( object sender, ScrollChangedEventArgs e ) : void

Private Methods

Method Description
BuildColumns ( ) : void
CalculateOffset ( double extent, double viewPort, double scrollWidth, double relBefore ) : double
CleanColumns ( ) : void
CreateColumnTimeline ( int posX, double curNbFrame ) : void
CurrentModel_PropertyChanged ( object sender, System e ) : void
CurrentSession_PropertyChanged ( object sender, System e ) : void
DeselectIndexPosition ( ) : void
FixTimelineOnParentGrid ( ) : void

Resize the Canvas on which is draw the timeline to make it the same size than the grid

GetColumnPixelSize ( ) : double
GetNewColumnPixelSize ( ) : void
GetRoundedValue ( ) : double
GetTimelineLengthInPixel ( ) : double
MakeTimelineZoom ( object simpleEvent ) : void
MouseGoIntoCanvas ( ) : void
RefreshTimeline ( ) : void
ScrollViewerChange ( object originalEvent ) : void
SelectIndexPosition ( ) : void
TicksAnimation_PropertyChanged ( object sender, System e ) : void

Check if the Ticks Value had been Updated. If its the case we update the cursor Position

TimelineSizeChange ( ) : void
UpdateCursor ( double posX = -1 ) : void

Update the Cursor position on the timeline when : -We Zoom on the ScrollViewBar (it will then repositon it) -We click somewhere on the timeline

resizeTimerEndEvent ( object sender, EventArgs e ) : void

Method Details

FrameToPixel() public method

public FrameToPixel ( double frameValue ) : double
frameValue double
return double

OnMouseMove() public method

public OnMouseMove ( object sender, System.Windows.Input.MouseEventArgs e ) : void
sender object
e System.Windows.Input.MouseEventArgs
return void

PixelToFrame() public method

public PixelToFrame ( double pixelValue ) : double
pixelValue double
return double

SwitchToDeviceMenu() public method

public SwitchToDeviceMenu ( ) : void
return void

TimelineChangeCommand() public method

public TimelineChangeCommand ( ) : void
return void

TimelineGridViewModel() public method

public TimelineGridViewModel ( ) : Assimp
return Assimp

scrollViewer1_ScrollChanged() public method

public scrollViewer1_ScrollChanged ( object sender, ScrollChangedEventArgs e ) : void
sender object
e ScrollChangedEventArgs
return void