当前位置: 首页>>代码示例>>C#>>正文


C# Primitives.RangeBaseValueChangedEventArgs类代码示例

本文整理汇总了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();
 }
开发者ID:JuannyWang,项目名称:filter-effects,代码行数:7,代码来源:SixthGearFilter.cs

示例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);
        }
开发者ID:rubendehaas,项目名称:WPHue,代码行数:7,代码来源:LightDetailPage.xaml.cs

示例3: ImageOpacitySliderValueChanged

 private void ImageOpacitySliderValueChanged(object sender, RangeBaseValueChangedEventArgs e)
 {
     if (mapImage != null)
     {
         mapImage.Opacity = e.NewValue / 100;
     }
 }
开发者ID:huoxudong125,项目名称:XamlMapControl,代码行数:7,代码来源:MainPage.xaml.cs

示例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();
 }
开发者ID:djaus2,项目名称:IoTSysInfo,代码行数:7,代码来源:MainPage.xaml.cs

示例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);
 }
开发者ID:JulianMH,项目名称:music-3,代码行数:7,代码来源:NowPlayingPage.xaml.cs

示例6: ThicknessChanged

        private void ThicknessChanged(object sender, RangeBaseValueChangedEventArgs e)
        {
            if (mainCanvas == null)
                return;

            mainCanvas.ChangePenThickness(thickSelectSlider.Value);
        }
开发者ID:swmaestro312,项目名称:PenTouch,代码行数:7,代码来源:MainPage.xaml.cs

示例7: AcceleratorSliderValueChanged

 private void AcceleratorSliderValueChanged(object sender, RangeBaseValueChangedEventArgs e)
 {
     if (Device != null)
     {
         Device.SetSpeed(e.NewValue);
     }
 }
开发者ID:sumitkm,项目名称:BotRacer,代码行数:7,代码来源:RacerDashboard.xaml.cs

示例8: SteeringSliderValueChanged

 private void SteeringSliderValueChanged(object sender, RangeBaseValueChangedEventArgs e)
 {
     if (Device != null)
     {
         Device.Steer(e.NewValue);
     }
 }
开发者ID:sumitkm,项目名称:BotRacer,代码行数:7,代码来源:RacerDashboard.xaml.cs

示例9: ZoomSlider_ValueChanged

 private void ZoomSlider_ValueChanged(object sender, RangeBaseValueChangedEventArgs e)
 {
     if (Control1 != null)
     {
         Control1.ChangeView(null, null, (float)e.NewValue);
     }
 }
开发者ID:C-C-D-I,项目名称:Windows-universal-samples,代码行数:7,代码来源:ScrollViewerPage.xaml.cs

示例10: RootBackgroundOpacitySlider_ValueChanged

 private void RootBackgroundOpacitySlider_ValueChanged(object sender, RangeBaseValueChangedEventArgs e)
 {
     if (viewModel != null)
     {
         viewModel.UpdateOpacity(e.NewValue);
     }
 }
开发者ID:renewal-wu,项目名称:PaletteSample,代码行数:7,代码来源:DemoColorPage.xaml.cs

示例11: animationSpeed_ValueChanged

        private void animationSpeed_ValueChanged(object sender, RangeBaseValueChangedEventArgs e)
        {
            if (this.AnimationCombo == null)
                return;

            fadeTile.AnimationDuration = (int)this.animationSpeed.Value;
        }
开发者ID:selaromdotnet,项目名称:Coding4FunToolkit,代码行数:7,代码来源:ImageTiles.xaml.cs

示例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);
     }
 }
开发者ID:Intrexion,项目名称:UWP-Hue,代码行数:7,代码来源:DetailPage.xaml.cs

示例13: slider_ValueChanged

        void slider_ValueChanged(object sender, RangeBaseValueChangedEventArgs e)
#endif
        {
            if (ViewModel != null)
            {
                ViewModel.Volume = e.NewValue;
            }
        }
开发者ID:bondarenkod,项目名称:pf-arm-deploy-error,代码行数:8,代码来源:VolumeSlider.cs

示例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;
 }
开发者ID:QamarWaqar,项目名称:Direct3D-Rendering-Cookbook,代码行数:8,代码来源:D3DPanel.xaml.cs

示例15: OnSliderChanged

 private void OnSliderChanged(object sender, RangeBaseValueChangedEventArgs e)
 {
     Debug.WriteLine("OnSliderChanged");
     if ((pca9685 != null) && (pca9685.IsInit))
     {
         pca9685.SetPWM(servonum, 0, (ushort)e.NewValue);
     }
 }
开发者ID:apdutta,项目名称:prototype,代码行数:8,代码来源:MainPage.xaml.cs


注:本文中的Windows.UI.Xaml.Controls.Primitives.RangeBaseValueChangedEventArgs类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。