예제 #1
0
        private static void OnFrequencyBarBorderThicknessChanged(DependencyObject o, DependencyPropertyChangedEventArgs e)
        {
            SpectrumAnalyzer spectrumAnalyzer = o as SpectrumAnalyzer;

            if (spectrumAnalyzer != null)
            {
                spectrumAnalyzer.OnFrequencyBarBorderThicknessChanged((Thickness)e.OldValue, (Thickness)e.NewValue);
            }
        }
예제 #2
0
        private static void OnSourceChanged(DependencyObject o, DependencyPropertyChangedEventArgs e)
        {
            SpectrumAnalyzer spectrumAnalyzer = o as SpectrumAnalyzer;

            if (spectrumAnalyzer != null)
            {
                spectrumAnalyzer.OnSourceChanged((ISource)e.OldValue, (ISource)e.NewValue);
            }
        }
예제 #3
0
        private static void OnFrequencyBarCornerRadiusChanged(DependencyObject o, DependencyPropertyChangedEventArgs e)
        {
            SpectrumAnalyzer spectrumAnalyzer = o as SpectrumAnalyzer;

            if (spectrumAnalyzer != null)
            {
                spectrumAnalyzer.OnFrequencyBarCornerRadiusChanged((CornerRadius)e.OldValue, (CornerRadius)e.NewValue);
            }
        }
예제 #4
0
        private static object OnCoerceFrequencyBarBorderThickness(DependencyObject o, object value)
        {
            SpectrumAnalyzer spectrumAnalyzer = o as SpectrumAnalyzer;

            if (spectrumAnalyzer != null)
            {
                return(spectrumAnalyzer.OnCoerceFrequencyBarBorderThickness((Thickness)value));
            }
            else
            {
                return(value);
            }
        }
예제 #5
0
        private static object OnCoerceFrequencyBarCornerRadius(DependencyObject o, object value)
        {
            SpectrumAnalyzer spectrumAnalyzer = o as SpectrumAnalyzer;

            if (spectrumAnalyzer != null)
            {
                return(spectrumAnalyzer.OnCoerceFrequencyBarCornerRadius((CornerRadius)value));
            }
            else
            {
                return(value);
            }
        }
예제 #6
0
        private static object OnCoerceSource(DependencyObject o, object value)
        {
            SpectrumAnalyzer spectrumAnalyzer = o as SpectrumAnalyzer;

            if (spectrumAnalyzer != null)
            {
                return(spectrumAnalyzer.OnCoerceSource((ISource)value));
            }
            else
            {
                return(value);
            }
        }
예제 #7
0
        private static object OnCoerceFrequencyBarBrush(DependencyObject o, object value)
        {
            SpectrumAnalyzer spectrumAnalyzer = o as SpectrumAnalyzer;

            if (spectrumAnalyzer != null)
            {
                return(spectrumAnalyzer.OnCoerceFrequencyBarBrush((Brush)value));
            }
            else
            {
                return(value);
            }
        }
예제 #8
0
        private static object OnCoerceScalingStrategy(DependencyObject o, object value)
        {
            SpectrumAnalyzer spectrumAnalyzer = o as SpectrumAnalyzer;

            if (spectrumAnalyzer != null)
            {
                return(spectrumAnalyzer.OnCoerceScalingStrategy((ScalingStrategy)value));
            }
            else
            {
                return(value);
            }
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 11 "..\..\AudioPlayer.xaml"
                ((AudioSpectrumPlayer.AudioPlayer)(target)).Unloaded += new System.Windows.RoutedEventHandler(this.audioUnloaded);

            #line default
            #line hidden
                return;

            case 2:
                this.MainGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 3:
                this.songAlbumArt = ((System.Windows.Controls.Image)(target));
                return;

            case 4:
                this.songAlbumArtFiller = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 5:
                this.textSub = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 6:
                this.textMain = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 7:
                this.spectrum = ((Audion.Visualization.SpectrumAnalyzer)(target));
                return;

            case 8:
                this.buttonPlay = ((System.Windows.Controls.Button)(target));

            #line 257 "..\..\AudioPlayer.xaml"
                this.buttonPlay.Click += new System.Windows.RoutedEventHandler(this.audioPlay);

            #line default
            #line hidden
                return;

            case 9:
                this.buttonPause = ((System.Windows.Controls.Button)(target));

            #line 258 "..\..\AudioPlayer.xaml"
                this.buttonPause.Click += new System.Windows.RoutedEventHandler(this.audioPause);

            #line default
            #line hidden
                return;

            case 10:
                this.buttonStop = ((System.Windows.Controls.Button)(target));

            #line 259 "..\..\AudioPlayer.xaml"
                this.buttonStop.Click += new System.Windows.RoutedEventHandler(this.audioStop);

            #line default
            #line hidden
                return;

            case 11:
                this.buttonTrackPrevious = ((System.Windows.Controls.Button)(target));

            #line 260 "..\..\AudioPlayer.xaml"
                this.buttonTrackPrevious.Click += new System.Windows.RoutedEventHandler(this.audioTrackPrevious);

            #line default
            #line hidden
                return;

            case 12:
                this.buttonTrackNext = ((System.Windows.Controls.Button)(target));

            #line 261 "..\..\AudioPlayer.xaml"
                this.buttonTrackNext.Click += new System.Windows.RoutedEventHandler(this.audioTrackNext);

            #line default
            #line hidden
                return;

            case 13:
                this.buttonVolume = ((System.Windows.Controls.Slider)(target));

            #line 262 "..\..\AudioPlayer.xaml"
                this.buttonVolume.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.audioVolumChange);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }