16 references to CreateBinder
Microsoft.AspNetCore.Components.Tests (8)
EventCallbackFactoryBinderExtensionsTest.cs (6)
353
var binder = EventCallback.Factory.
CreateBinder
(component, setter, value);
372
var binder = EventCallback.Factory.
CreateBinder
(component, setter, value);
548
var binder = EventCallback.Factory.
CreateBinder
(component, setter, value);
568
var binder = EventCallback.Factory.
CreateBinder
(component, setter, value);
587
var binder = EventCallback.Factory.
CreateBinder
(component, setter, value);
605
var ex = Assert.Throws<InvalidOperationException>(() => EventCallback.Factory.
CreateBinder
(component, setter, value));
RendererTest.cs (2)
5489
builder.AddAttribute(3, "onchange", EventCallback.Factory.
CreateBinder
<bool>(this, __value => CheckboxEnabled = __value, CheckboxEnabled));
5493
builder.AddAttribute(6, "onchange", EventCallback.Factory.
CreateBinder
<string>(this, __value => SomeStringProperty = __value, SomeStringProperty));
Microsoft.AspNetCore.Components.Web (8)
Forms\InputCheckbox.cs (1)
45
builder.AddAttribute(7, "onchange", EventCallback.Factory.
CreateBinder
<bool>(this, __value => CurrentValue = __value, CurrentValue));
Forms\InputDate.cs (1)
92
builder.AddAttribute(6, "onchange", EventCallback.Factory.
CreateBinder
<string?>(this, __value => CurrentValueAsString = __value, CurrentValueAsString));
Forms\InputNumber.cs (1)
61
builder.AddAttribute(7, "onchange", EventCallback.Factory.
CreateBinder
<string?>(this, __value => CurrentValueAsString = __value, CurrentValueAsString));
Forms\InputRadioGroup.cs (1)
38
var changeEventCallback = EventCallback.Factory.
CreateBinder
<string?>(this, __value => CurrentValueAsString = __value, CurrentValueAsString);
Forms\InputSelect.cs (2)
50
builder.AddAttribute(6, "onchange", EventCallback.Factory.
CreateBinder
<string?[]?>(this, SetCurrentValueAsStringArray, default));
56
builder.AddAttribute(8, "onchange", EventCallback.Factory.
CreateBinder
<string?>(this, __value => CurrentValueAsString = __value, default));
Forms\InputText.cs (1)
39
builder.AddAttribute(5, "onchange", EventCallback.Factory.
CreateBinder
<string?>(this, __value => CurrentValueAsString = __value, CurrentValueAsString));
Forms\InputTextArea.cs (1)
39
builder.AddAttribute(5, "onchange", EventCallback.Factory.
CreateBinder
<string?>(this, __value => CurrentValueAsString = __value, CurrentValueAsString));