本文整理匯總了C#中Windows.UI.Xaml.Controls.Primitives.RangeBaseValueChangedEventArgs類的典型用法代碼示例。如果您正苦於以下問題:C# RangeBaseValueChangedEventArgs類的具體用法?C# RangeBaseValueChangedEventArgs怎麽用?C# RangeBaseValueChangedEventArgs使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
RangeBaseValueChangedEventArgs類屬於Windows.UI.Xaml.Controls.Primitives命名空間,在下文中一共展示了RangeBaseValueChangedEventArgs類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: brightnessSlider_ValueChanged
protected void brightnessSlider_ValueChanged(object sender, RangeBaseValueChangedEventArgs e)
{
Debug.WriteLine("Changing brightness to " + (1.0 - e.NewValue));
Changes.Add(() => { Filter.Brightness = 1.0 - e.NewValue; });
Apply();
NotifyManipulated();
}
示例2: lightSatSlider_ValueChanged
private void lightSatSlider_ValueChanged(object sender, RangeBaseValueChangedEventArgs e)
{
lightModel.sat = Convert.ToInt32(lightSatSlider.Value);
Task.Run(async () => await apiManager.putLightState(lightModel));
lightViewModel.UpdateLight(lightModel);
}
示例3: ImageOpacitySliderValueChanged
private void ImageOpacitySliderValueChanged(object sender, RangeBaseValueChangedEventArgs e)
{
if (mapImage != null)
{
mapImage.Opacity = e.NewValue / 100;
}
}
示例4: slider_ValueChanged
private void slider_ValueChanged(object sender, RangeBaseValueChangedEventArgs e)
{
double timeout = e.NewValue;
SysInfo.Timeout = (int)timeout;
timeout = timeout / 1000;
textBoxTimeout.Text = timeout.ToString();
}
示例5: Slider_ValueChanged
private void Slider_ValueChanged(object sender, RangeBaseValueChangedEventArgs e)
{
if (blockSliderChangeValue == e.NewValue || e.NewValue >= ViewModel.Instance.NowPlayingLength)
blockSliderChangeValue = -1;
else
ViewModel.Instance.Seek(e.NewValue);
}
示例6: ThicknessChanged
private void ThicknessChanged(object sender, RangeBaseValueChangedEventArgs e)
{
if (mainCanvas == null)
return;
mainCanvas.ChangePenThickness(thickSelectSlider.Value);
}
示例7: AcceleratorSliderValueChanged
private void AcceleratorSliderValueChanged(object sender, RangeBaseValueChangedEventArgs e)
{
if (Device != null)
{
Device.SetSpeed(e.NewValue);
}
}
示例8: SteeringSliderValueChanged
private void SteeringSliderValueChanged(object sender, RangeBaseValueChangedEventArgs e)
{
if (Device != null)
{
Device.Steer(e.NewValue);
}
}
示例9: ZoomSlider_ValueChanged
private void ZoomSlider_ValueChanged(object sender, RangeBaseValueChangedEventArgs e)
{
if (Control1 != null)
{
Control1.ChangeView(null, null, (float)e.NewValue);
}
}
示例10: RootBackgroundOpacitySlider_ValueChanged
private void RootBackgroundOpacitySlider_ValueChanged(object sender, RangeBaseValueChangedEventArgs e)
{
if (viewModel != null)
{
viewModel.UpdateOpacity(e.NewValue);
}
}
示例11: animationSpeed_ValueChanged
private void animationSpeed_ValueChanged(object sender, RangeBaseValueChangedEventArgs e)
{
if (this.AnimationCombo == null)
return;
fadeTile.AnimationDuration = (int)this.animationSpeed.Value;
}
示例12: brightness_ValueChanged
private async void brightness_ValueChanged(object sender, RangeBaseValueChangedEventArgs e)
{
if (!loadingPage) {
var jsonString = "{\"bri\":" + e.NewValue + ",\"transitiontime\":0}";
await HueAPIHelper.putLightChanges(jsonString, chosenLight.Id);
}
}
示例13: slider_ValueChanged
void slider_ValueChanged(object sender, RangeBaseValueChangedEventArgs e)
#endif
{
if (ViewModel != null)
{
ViewModel.Volume = e.NewValue;
}
}
示例14: SliderBlue_ValueChanged
private void SliderBlue_ValueChanged(object sender, RangeBaseValueChangedEventArgs e)
{
if (d3dApp == null)
return;
Windows.UI.Color c = d3dApp.Color;
c.B = (byte)e.NewValue;
d3dApp.Color = c;
}
示例15: OnSliderChanged
private void OnSliderChanged(object sender, RangeBaseValueChangedEventArgs e)
{
Debug.WriteLine("OnSliderChanged");
if ((pca9685 != null) && (pca9685.IsInit))
{
pca9685.SetPWM(servonum, 0, (ushort)e.NewValue);
}
}