private static void OnScaleValueChanged(DependencyObject o, DependencyPropertyChangedEventArgs e) { ConfigWindow configWindow = o as ConfigWindow; if (configWindow != null) { configWindow.OnScaleValueChanged((double)e.OldValue, (double)e.NewValue); } }
private static object OnCoerceScaleValue(DependencyObject o, object value) { ConfigWindow configWindow = o as ConfigWindow; if (configWindow != null) { return(configWindow.OnCoerceScaleValue((double)value)); } else { return(value); } }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.configWindow = ((TouchFaders_MIDI.ConfigWindow)(target)); return; case 2: this.configGrid = ((System.Windows.Controls.Grid)(target)); #line 58 "..\..\..\Configuration\ConfigWindow.xaml" this.configGrid.SizeChanged += new System.Windows.SizeChangedEventHandler(this.configGrid_SizeChanged); #line default #line hidden return; case 3: this.ApplicationScaleTransform = ((System.Windows.Media.ScaleTransform)(target)); return; case 4: this.deviceGroupBox = ((System.Windows.Controls.GroupBox)(target)); return; case 5: this.deviceIDSlider = ((System.Windows.Controls.Slider)(target)); #line 86 "..\..\..\Configuration\ConfigWindow.xaml" this.deviceIDSlider.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.deviceIDSlider_ValueChanged); #line default #line hidden return; case 6: this.mixerComboBox = ((System.Windows.Controls.ComboBox)(target)); #line 87 "..\..\..\Configuration\ConfigWindow.xaml" this.mixerComboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.mixerComboBox_SelectionChanged); #line default #line hidden return; case 7: this.channelGroupBox = ((System.Windows.Controls.GroupBox)(target)); return; case 8: this.channelSlider = ((System.Windows.Controls.Slider)(target)); #line 99 "..\..\..\Configuration\ConfigWindow.xaml" this.channelSlider.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.channelSlider_ValueChanged); #line default #line hidden return; case 9: this.editChannelsButton = ((System.Windows.Controls.Button)(target)); #line 100 "..\..\..\Configuration\ConfigWindow.xaml" this.editChannelsButton.Click += new System.Windows.RoutedEventHandler(this.editChannelsButton_Click); #line default #line hidden return; case 10: this.mixGroupBox = ((System.Windows.Controls.GroupBox)(target)); return; case 11: this.mixSlider = ((System.Windows.Controls.Slider)(target)); #line 112 "..\..\..\Configuration\ConfigWindow.xaml" this.mixSlider.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.mixSlider_ValueChanged); #line default #line hidden return; case 12: this.editMixNamesButton = ((System.Windows.Controls.Button)(target)); #line 113 "..\..\..\Configuration\ConfigWindow.xaml" this.editMixNamesButton.Click += new System.Windows.RoutedEventHandler(this.editMixNamesButton_Click); #line default #line hidden return; } this._contentLoaded = true; }