5 writes to CurrentValue
Microsoft.AspNetCore.Components.Web (4)
Forms\InputBase.cs (2)
125
CurrentValue
= default!;
130
CurrentValue
= parsedValue!;
Forms\InputCheckbox.cs (1)
46
builder.AddAttribute(8, "onchange", EventCallback.Factory.CreateBinder<bool>(this, __value =>
CurrentValue
= __value, CurrentValue));
Forms\InputSelect.cs (1)
88
CurrentValue
= BindConverter.TryConvertTo<TValue>(value, CultureInfo.CurrentCulture, out var result)
Microsoft.AspNetCore.Components.Web.Tests (1)
Forms\InputBaseTest.cs (1)
544
set { base.
CurrentValue
= value; }
8 references to CurrentValue
Microsoft.AspNetCore.Components.Web (6)
Forms\InputBase.cs (1)
112
get => _parsingFailed ? _incomingValueBeforeParsing : FormatValueAsString(
CurrentValue
);
Forms\InputCheckbox.cs (3)
40
builder.AddAttribute(6, "checked", BindConverter.FormatValue(
CurrentValue
));
46
builder.AddAttribute(8, "onchange", EventCallback.Factory.CreateBinder<bool>(this, __value => CurrentValue = __value,
CurrentValue
));
54
=> throw new NotSupportedException($"This component does not parse string inputs. Bind to the '{nameof(
CurrentValue
)}' property, not '{nameof(CurrentValueAsString)}'.");
Forms\InputRadioGroup.cs (1)
30
object? IInputRadioValueProvider.CurrentValue =>
CurrentValue
;
Forms\InputSelect.cs (1)
50
builder.AddAttribute(6, "value", BindConverter.FormatValue(
CurrentValue
)?.ToString());
Microsoft.AspNetCore.Components.Web.Tests (2)
Forms\InputBaseTest.cs (1)
543
get => base.
CurrentValue
;
Forms\InputSelectTest.cs (1)
283
public new TValue CurrentValue => base.
CurrentValue
;