ClearPositionCommand = new
ReactiveCommand(NewPositions.ColectionCountChanged);
WhenAny watches NewPositions change - e.g. when you assign different
collection to it.
--
-- Lukáš
Clear = new ReactiveCommand(NewPositions.ColectionCountChanged.Select(x
=> x > 0));
--
Paul Betts <pa...@paulbetts.org>
2011/12/28 Lukáš Čenovský <lcen...@gmail.com>:
NewPositions = new ReactiveCollection<Foo>();
Another thing you probably need to do is:
NewPositions.CollectionCountChanged.StartWith(0).Select(x => x > 0)
--
Paul Betts <pa...@paulbetts.org>