• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# Primitives.RangeBaseValueChangedEventArgs类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中Windows.UI.Xaml.Controls.Primitives.RangeBaseValueChangedEventArgs的典型用法代码示例。如果您正苦于以下问题:C# RangeBaseValueChangedEventArgs类的具体用法?C# RangeBaseValueChangedEventArgs怎么用?C# RangeBaseValueChangedEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



RangeBaseValueChangedEventArgs类属于Windows.UI.Xaml.Controls.Primitives命名空间,在下文中一共展示了RangeBaseValueChangedEventArgs类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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


示例16: LineWidthSlider_ValueChanged

 private void LineWidthSlider_ValueChanged(object sender, RangeBaseValueChangedEventArgs args)
 {
     var eventHandler = this.ValueChanged;
     if (eventHandler != null)
     {
         eventHandler(this, args);
     }
 }
开发者ID:huangcd,项目名称:Notes,代码行数:8,代码来源:LineWidthSelector.xaml.cs


示例17: Brightness_ValueChanged

 private async void Brightness_ValueChanged(object sender, RangeBaseValueChangedEventArgs e)
 {
     if (_lampState != null)
     {
         var value = Convert.ToUInt32(UInt32.MaxValue * (e.NewValue / 100.0));
         await _lampState.SetBrightnessAsync(value);
     }
 }
开发者ID:sgrebnov,项目名称:ajn-win10-lamp-sample,代码行数:8,代码来源:MainPage.xaml.cs


示例18: Slider_ValueChanged

        private void Slider_ValueChanged(object sender, RangeBaseValueChangedEventArgs e)
        {


            this.light.Opacity = (100 - e.NewValue) / 100;


        }
开发者ID:hsneshat,项目名称:Master,代码行数:8,代码来源:MainPage.xaml.cs


示例19: OnSpecularExponentValueChanged

 private void OnSpecularExponentValueChanged(object sender, RangeBaseValueChangedEventArgs e)
 {
     if (_EffectRenderer == null) return;
     _EffectRenderer.SetLightingProperty(
         D2DLightingEffects.EffectRenderer.LightingProperty.SpecularExponent,
         (float)e.NewValue
     );
 }
开发者ID:MaybeMars,项目名称:SharpDX-Samples,代码行数:8,代码来源:EffectSelector.xaml.cs


示例20: OnLightPositionZValueChanged

 private void OnLightPositionZValueChanged(object sender, RangeBaseValueChangedEventArgs e)
 {
     if (_EffectRenderer == null) return;
     _EffectRenderer.SetLightingProperty(
         D2DLightingEffects.EffectRenderer.LightingProperty.LightPositionZ,
         (float)e.NewValue
     );
 }
开发者ID:MaybeMars,项目名称:SharpDX-Samples,代码行数:8,代码来源:EffectSelector.xaml.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Data.Binding类代码示例发布时间:2022-05-26
下一篇:
C# Primitives.Popup类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap