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)
48
return new
ElementReference
(id, _elementReferenceContext);
60 references to ElementReference
Aspire.Dashboard (3)
Components\Controls\AssistantChat.razor.cs (1)
46
private
ElementReference
? _chatMessageTextBox;
Components\Controls\MarkdownRenderer.razor.cs (1)
13
private
ElementReference
_containerElement;
Components\Controls\TextVisualizer.razor.cs (1)
15
private
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>
48
internal static
ElementReference
CreateWithUniqueId(ElementReferenceContext? context)
ElementReferenceContext.cs (1)
7
/// Context for an <see cref="
ElementReference
"/>.
Rendering\RenderTreeBuilder.cs (1)
596
public void AddElementReferenceCapture(int sequence, Action<
ElementReference
> elementReferenceCaptureAction)
RenderTree\RenderTreeDiffBuilder.cs (2)
1027
var
newElementReference =
ElementReference
.CreateWithUniqueId(diffContext.Renderer.ElementReferenceContext);
RenderTree\RenderTreeFrame.cs (4)
209
[FieldOffset(24)] internal Action<
ElementReference
> ElementReferenceCaptureActionField;
221
public Action<
ElementReference
> ElementReferenceCaptureAction => ElementReferenceCaptureActionField;
371
private RenderTreeFrame(int sequence, Action<
ElementReference
> elementReferenceCaptureAction, string elementReferenceCaptureId)
411
internal static RenderTreeFrame ElementReferenceCapture(int sequence, Action<
ElementReference
> elementReferenceCaptureAction)
RenderTree\RenderTreeFrameArrayBuilder.cs (1)
93
public void AppendElementReferenceCapture(int sequence, Action<
ElementReference
> elementReferenceCaptureAction)
Microsoft.AspNetCore.Components.Server (3)
src\aspnetcore\src\Components\Shared\src\ElementReferenceJsonConverter.cs (3)
9
internal sealed class ElementReferenceJsonConverter : JsonConverter<
ElementReference
>
20
public override
ElementReference
Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
51
public 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
"/>.
18
public static ValueTask FocusAsync(this
ElementReference
elementReference) => elementReference.FocusAsync(preventScroll: false);
21
/// Gives focus to an element given its <see cref="
ElementReference
"/>.
32
public static ValueTask FocusAsync(this
ElementReference
elementReference, bool preventScroll)
44
internal 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)
15
private
ElementReference
_inputFileElement;
35
/// Gets or sets the associated <see cref="
ElementReference
"/>.
41
public
ElementReference
? Element
Forms\InputFile\BrowserFileStream.cs (2)
12
private readonly
ElementReference
_inputFileElement;
24
ElementReference
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)
161
internal void Initialize(Action<
ElementReference
> capture, EventCallback onClick)
Media\MediaComponentBase.cs (1)
60
internal
ElementReference
? Element { get; set; }
Media\MediaContext.cs (4)
27
private Action<
ElementReference
>? _capture;
28
private
ElementReference
_element;
30
internal void Initialize(Action<
ElementReference
> capture) => _capture = capture;
35
public
ElementReference
Element
Virtualization\Virtualize.cs (2)
20
private
ElementReference
_spacerBefore;
22
private
ElementReference
_spacerAfter;
Virtualization\VirtualizeJsInterop.cs (2)
27
public async ValueTask InitializeAsync(
ElementReference
spacerBefore,
ElementReference
spacerAfter, int anchorMode)