void loadsource() { _numberofitems = _source.Count; _contentpanel.Width = _numberofitems * DeviceWidth; for (int i = 0; i < _source.Count; i++) { LOReaderScrollElement elem = new LOReaderScrollElement(); elem.Source = _source[i]; elem.PositionX = i * DeviceWidth; _contentpanel.Children.Add(elem); _elementslist.Add(elem); elem.PropertyChanged += elem_PropertyChanged; elem.MLManipulationCompleted += elem_MLManipulationCompleted; elem.MLManipulationDelta += elem_MLManipulationDelta; elem.MLManipulationStarted += elem_MLManipulationStarted; } _finalthreshold = -1.0 * _numberofitems * DeviceWidth; }