26 references to ViewportInformation
Aspire.Dashboard (2)
Components\Layout\MainLayout.razor.cs (2)
303
if (
ViewportInformation
.IsDesktop && _isNavMenuOpen)
310
private string GetDefaultReturnFocusElementId(string desktopButtonId) =>
ViewportInformation
.IsDesktop ? desktopButtonId : NavigationButtonId;
Aspire.Dashboard.Components.Tests (24)
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 (18)
39
.Add(p => p.
ViewportInformation
, new ViewportInformation(IsDesktop: true, IsUltraLowHeight: false, IsUltraLowWidth: false)));
83
builder.Add(p => p.
ViewportInformation
, new ViewportInformation(IsDesktop: true, IsUltraLowHeight: false, IsUltraLowWidth: false));
120
builder.Add(p => p.
ViewportInformation
, new ViewportInformation(IsDesktop: true, IsUltraLowHeight: false, IsUltraLowWidth: false));
156
builder.Add(p => p.
ViewportInformation
, new ViewportInformation(IsDesktop: true, IsUltraLowHeight: false, IsUltraLowWidth: false));
201
builder.Add(p => p.
ViewportInformation
, new ViewportInformation(IsDesktop: true, IsUltraLowHeight: false, IsUltraLowWidth: false));
230
builder.Add(p => p.
ViewportInformation
, new ViewportInformation(IsDesktop: true, IsUltraLowHeight: false, IsUltraLowWidth: false));
261
builder.Add(p => p.
ViewportInformation
, new ViewportInformation(IsDesktop: isDesktop, IsUltraLowHeight: false, IsUltraLowWidth: false));
302
builder.Add(p => p.
ViewportInformation
, new ViewportInformation(IsDesktop: isDesktop, IsUltraLowHeight: false, IsUltraLowWidth: false));
343
component => component.
ViewportInformation
,
457
component => component.
ViewportInformation
,
505
builder.Add(component => component.
ViewportInformation
, new ViewportInformation(IsDesktop: true, IsUltraLowHeight: false, IsUltraLowWidth: false));
716
builder.Add(component => component.
ViewportInformation
, new ViewportInformation(IsDesktop: true, IsUltraLowHeight: false, IsUltraLowWidth: false));
937
builder.Add(p => p.
ViewportInformation
, new ViewportInformation(IsDesktop: true, IsUltraLowHeight: false, IsUltraLowWidth: false));
991
builder.Add(p => p.
ViewportInformation
, new ViewportInformation(IsDesktop: true, IsUltraLowHeight: false, IsUltraLowWidth: false));
1056
builder.Add(p => p.
ViewportInformation
, new ViewportInformation(IsDesktop: true, IsUltraLowHeight: false, IsUltraLowWidth: false));
1107
builder.Add(p => p.
ViewportInformation
, new ViewportInformation(IsDesktop: true, IsUltraLowHeight: false, IsUltraLowWidth: false));
1204
builder.Add(p => p.
ViewportInformation
, new ViewportInformation(IsDesktop: true, IsUltraLowHeight: false, IsUltraLowWidth: false));
1232
builder.Add(p => p.
ViewportInformation
, new ViewportInformation(IsDesktop: true, IsUltraLowHeight: false, IsUltraLowWidth: false));