C# Class Mckineap.ViewModels.Grids.TimelineGridViewModel

Inheritance: Mckineap.Utilities.ObservableObject
Afficher le fichier Open project: loic-lavergne/mckineap

Méthodes publiques

Méthode 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

Méthode 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 méthode

public FrameToPixel ( double frameValue ) : double
frameValue double
Résultat double

OnMouseMove() public méthode

public OnMouseMove ( object sender, System.Windows.Input.MouseEventArgs e ) : void
sender object
e System.Windows.Input.MouseEventArgs
Résultat void

PixelToFrame() public méthode

public PixelToFrame ( double pixelValue ) : double
pixelValue double
Résultat double

SwitchToDeviceMenu() public méthode

public SwitchToDeviceMenu ( ) : void
Résultat void

TimelineChangeCommand() public méthode

public TimelineChangeCommand ( ) : void
Résultat void

TimelineGridViewModel() public méthode

public TimelineGridViewModel ( ) : Assimp
Résultat Assimp

scrollViewer1_ScrollChanged() public méthode

public scrollViewer1_ScrollChanged ( object sender, ScrollChangedEventArgs e ) : void
sender object
e ScrollChangedEventArgs
Résultat void