Class ViewModel
- Namespace
- TaleWorlds.Library
- Assembly
- TaleWorlds.Library.dll
public abstract class ViewModel : IViewModel, INotifyPropertyChanged
- Inheritance
-
ViewModel
- Implements
- Derived
- Inherited Members
Constructors
ViewModel()
protected ViewModel()
Fields
UIDebugMode
public static bool UIDebugMode
Field Value
Methods
CollectPropertiesAndMethods()
public static void CollectPropertiesAndMethods()
ExecuteCommand(string, object[])
public void ExecuteCommand(string commandName, object[] parameters)
Parameters
GetPropertyType(string)
public Type GetPropertyType(string name)
Parameters
name
string
Returns
GetPropertyValue(string)
public object GetPropertyValue(string name)
Parameters
name
string
Returns
GetPropertyValue(string, PropertyTypeFeeder)
public object GetPropertyValue(string name, PropertyTypeFeeder propertyTypeFeeder)
Parameters
name
stringpropertyTypeFeeder
PropertyTypeFeeder
Returns
GetViewModelAtPath(BindingPath)
public object GetViewModelAtPath(BindingPath path)
Parameters
path
BindingPath
Returns
GetViewModelAtPath(BindingPath, bool)
public object GetViewModelAtPath(BindingPath path, bool isList)
Parameters
path
BindingPathisList
bool
Returns
OnFinalize()
public virtual void OnFinalize()
OnPropertyChanged(string)
public void OnPropertyChanged(string propertyName = null)
Parameters
propertyName
string
OnPropertyChangedWithValue(bool, string)
public void OnPropertyChangedWithValue(bool value, string propertyName = null)
Parameters
OnPropertyChangedWithValue(double, string)
public void OnPropertyChangedWithValue(double value, string propertyName = null)
Parameters
OnPropertyChangedWithValue(int, string)
public void OnPropertyChangedWithValue(int value, string propertyName = null)
Parameters
OnPropertyChangedWithValue(float, string)
public void OnPropertyChangedWithValue(float value, string propertyName = null)
Parameters
OnPropertyChangedWithValue(uint, string)
public void OnPropertyChangedWithValue(uint value, string propertyName = null)
Parameters
OnPropertyChangedWithValue(Color, string)
public void OnPropertyChangedWithValue(Color value, string propertyName = null)
Parameters
OnPropertyChangedWithValue(Vec2, string)
public void OnPropertyChangedWithValue(Vec2 value, string propertyName = null)
Parameters
OnPropertyChangedWithValue<T>(T, string)
public void OnPropertyChangedWithValue<T>(T value, string propertyName = null) where T : class
Parameters
value
TpropertyName
string
Type Parameters
T
RefreshValues()
public virtual void RefreshValues()
SetField<T>(ref T, T, string)
protected bool SetField<T>(ref T field, T value, string propertyName)
Parameters
field
Tvalue
TpropertyName
string
Returns
Type Parameters
T
SetPropertyValue(string, object)
public void SetPropertyValue(string name, object value)
Parameters
Events
PropertyChanged
public event PropertyChangedEventHandler PropertyChanged
Event Type
PropertyChangedWithBoolValue
public event PropertyChangedWithBoolValueEventHandler PropertyChangedWithBoolValue
Event Type
PropertyChangedWithColorValue
public event PropertyChangedWithColorValueEventHandler PropertyChangedWithColorValue
Event Type
PropertyChangedWithDoubleValue
public event PropertyChangedWithDoubleValueEventHandler PropertyChangedWithDoubleValue
Event Type
PropertyChangedWithFloatValue
public event PropertyChangedWithFloatValueEventHandler PropertyChangedWithFloatValue
Event Type
PropertyChangedWithIntValue
public event PropertyChangedWithIntValueEventHandler PropertyChangedWithIntValue
Event Type
PropertyChangedWithUIntValue
public event PropertyChangedWithUIntValueEventHandler PropertyChangedWithUIntValue
Event Type
PropertyChangedWithValue
public event PropertyChangedWithValueEventHandler PropertyChangedWithValue
Event Type
PropertyChangedWithVec2Value
public event PropertyChangedWithVec2ValueEventHandler PropertyChangedWithVec2Value
Event Type
This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).