本文整理汇总了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);
}
}