示例#1
0
 public PlayAudioViewVm(PlayAudioViewUC uc) : this()
 {
     this._playAudioViewUcuc = uc;
     _dTimer          = new DispatcherTimer();
     _dTimer.Interval = TimeSpan.FromSeconds(1);
     _dTimer.Tick    += dtimer_Tick;
 }
示例#2
0
        static void EnablePropertyChangedCallback(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            PlayAudioViewUC uc = (sender as PlayAudioViewUC);

            if (uc != null)
            {
                uc.IsEnabled = (bool)e.NewValue;
            }
        }
示例#3
0
        static void AudioUrlPropertyChangedCallback(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            PlayAudioViewUC uc = (sender as PlayAudioViewUC);

            if (uc != null)
            {
                uc.AudioUrl = e.NewValue?.ToString();
            }
        }