Demo for how to create an observable tree
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 6 commits ahead, 4 commits behind KingKnecht:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
FlatStreamToHierarchy
.gitattributes
.gitignore
FlatStreamToHierarchy.sln
README.md

README.md

FlatStreamToHierarchy

Dynamic data is a portable class library which brings the power of reactive (rx) to collections. It is open source and the code base lives here Dynamic Data on GitHub.

This is an example of how to create a hierachal reactive tree from a flat observable stream.

The demo illustrates how the following code:

var loader =  employeeService.Employees.Connect()
    .TransformToTree(employee => employee.BossId)
    .Transform(node => new EmployeeViewModel(node, Promote,Sack))
    .Bind(_employeeViewModels)
    .DisposeMany()
    .Subscribe(); 

together with some view model and xaml magic produces this

Observable tree example