Table of Contents

Class ViewModelMixinAttribute

Namespace
Bannerlord.UIExtenderEx.Attributes
Assembly
Bannerlord.UIExtenderEx.dll

Attribute to mark view model mixins. Mixin classes should extend from BaseViewModelMixin<TViewModel> and should be marked with this attribute

[AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
public sealed class ViewModelMixinAttribute : BaseUIExtenderAttribute
Inheritance
ViewModelMixinAttribute
Inherited Members

Constructors

ViewModelMixinAttribute()

public ViewModelMixinAttribute()

ViewModelMixinAttribute(bool)

public ViewModelMixinAttribute(bool handleDerived)

Parameters

handleDerived bool

ViewModelMixinAttribute(string)

public ViewModelMixinAttribute(string refreshMethodName)

Parameters

refreshMethodName string

ViewModelMixinAttribute(string?, bool)

public ViewModelMixinAttribute(string? refreshMethodName = null, bool handleDerived = false)

Parameters

refreshMethodName string
handleDerived bool

Properties

HandleDerived

public bool HandleDerived { get; }

Property Value

bool

RefreshMethodName

public string? RefreshMethodName { get; }

Property Value

string