public void SetDataContext(VisualDurations durations) { _uiElemHanldersStub.InstallUnInstallRenderHandler(durations, _durations); DataContext = durations; _durations = durations; durations.Durations.CollectionChanged += OnDurationsCollectionChanged; durations.Durations.TransactionChangeHandler += OnDurationsTransactionChanged; }
/// <summary> /// Initializes a new instance of the <see cref="VisualAcousticSpace"/> class. /// </summary> public VisualAcousticSpace() { F0 = new VisualF0(); Gain = new VisualGain(); Durations = new VisualDurations(); WaveForm = new VisualWaveForm(); WordSegments = new Collection<VisualSegment>(); PhoneSegments = new Collection<VisualSegment>(); LinkTimeAxis(F0.TimeAxis); }