Home

Awesome

Dynamic Data Snippets

People are always asking me for documents or explanations of dynamic data. However as an open source developer and active family man who works in a high pressure environment, the maintenance and development of my open source projects leaves me with no time to even consider documents.

Thinking about it, why do people always ask for documents. We are developers and we can write and analyse code better than we can produce documents (well most of us anyway). That is why I have created this project, with the aim to:

Support And Contact

The dynamic data chat room is a sub channel the Reactive Inc slack channel. It is an invite only forum so if you want an invite send me a message @ roland_pheasant@hotmail.com. If you would like me to produce an example to help with a particular problem, feel free to contact me on slack to discuss it further.

Links to examples

All these examples have working unit tests which allows for debugging and experimentation

TopicLinkDescription
AutoRefreshAutoRefreshForPropertyChanges.csHow to force cache operators to recalulate when using mutable objects
AggregationAggregations.csDynamically aggregrate items in a data source
CreationChangeSetCreation.csCreate list and cache using first class observables
FilteringStaticFilter.csFilter a data source using a static predicate
DynamicFilter.csCreate and apply an observable predicate
ExternalSourceFilter.csCreate an observable predicate from another data source
PropertyFilter.csFilter on a property which implements INotifyPropertyChanged
GroupingCustomTotalRows.csIllustrate how grouping can be used for custom aggregation
XamarinFormsGrouping.csBespoke grouping with Xamarin Forms
GroupAndMonitorPropertyChanges.csGroup on the first letter of a property and update grouping when the property changes
Inspect CollectionInspectCollection.csProduce an observable based on the contents of the datasource
InspectCollectionWithPropertyChanges.csProduce an observable based on the contents of the data source, which also fires when a specified property changes
InspectCollectionWithObservable.csProduce an observable based on the contents of the data source, whose values are supplied by an observable on each item in the collection
MonitorSelectedItems.csMonitor a collection of items which have an IsSelected property and produce observables based on selection
SortingChangeComparer.csHow to dynamically sort a collection using an observable comparer
CustomBinding.csCustomise binding behaviour for a sorted data source
SwitchSwitchDataSource.csToggle between different data sources
TransformFlattenNestedObservableCollection.csFlatten nested observable collections into an observable data source
TestingViewModel.csIllustrates how to test a view model when using dynamic data

Real world examples of Dynamic Data

I have created several Dynamic Data in action projects which illustrates the usage of dynamic data. I encourage people who want to see these real world examples to take a look at the following projects to see the capabilities of Dynamic Data.

Include are:

Dynamic Trader which is an example of how Dynamic Data can handle fast moving high throughput trading data with. It illustrates some of the core operators of dynamic data and how a single data source can be shared and shaped in various ways. It also includes an example of how it can be integrated with ReactiveUI.

Dynamic Trader

TailBlazer is a popular file tail utility which is an example of Rx and Dynamic Data and I consider to be a celebration of reactive programming. It is an advanced example of how to achieve high performance and how to lean on Rx and Dynamic Data to produce a slick and response user interface.

Tail Blazer

DynamicData Samplz where I started to do some visual examples but abandoned the project because I decided that the snippets project would be a better means of providing quick to produce examples. However there are still several good examples so well worth taking a look.

Samplz