void FillCanvas() { // Calculate height depending on number of cameras - 1 (for the main camera) + the line for periods widget.Height = StyleConf.TimelineCameraHeight * fileSet.Count; // Add the timeline for periods PeriodsTimeline = new TimerTimeline(timers, true, NodeDraggingMode.All, true, duration, StyleConf.TimelineCameraHeight, 0, Config.Style.PaletteBackground, Config.Style.PaletteBackgroundLight); AddTimeLine(PeriodsTimeline); // And for the cameras for (int i = 1; i < fileSet.Count; i++) { CameraTimeline cameraTimeLine = new CameraTimeline(fileSet [i], false, true, duration, i * StyleConf.TimelineCameraHeight, Config.Style.PaletteBackground, Config.Style.PaletteBackgroundLight); AddTimeLine(cameraTimeLine); } Update(); }
void FillCanvas() { // Add the timeline for periods PeriodsTimeline = new TimerTimeline (timers, true, NodeDraggingMode.All, true, duration, StyleConf.TimelineCameraHeight, 0, App.Current.Style.PaletteBackground, App.Current.Style.PaletteBackgroundLight); AddTimeLine (PeriodsTimeline); // And for the cameras for (int i = 1; i < fileSet.Count; i++) { CameraTimeline cameraTimeLine = new CameraTimeline (fileSet [i], false, true, duration, i * StyleConf.TimelineCameraHeight, App.Current.Style.PaletteBackground, App.Current.Style.PaletteBackgroundLight); AddTimeLine (cameraTimeLine); } Update (); // Calculate height depending on number of cameras - 1 (for the main camera) + the line for periods HeightRequest = StyleConf.TimelineCameraHeight * fileSet.Count; }