26 references to ControlsStrings
Aspire.Dashboard (25)
Components\Controls\Chart\ChartContainer.razor.cs (2)
213
null => Loc[nameof(
ControlsStrings
.LabelUnset)],
214
{ Length: 0 } => Loc[nameof(
ControlsStrings
.LabelEmpty)],
Components\Controls\Chart\MetricTable.razor.cs (3)
306
ValueDirectionChange.Up => (new Icons.Filled.Size16.ArrowCircleUp().WithColor(Color.Success), Loc[nameof(
ControlsStrings
.MetricTableValueIncreased)]),
307
ValueDirectionChange.Down => (new Icons.Filled.Size16.ArrowCircleDown().WithColor(Color.Warning), Loc[nameof(
ControlsStrings
.MetricTableValueDecreased)]),
308
ValueDirectionChange.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))}
147
Name = Loc[nameof(
ControlsStrings
.PlotlyChartExemplars)],
158
: $"{Loc[nameof(
ControlsStrings
.PlotlyChartTrace)]}: {OtlpHelpers.ToShortenedId(exemplar.TraceId)}";
Components\Controls\Grid\AspireFluentDataGridHeaderCell.razor.cs (5)
59
return Loc[nameof(
ControlsStrings
.FluentDataGridHeaderCellSortDescendingButtonText)];
63
return Loc[nameof(
ControlsStrings
.FluentDataGridHeaderCellSortAscendingButtonText)];
67
return Loc[nameof(
ControlsStrings
.FluentDataGridHeaderCellSortButtonText)];
88
public static string GetResizeLabel(IStringLocalizer<
ControlsStrings
> loc)
90
return loc[nameof(
ControlsStrings
.FluentDataGridHeaderCellResizeLabel)];
Components\Controls\GridValue.razor.cs (2)
102
PreCopyToolTip = Loc[nameof(
ControlsStrings
.GridValueCopyToClipboard)];
103
PostCopyToolTip = Loc[nameof(
ControlsStrings
.GridValueCopied)];
Components\Layout\AspirePageContentLayout.razor.cs (1)
85
Title = 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)
85
Name = 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)
12
public sealed class DefaultInstrumentUnitResolver(IStringLocalizer<
ControlsStrings
> loc) : IInstrumentUnitResolver
38
return UntitleCase(loc[nameof(
ControlsStrings
.PlotlyChartCount)], titleCase);
42
return UntitleCase(loc[nameof(
ControlsStrings
.PlotlyChartLength)], titleCase);
46
return UntitleCase(loc[nameof(
ControlsStrings
.PlotlyChartValue)], titleCase);
Resources\ControlsStrings.Designer.cs (1)
41
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Aspire.Dashboard.Resources.ControlsStrings", typeof(
ControlsStrings
).Assembly);
Aspire.Dashboard.Tests (1)
Model\DefaultInstrumentUnitResolverTests.cs (1)
25
var localizer = new TestStringLocalizer<
ControlsStrings
>();