Table of Contents

Class ControlObservable

Namespace
Bonsai.Design
Assembly
Bonsai.Design.dll

Provides a set of static methods for subscribing to observable sequences using Windows Forms controls.

public static class ControlObservable
Inheritance
ControlObservable
Inherited Members

Methods

ObserveOn<TSource>(IObservable<TSource>, Control)

Wraps the source sequence in order to run its observer callbacks in the UI thread of the specified control.

public static IObservable<TSource> ObserveOn<TSource>(this IObservable<TSource> source, Control control)

Parameters

source IObservable<TSource>

The observable sequence whose notifications will be scheduled in the UI thread of the specified control.

control Control

A Control object whose underlying handle will be used to schedule notifications.

Returns

IObservable<TSource>

An observable sequence with the same elements as the source sequence, but where all notifications will be raised in the UI thread of the specified control.

Type Parameters

TSource

The type of the elements in the source sequence.