Beispiel #1
0
        private static void OnVolumeChanged(Noesis.DependencyObject d, Noesis.DependencyPropertyChangedEventArgs e)
        {
            MediaElement element = (MediaElement)d;

            if (element._player != null)
            {
                element._player.Volume = (float)e.NewValue;
            }
        }
Beispiel #2
0
        private static void OnScrubbingEnabledChanged(Noesis.DependencyObject d, Noesis.DependencyPropertyChangedEventArgs e)
        {
            MediaElement element = (MediaElement)d;

            if (element._player != null)
            {
                element._player.ScrubbingEnabled = (bool)e.NewValue;
            }
        }
Beispiel #3
0
        private static void OnStateChanged(Noesis.DependencyObject d, Noesis.DependencyPropertyChangedEventArgs e)
        {
            MediaElement element = (MediaElement)d;

            element.UpdateState(element._state, e.Property == SourceProperty);
        }