private void UpdateContent() { for (int i = 0; i < _partMeasures.Count; i++) { Canvas.SetTop(_measuresSegments[i], 0); Canvas.SetLeft(_measuresSegments[i], _systemLayoutInfo.WhicheverPartMeasureCoords(_partMeasures[i].MeasureId, _partId).X); } }
public void GenerateContent(bool test, LayoutSystemInfo systemLayout) { if (systemLayout != null) { _measuresSegments = new List <Canvas>(); //! holds reference for future position update //! use system layout info foreach (var measureSegment in PartMeasures) { //! -------test _measuresSegments.Add(measureSegment.GetMeasureCanvas()); //! ------- Canvas.SetTop(measureSegment.GetMeasureCanvas(), 0); Canvas.SetLeft(measureSegment.GetMeasureCanvas(), systemLayout.WhicheverPartMeasureCoords(measureSegment.MeasureId, _partId).X); PartSegmentCanvas.Children.Add(measureSegment.GetMeasureCanvas()); } } }