當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。