Show / Hide Table of Contents

Class ObservingCommandBuilder

Contiene métodos que permiten crear objetos ObservingCommandBuilder<T>, los cuales permiten configurar e instanciar un ObservingCommand.

Inheritance
object
ObservingCommandBuilder
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: TheXDS.MCART.Helpers
Assembly: MCART.Mvvm.dll
Syntax
public static class ObservingCommandBuilder

Methods

| Edit this page View Source

Create<T>(T, Action)

Crea un nuevo ObservingCommandBuilder<T>.

Declaration
public static ObservingCommandBuilder<T> Create<T>(this T observedObject, Action action) where T : INotifyPropertyChanged
Parameters
Type Name Description
T observedObject

Objeto observado.

Action action

Acción a asociar al comando.

Returns
Type Description
ObservingCommandBuilder<T>

Un nuevo ObservingCommandBuilder<T> que puede utilizarse para configurar y crear un ObservingCommand.

Type Parameters
Name Description
T

Tipo del objeto que será observado.

| Edit this page View Source

Create<T>(T, Action<object?>)

Crea un nuevo ObservingCommandBuilder<T>.

Declaration
public static ObservingCommandBuilder<T> Create<T>(this T observedObject, Action<object?> action) where T : INotifyPropertyChanged
Parameters
Type Name Description
T observedObject

Objeto observado.

Action<object> action

Acción a asociar al comando.

Returns
Type Description
ObservingCommandBuilder<T>

Un nuevo ObservingCommandBuilder<T> que puede utilizarse para configurar y crear un ObservingCommand.

Type Parameters
Name Description
T

Tipo del objeto que será observado.

| Edit this page View Source

Create<T>(T, Func<object?, Task>)

Crea un nuevo ObservingCommandBuilder<T>.

Declaration
public static ObservingCommandBuilder<T> Create<T>(this T observedObject, Func<object?, Task> action) where T : INotifyPropertyChanged
Parameters
Type Name Description
T observedObject

Objeto observado.

Func<object, Task> action

Acción a asociar al comando.

Returns
Type Description
ObservingCommandBuilder<T>

Un nuevo ObservingCommandBuilder<T> que puede utilizarse para configurar y crear un ObservingCommand.

Type Parameters
Name Description
T

Tipo del objeto que será observado.

| Edit this page View Source

Create<T>(T, Func<Task>)

Crea un nuevo ObservingCommandBuilder<T>.

Declaration
public static ObservingCommandBuilder<T> Create<T>(this T observedObject, Func<Task> action) where T : INotifyPropertyChanged
Parameters
Type Name Description
T observedObject

Objeto observado.

Func<Task> action

Acción a asociar al comando.

Returns
Type Description
ObservingCommandBuilder<T>

Un nuevo ObservingCommandBuilder<T> que puede utilizarse para configurar y crear un ObservingCommand.

Type Parameters
Name Description
T

Tipo del objeto que será observado.

  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX