Show / Hide Table of Contents

Class Observer

Sometimes it is hard to apply Observer to a part of the rendering, for example because you are rendering inside a RenderFragment, and you don't want to extract a new component to be able to mark it as observer. In those cases comes in handy. It takes a child content that is automatically re-rendered if any referenced observables change.

Inheritance
System.Object
Observer
Namespace: Cortex.Net.Blazor
Assembly: Cortex.Net.Blazor.dll
Syntax
[Observer]
public class Observer : ComponentBase

Properties

| Improve this Doc View Source

ChildContent

Gets or sets the wrapped child content of the component.

Declaration
public RenderFragment ChildContent { get; set; }
Property Value
Type Description
RenderFragment

Methods

| Improve this Doc View Source

BuildRenderTree(RenderTreeBuilder)

Declaration
protected override void BuildRenderTree(RenderTreeBuilder builder)
Parameters
Type Name Description
RenderTreeBuilder builder

Extension Methods

TraceExtensions.Trace<TObject, TMember>(TObject, Expression<Func<TObject, TMember>>, TraceMode)
ReactiveObjectTypeUtilExtensions.GetObservable(Object)
ReactiveObjectTypeUtilExtensions.GetObservable<TObject, TMember>(TObject, Expression<Func<TObject, TMember>>)
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX