26 references to ControlsStrings
Aspire.Dashboard (25)
Components\Controls\Chart\ChartContainer.razor.cs (2)
213null => Loc[nameof(ControlsStrings.LabelUnset)], 214{ Length: 0 } => Loc[nameof(ControlsStrings.LabelEmpty)],
Components\Controls\Chart\MetricTable.razor.cs (3)
306ValueDirectionChange.Up => (new Icons.Filled.Size16.ArrowCircleUp().WithColor(Color.Success), Loc[nameof(ControlsStrings.MetricTableValueIncreased)]), 307ValueDirectionChange.Down => (new Icons.Filled.Size16.ArrowCircleDown().WithColor(Color.Warning), Loc[nameof(ControlsStrings.MetricTableValueDecreased)]), 308ValueDirectionChange.Constant => (new Icons.Filled.Size16.ArrowCircleRight().WithColor(Color.Info), Loc[nameof(ControlsStrings.MetricTableValueNoChange)]),
Components\Controls\Chart\PlotlyChart.razor.cs (4)
50{Loc[nameof(ControlsStrings.PlotlyChartValue)]}: {formattedValue}<br /> 51{Loc[nameof(ControlsStrings.PlotlyChartTime)]}: {FormatHelpers.FormatTime(TimeProvider, TimeProvider.ToLocal(xValue))} 147Name = Loc[nameof(ControlsStrings.PlotlyChartExemplars)], 158: $"{Loc[nameof(ControlsStrings.PlotlyChartTrace)]}: {OtlpHelpers.ToShortenedId(exemplar.TraceId)}";
Components\Controls\Grid\AspireFluentDataGridHeaderCell.razor.cs (5)
59return Loc[nameof(ControlsStrings.FluentDataGridHeaderCellSortDescendingButtonText)]; 63return Loc[nameof(ControlsStrings.FluentDataGridHeaderCellSortAscendingButtonText)]; 67return Loc[nameof(ControlsStrings.FluentDataGridHeaderCellSortButtonText)]; 88public static string GetResizeLabel(IStringLocalizer<ControlsStrings> loc) 90return loc[nameof(ControlsStrings.FluentDataGridHeaderCellResizeLabel)];
Components\Controls\GridValue.razor.cs (2)
102PreCopyToolTip = Loc[nameof(ControlsStrings.GridValueCopyToClipboard)]; 103PostCopyToolTip = Loc[nameof(ControlsStrings.GridValueCopied)];
Components\Layout\AspirePageContentLayout.razor.cs (1)
85Title = MobileToolbarButtonText ?? ControlsStringsLoc[nameof(ControlsStrings.ChartContainerFiltersHeader)],
Components\Pages\ConsoleLogs.razor.cs (1)
105_noSelection = new() { Id = null, Name = ControlsStringsLoc[nameof(ControlsStrings.LabelNone)] };
Components\Pages\Metrics.razor.cs (1)
85Name = ControlsStringsLoc[nameof(ControlsStrings.LabelNone)]
Components\Pages\Traces.razor.cs (1)
148_allApplication = new SelectViewModel<ResourceTypeDetails> { Id = null, Name = ControlsStringsLoc[name: nameof(ControlsStrings.LabelAll)] };
Model\DefaultInstrumentUnitResolver.cs (4)
12public sealed class DefaultInstrumentUnitResolver(IStringLocalizer<ControlsStrings> loc) : IInstrumentUnitResolver 38return UntitleCase(loc[nameof(ControlsStrings.PlotlyChartCount)], titleCase); 42return UntitleCase(loc[nameof(ControlsStrings.PlotlyChartLength)], titleCase); 46return UntitleCase(loc[nameof(ControlsStrings.PlotlyChartValue)], titleCase);
Resources\ControlsStrings.Designer.cs (1)
41global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Aspire.Dashboard.Resources.ControlsStrings", typeof(ControlsStrings).Assembly);
Aspire.Dashboard.Tests (1)
Model\DefaultInstrumentUnitResolverTests.cs (1)
25var localizer = new TestStringLocalizer<ControlsStrings>();