private void myScaleSlider_ValueChanged(object sender, RoutedPropertyChangedEventArgs <double> e) { if (myEngineBridge != null) { myEngineBridge.TextureScale((float)myScaleSlider.Value); } }