Vixen
02b45cc4
csharp
public sealed class ValueChangedEvent<T>

A control's value became another value.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

Generic, and the router handles that correctly for a reason worth knowing: handlers are matched on the event's exact type, and ValueChangedEvent<float> and ValueChangedEvent<string> are two types. So a panel can listen for every slider inside it without hearing from the text boxes, with no filtering of its own.

⚠ Raised after the value has changed, and only when it actually did. Previous is carried because the common thing to do with a change is to undo it, and a handler that has to have remembered the old value cannot be written on a control it did not create.

Fields and properties (2)

  • public T? Previous

    What it was.

  • public T? Value

    What it is.

Used by (6)

  • RadioGroupVixen.Ui.Controls
  • SelectVixen.Ui.Controls
  • SliderVixen.Ui.Controls
  • TabsVixen.Ui.Controls
  • TextFieldVixen.Ui.Controls
  • ToggleBaseVixen.Ui.Controls