Example #1
0
        /// <summary>
        /// Called when the value of the slider changes (or any fields affecting the value).
        /// </summary>
        public virtual void SliderValueChanged()
        {
            // clamp value to min/max
            var clampedValue = Value.Clamp(Min, Max);

            ValueProperty.SetValue(this, Steps > 0 ? Nearest(clampedValue, Min, Max, Steps) : clampedValue, false);
            UpdateSliderPosition(Value);
        }
Example #2
0
        void IFlowExecutionComponent.FlowExecution(Flow flow, Flow.ExecutionStackItem entryItem)
        {
            if (valueProperty != null)
            {
                var value = valueProperty.GetValue(this, null);
                valueProperty.SetValue(this, value, null);
            }

            FlowInput next = Exit;

            if (next != null)
            {
                flow.ExecutionStack.Push(new Flow.ExecutionStackItem(next));
            }
        }
 public override void SetValue(object component, object value)
 {
     ValueProperty.SetValue(GetTarget(component), value);
 }