2 instantiations of ElementReference
Microsoft.AspNetCore.Components (1)
ElementReference.cs (1)
49=> new ElementReference(CreateUniqueId(), context);
Microsoft.AspNetCore.Components.Server (1)
src\aspnetcore\src\Components\Shared\src\ElementReferenceJsonConverter.cs (1)
48return new ElementReference(id, _elementReferenceContext);
60 references to ElementReference
Aspire.Dashboard (3)
Components\Controls\AssistantChat.razor.cs (1)
46private ElementReference? _chatMessageTextBox;
Components\Controls\MarkdownRenderer.razor.cs (1)
13private ElementReference _containerElement;
Components\Controls\TextVisualizer.razor.cs (1)
15private ElementReference _containerElement;
Microsoft.AspNetCore.Components (17)
ComponentBase.cs (2)
155/// updating (for example, after elements have been added to the browser DOM). Any <see cref="ElementReference" /> 177/// updating (for example, after elements have been added to the browser DOM). Any <see cref="ElementReference" />
ElementReference.cs (6)
16/// Gets a unique identifier for <see cref="ElementReference" />. 30/// Instantiates a new <see cref="ElementReference" />. 32/// <param name="id">A unique identifier for this <see cref="ElementReference"/>.</param> 41/// Instantiates a new <see cref="ElementReference"/>. 43/// <param name="id">A unique identifier for this <see cref="ElementReference"/>.</param> 48internal static ElementReference CreateWithUniqueId(ElementReferenceContext? context)
ElementReferenceContext.cs (1)
7/// Context for an <see cref="ElementReference"/>.
Rendering\RenderTreeBuilder.cs (1)
596public void AddElementReferenceCapture(int sequence, Action<ElementReference> elementReferenceCaptureAction)
RenderTree\RenderTreeDiffBuilder.cs (2)
1027var newElementReference = ElementReference.CreateWithUniqueId(diffContext.Renderer.ElementReferenceContext);
RenderTree\RenderTreeFrame.cs (4)
209[FieldOffset(24)] internal Action<ElementReference> ElementReferenceCaptureActionField; 221public Action<ElementReference> ElementReferenceCaptureAction => ElementReferenceCaptureActionField; 371private RenderTreeFrame(int sequence, Action<ElementReference> elementReferenceCaptureAction, string elementReferenceCaptureId) 411internal static RenderTreeFrame ElementReferenceCapture(int sequence, Action<ElementReference> elementReferenceCaptureAction)
RenderTree\RenderTreeFrameArrayBuilder.cs (1)
93public void AppendElementReferenceCapture(int sequence, Action<ElementReference> elementReferenceCaptureAction)
Microsoft.AspNetCore.Components.Server (3)
src\aspnetcore\src\Components\Shared\src\ElementReferenceJsonConverter.cs (3)
9internal sealed class ElementReferenceJsonConverter : JsonConverter<ElementReference> 20public override ElementReference Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) 51public override void Write(Utf8JsonWriter writer, ElementReference value, JsonSerializerOptions options)
Microsoft.AspNetCore.Components.Web (37)
ElementReferenceExtensions.cs (6)
9/// Static class that adds extension methods to <see cref="ElementReference"/>. 14/// Gives focus to an element given its <see cref="ElementReference"/>. 18public static ValueTask FocusAsync(this ElementReference elementReference) => elementReference.FocusAsync(preventScroll: false); 21/// Gives focus to an element given its <see cref="ElementReference"/>. 32public static ValueTask FocusAsync(this ElementReference elementReference, bool preventScroll) 44internal static IJSRuntime GetJSRuntime(this ElementReference elementReference)
Forms\InputCheckbox.cs (2)
24/// Gets or sets the associated <see cref="ElementReference"/>. 29[DisallowNull] public ElementReference? Element { get; protected set; }
Forms\InputDate.cs (2)
43/// Gets or sets the associated <see cref="ElementReference"/>. 48[DisallowNull] public ElementReference? Element { get; protected set; }
Forms\InputFile.cs (3)
15private ElementReference _inputFileElement; 35/// Gets or sets the associated <see cref="ElementReference"/>. 41public ElementReference? Element
Forms\InputFile\BrowserFileStream.cs (2)
12private readonly ElementReference _inputFileElement; 24ElementReference inputFileElement,
Forms\InputHidden.cs (2)
15/// Gets or sets the associated <see cref="ElementReference"/>. 20[DisallowNull] public ElementReference? Element { get; protected set; }
Forms\InputNumber.cs (2)
44/// Gets or sets the associated <see cref="ElementReference"/>. 49[DisallowNull] public ElementReference? Element { get; protected set; }
Forms\InputRadio.cs (2)
39/// Gets or sets the associated <see cref="ElementReference"/>. 44[DisallowNull] public ElementReference? Element { get; protected set; }
Forms\InputSelect.cs (2)
31/// Gets or sets the <c>select</c> <see cref="ElementReference"/>. 36[DisallowNull] public ElementReference? Element { get; protected set; }
Forms\InputText.cs (2)
24/// Gets or sets the associated <see cref="ElementReference"/>. 29[DisallowNull] public ElementReference? Element { get; protected set; }
Forms\InputTextArea.cs (2)
24/// Gets or sets the associated <see cref="ElementReference"/>. 29[DisallowNull] public ElementReference? Element { get; protected set; }
Media\FileDownload.cs (1)
161internal void Initialize(Action<ElementReference> capture, EventCallback onClick)
Media\MediaComponentBase.cs (1)
60internal ElementReference? Element { get; set; }
Media\MediaContext.cs (4)
27private Action<ElementReference>? _capture; 28private ElementReference _element; 30internal void Initialize(Action<ElementReference> capture) => _capture = capture; 35public ElementReference Element
Virtualization\Virtualize.cs (2)
20private ElementReference _spacerBefore; 22private ElementReference _spacerAfter;
Virtualization\VirtualizeJsInterop.cs (2)
27public async ValueTask InitializeAsync(ElementReference spacerBefore, ElementReference spacerAfter, int anchorMode)