Skip to content

RolandPheasant/FlatStreamToHierarchy

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code
This branch is 6 commits ahead, 5 commits behind KingKnecht:master.

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

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

About

Demo for how to create an observable tree

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%