daily pastebin goal
23%
SHARE
TWEET

Untitled

a guest Aug 15th, 2015 182 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2. using System.Windows;
  3. using System.Windows.Controls;
  4. using VVVV.PluginInterfaces.V2;
  5.  
  6. namespace VVVV.Packs.UI.Nodes.WPF
  7. {
  8.     [PluginInfo(Author = "lecloneur", Category = "WPF", Help = "Test to creates a slider UIElement", Name = "SliderTest")]
  9.  
  10.     class WPFSliderTest : IPluginEvaluate
  11.     {
  12.         [Output("Element", Order = 0)]
  13.         public ISpread<UIElement> UIElementOut;
  14.  
  15.         [Output("Value", IsSingle = true, Order = 1)]
  16.         public ISpread<double> ValueOut;
  17.  
  18.         public void Evaluate(int SpreadMax)
  19.         {
  20.             UIElementOut.SliceCount = SpreadMax;
  21.             ValueOut.SliceCount = SpreadMax;
  22.  
  23.             for (var i = 0; i < SpreadMax; i++)
  24.             {
  25.                 UIElementOut[i] = new Slider();
  26.                 var uiElement = UIElementOut[i];
  27.                 ValueOut[i] = ((Slider)uiElement).Value;
  28.             }
  29.         }
  30.     }
  31. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top