25 references to ViewportInformation
Aspire.Dashboard (2)
Components\Layout\MainLayout.razor.cs (2)
275
if (
ViewportInformation
.IsDesktop && _isNavMenuOpen)
282
private string GetDefaultReturnFocusElementId(string desktopButtonId) =>
ViewportInformation
.IsDesktop ? desktopButtonId : NavigationButtonId;
Aspire.Dashboard.Components.Tests (23)
Layout\MainLayoutResourceTerminalsTests.cs (3)
36
var cut = Render<MainLayout>(builder => builder.Add(p => p.
ViewportInformation
,
70
var cut = Render<MainLayout>(builder => builder.Add(p => p.
ViewportInformation
,
107
var cut = Render<MainLayout>(builder => builder.Add(p => p.
ViewportInformation
,
Layout\MainLayoutTerminalTests.cs (3)
43
var cut = Render<MainLayout>(builder => builder.Add(p => p.
ViewportInformation
,
111
var cut = Render<MainLayout>(builder => builder.Add(p => p.
ViewportInformation
,
181
var cut = Render<MainLayout>(builder => builder.Add(p => p.
ViewportInformation
,
Layout\MainLayoutTests.cs (17)
70
builder.Add(p => p.
ViewportInformation
, new ViewportInformation(IsDesktop: true, IsUltraLowHeight: false, IsUltraLowWidth: false));
107
builder.Add(p => p.
ViewportInformation
, new ViewportInformation(IsDesktop: true, IsUltraLowHeight: false, IsUltraLowWidth: false));
143
builder.Add(p => p.
ViewportInformation
, new ViewportInformation(IsDesktop: true, IsUltraLowHeight: false, IsUltraLowWidth: false));
188
builder.Add(p => p.
ViewportInformation
, new ViewportInformation(IsDesktop: true, IsUltraLowHeight: false, IsUltraLowWidth: false));
217
builder.Add(p => p.
ViewportInformation
, new ViewportInformation(IsDesktop: true, IsUltraLowHeight: false, IsUltraLowWidth: false));
248
builder.Add(p => p.
ViewportInformation
, new ViewportInformation(IsDesktop: isDesktop, IsUltraLowHeight: false, IsUltraLowWidth: false));
289
builder.Add(p => p.
ViewportInformation
, new ViewportInformation(IsDesktop: isDesktop, IsUltraLowHeight: false, IsUltraLowWidth: false));
330
component => component.
ViewportInformation
,
444
component => component.
ViewportInformation
,
492
builder.Add(component => component.
ViewportInformation
, new ViewportInformation(IsDesktop: true, IsUltraLowHeight: false, IsUltraLowWidth: false));
703
builder.Add(component => component.
ViewportInformation
, new ViewportInformation(IsDesktop: true, IsUltraLowHeight: false, IsUltraLowWidth: false));
924
builder.Add(p => p.
ViewportInformation
, new ViewportInformation(IsDesktop: true, IsUltraLowHeight: false, IsUltraLowWidth: false));
978
builder.Add(p => p.
ViewportInformation
, new ViewportInformation(IsDesktop: true, IsUltraLowHeight: false, IsUltraLowWidth: false));
1043
builder.Add(p => p.
ViewportInformation
, new ViewportInformation(IsDesktop: true, IsUltraLowHeight: false, IsUltraLowWidth: false));
1094
builder.Add(p => p.
ViewportInformation
, new ViewportInformation(IsDesktop: true, IsUltraLowHeight: false, IsUltraLowWidth: false));
1191
builder.Add(p => p.
ViewportInformation
, new ViewportInformation(IsDesktop: true, IsUltraLowHeight: false, IsUltraLowWidth: false));
1219
builder.Add(p => p.
ViewportInformation
, new ViewportInformation(IsDesktop: true, IsUltraLowHeight: false, IsUltraLowWidth: false));