Skip to content

markdoccore IViewModel

Denis Akopyan edited this page Mar 6, 2022 · 1 revision

IViewModel interface

Description

Interface for view models

Diagram

  flowchart LR
  classDef interfaceStyle stroke-dasharray: 5 5;
  classDef abstractStyle stroke-width:4px
  subgraph MarkDoc.Core
  MarkDoc.Core.IViewModel[[IViewModel]]
  class MarkDoc.Core.IViewModel interfaceStyle;
  end
  subgraph System
System.IDisposable[[IDisposable]]
  end
System.IDisposable --> MarkDoc.Core.IViewModel
Loading

Members

Properties

Public properties

Type Name Methods
bool IsLoading
Determines whether the view model is loading
get

Methods

Public methods

Returns Name
ValueTask OnLoadedAsync()
Executed when the IView<out TViewModel> loads
Task SetNamedArguments(IReadOnlyDictionary<string, string> arguments)

Details

Summary

Interface for view models

Inheritance

  • IDisposable

Methods

SetNamedArguments

public abstract Task SetNamedArguments(IReadOnlyDictionary<string, string> arguments)
Arguments
Type Name Description
IReadOnlyDictionary<string, string> arguments

OnLoadedAsync

public abstract ValueTask OnLoadedAsync()
Summary

Executed when the IView<out TViewModel> loads

Returns

Properties

IsLoading

public abstract bool IsLoading { get }
Summary

Determines whether the view model is loading

Generated with MarkDoc

Clone this wiki locally