public PlayAudioViewVm(PlayAudioViewUC uc) : this() { this._playAudioViewUcuc = uc; _dTimer = new DispatcherTimer(); _dTimer.Interval = TimeSpan.FromSeconds(1); _dTimer.Tick += dtimer_Tick; }
static void EnablePropertyChangedCallback(DependencyObject sender, DependencyPropertyChangedEventArgs e) { PlayAudioViewUC uc = (sender as PlayAudioViewUC); if (uc != null) { uc.IsEnabled = (bool)e.NewValue; } }
static void AudioUrlPropertyChangedCallback(DependencyObject sender, DependencyPropertyChangedEventArgs e) { PlayAudioViewUC uc = (sender as PlayAudioViewUC); if (uc != null) { uc.AudioUrl = e.NewValue?.ToString(); } }