Table of Contents

Class PObservableObject

Namespace
Playnite
Assembly
Playnite.SDK.dll

This should be used only for cases where custom observability is needed, like supression state. Otherwise use ObservableObject from MVVM toolkit.

public abstract class PObservableObject : INotifyPropertyChanged
Inheritance
PObservableObject
Implements
Inherited Members

Properties

SuppressNotifications

public bool SuppressNotifications { get; set; }

Property Value

bool

Methods

OnPropertyChanged(string?)

public void OnPropertyChanged(string? name = null)

Parameters

name string

SetValue<T>(ref T, T, string?)

protected void SetValue<T>(ref T property, T value, string? propertyName = null)

Parameters

property T
value T
propertyName string

Type Parameters

T

SetValue<T>(ref T, T, params string[])

protected void SetValue<T>(ref T property, T value, params string[] propertyNames)

Parameters

property T
value T
propertyNames string[]

Type Parameters

T

Events

PropertyChanged

Occurs when a property value changes.

public event PropertyChangedEventHandler? PropertyChanged

Event Type

PropertyChangedEventHandler