29 references to CascadingValue
Aspire.Dashboard.Components.Tests (6)
Controls\AspireMenuTests.cs (2)
42var menuHost = RenderComponent<CascadingValue<bool>>(builder => 97var menuHost = RenderComponent<CascadingValue<bool>>(builder =>
Layout\MainLayoutTests.cs (1)
978var cut = RenderComponent<CascadingValue<ViewportInformation>>(builder =>
Pages\ConsoleLogsTests.cs (3)
1178builder.OpenComponent<CascadingValue<ViewportInformation>>(0); 1179builder.AddAttribute(1, nameof(CascadingValue<ViewportInformation>.Value), viewport); 1180builder.AddAttribute(2, nameof(CascadingValue<ViewportInformation>.ChildContent), (RenderFragment)(childBuilder =>
Microsoft.AspNetCore.Components (13)
CascadingParameterAttribute.cs (3)
8/// supplied by the closest ancestor <see cref="CascadingValue{T}"/> component that 16/// ancestor <see cref="CascadingValue{T}"/> that supplies a value with 20/// <see cref="CascadingValue{T}"/> that supplies a value with a compatible
CascadingValue.cs (3)
81throw new ArgumentException($"The parameter '{nameof(Name)}' for component '{nameof(CascadingValue<TValue>)}' does not allow null or empty values."); 90throw new ArgumentException($"The component '{nameof(CascadingValue<TValue>)}' does not accept a parameter with the name '{parameter.Name}'."); 154throw new InvalidOperationException($"Cannot subscribe to a {typeof(CascadingValue<>).Name} when {nameof(IsFixed)} is true.");
CascadingValueServiceCollectionExtensions.cs (6)
17/// a fixed <see cref="CascadingValue{TValue}"/> at the root of the component hierarchy. 29/// a fixed <see cref="CascadingValue{TValue}"/> at the root of the component hierarchy. 42/// a <see cref="CascadingValue{TValue}"/> at the root of the component hierarchy. 76/// with the value type. This is equivalent to having a fixed <see cref="CascadingValue{TValue}"/> at 94/// <see cref="CascadingValue{TValue}"/> at the root of the component hierarchy. 111/// with the value type. This is equivalent to having a fixed <see cref="CascadingValue{TValue}"/> at
ParameterValue.cs (1)
31/// was supplied by a <see cref="CascadingValue{T}"/>.
Microsoft.AspNetCore.Components.AI (2)
Components\AgentBoundary.cs (1)
58builder.OpenComponent<CascadingValue<AgentContext>>(0);
Components\MessageList.cs (1)
98builder.OpenComponent<CascadingValue<MessageListContext>>(0);
Microsoft.AspNetCore.Components.Authorization (3)
_generated\0\CascadingAuthenticationState_razor.g.cs (3)
29__builder.OpenComponent<global::Microsoft.AspNetCore.Components.CascadingValue< 38__builder.AddComponentParameter(1, nameof(global::Microsoft.AspNetCore.Components.CascadingValue<System.Threading.Tasks.Task<AuthenticationState>>. 55__builder.AddComponentParameter(2, nameof(global::Microsoft.AspNetCore.Components.CascadingValue<System.Threading.Tasks.Task<AuthenticationState>>.
Microsoft.AspNetCore.Components.QuickGrid (3)
_generated\2\QuickGrid_razor.g.cs (3)
53__builder.OpenComponent<global::Microsoft.AspNetCore.Components.CascadingValue< 62__builder.AddComponentParameter(1, nameof(global::Microsoft.AspNetCore.Components.CascadingValue<InternalGridContext<TGridItem>>. 79__builder.AddComponentParameter(2, nameof(global::Microsoft.AspNetCore.Components.CascadingValue<InternalGridContext<TGridItem>>.
Microsoft.AspNetCore.Components.Web (2)
Forms\EditForm.cs (1)
167builder.OpenComponent<CascadingValue<EditContext>>(7);
Forms\InputRadioGroup.cs (1)
75builder.OpenComponent<CascadingValue<InputRadioContext>>(0);