@this.Name
@this.Description
@(this.Value ? "On" : "Off")
@inherits OptionBase @code{ protected override bool ConvertValue(OptionInstance optionInstance, OptionProperty property) { var value = property.Getter(optionInstance) as bool?; return value ?? false; } private void OnToggleChanged() { this.Property.Setter(this.Instance, this.Value); this.NotifyValueChanged(); } }