Slide 27
Slide 27 text
public ColorPickerViewModel()
{
IObservable colorValues = this.WhenAny(
x => x.Opacity, x.Brightness, x.Hue,
(opacity, brightness, hue) =>
Color.FromHSV(opacity.Value, brightness.Value, hue.Value));
colorValues.Subscribe(x =>
Console.WriteLine("Color is set to: {0}", x));
colorValues.ToProperty(this, x => x.FinalColor);
}
Tuesday, December 27, 11