5 writes to CurrentValue
Microsoft.AspNetCore.Components.Web (4)
Forms\InputBase.cs (2)
125
CurrentValue
= default!;
130
CurrentValue
= parsedValue!;
Forms\InputCheckbox.cs (1)
45
builder.AddAttribute(7, "onchange", EventCallback.Factory.CreateBinder<bool>(this, __value =>
CurrentValue
= __value, CurrentValue));
Forms\InputSelect.cs (1)
87
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)
39
builder.AddAttribute(5, "checked", BindConverter.FormatValue(
CurrentValue
));
45
builder.AddAttribute(7, "onchange", EventCallback.Factory.CreateBinder<bool>(this, __value => CurrentValue = __value,
CurrentValue
));
53
=> 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)
49
builder.AddAttribute(5, "value", BindConverter.FormatValue(
CurrentValue
)?.ToString());
Microsoft.AspNetCore.Components.Web.Tests (2)
Forms\InputBaseTest.cs (1)
543
get => base.
CurrentValue
;
Forms\InputSelectTest.cs (1)
235
public new TValue CurrentValue => base.
CurrentValue
;