Summary
ObservableAsPropertyHelper is a class to help ViewModels implement
"output properties", that is, a property that is backed by an
Observable. The property will be read-only, but will still fire change
notifications. This class can be created directly, but is more often created
via the
OAPHCreationHelperMixin
extension methods.
- Namespace
- ReactiveUI
- Interfaces
-
- I
Handle Observable Errors - IDisposable
- IEnableLogger
- I
- Base Types
-
- object
graph BT
Type-->Base0["object"]
Type-.->Interface0["IHandleObservableErrors"]
click Interface0 "/api/ReactiveUI/IHandleObservableErrors"
Type-.->Interface1["IDisposable"]
Type-.->Interface2["IEnableLogger"]
Type["ObservableAsPropertyHelper<T>"]
class Type type-node
Syntax
public sealed class ObservableAsPropertyHelper<T> : IHandleObservableErrors, IDisposable,
IEnableLogger
Type Parameters
Name | Description |
---|---|
T | The type. |
Constructors
Name | Summary |
---|---|
Observable |
Initializes a new instance of the ObservableAsPropertyHelper<T> class.
|
Observable |
Initializes a new instance of the ObservableAsPropertyHelper<T> class.
|
Observable |
Initializes a new instance of the ObservableAsPropertyHelper<T> class.
|
Properties
Name | Value | Summary |
---|---|---|
IsSubscribed | bool |
Gets a value indicating whether the ObservableAsPropertyHelper
has subscribed to the source Observable.
Useful for scenarios where you use deferred subscription and want to know if
the ObservableAsPropertyHelper Value has been accessed yet.
|
ThrownExceptions | IObservable |
Gets an observable which signals whenever an exception would normally terminate ReactiveUI
internal state.
|
Value | T |
Gets the last provided value from the Observable.
|
Methods
Name | Value | Summary |
---|---|---|
Default |
Observable |
Constructs a "default" ObservableAsPropertyHelper object. This is
useful for when you will initialize the OAPH later, but don't want
bindings to access a null OAPH at startup.
static
|
Dispose |
void |
Disposes this ObservableAsPropertyHelper.
|