30 references to ViewportInformation
Aspire.Dashboard (2)
Components\Layout\MainLayout.razor.cs (2)
361
if (
ViewportInformation
.IsDesktop && _isNavMenuOpen)
368
private string GetDefaultReturnFocusElementId(string desktopButtonId) =>
ViewportInformation
.IsDesktop ? desktopButtonId : NavigationButtonId;
Aspire.Dashboard.Components.Tests (28)
Layout\MainLayoutResourceTerminalsTests.cs (3)
35
var cut = Render<MainLayout>(builder => builder.Add(p => p.
ViewportInformation
,
69
var cut = Render<MainLayout>(builder => builder.Add(p => p.
ViewportInformation
,
106
var cut = Render<MainLayout>(builder => builder.Add(p => p.
ViewportInformation
,
Layout\MainLayoutTerminalTests.cs (3)
42
var cut = Render<MainLayout>(builder => builder.Add(p => p.
ViewportInformation
,
110
var cut = Render<MainLayout>(builder => builder.Add(p => p.
ViewportInformation
,
180
var cut = Render<MainLayout>(builder => builder.Add(p => p.
ViewportInformation
,
Layout\MainLayoutTests.cs (22)
43
var cut = Render<MainLayout>(builder => builder.Add(p => p.
ViewportInformation
,
68
var cut = Render<MainLayout>(builder => builder.Add(p => p.
ViewportInformation
,
90
var cut = Render<MainLayout>(builder => builder.Add(p => p.
ViewportInformation
,
111
var cut = Render<MainLayout>(builder => builder.Add(p => p.
ViewportInformation
,
146
.Add(p => p.
ViewportInformation
, new ViewportInformation(IsDesktop: true, IsUltraLowHeight: false, IsUltraLowWidth: false)));
195
builder.Add(p => p.
ViewportInformation
, new ViewportInformation(IsDesktop: true, IsUltraLowHeight: false, IsUltraLowWidth: false));
237
builder.Add(p => p.
ViewportInformation
, new ViewportInformation(IsDesktop: true, IsUltraLowHeight: false, IsUltraLowWidth: false));
278
builder.Add(p => p.
ViewportInformation
, new ViewportInformation(IsDesktop: true, IsUltraLowHeight: false, IsUltraLowWidth: false));
326
builder.Add(p => p.
ViewportInformation
, new ViewportInformation(IsDesktop: true, IsUltraLowHeight: false, IsUltraLowWidth: false));
356
builder.Add(p => p.
ViewportInformation
, new ViewportInformation(IsDesktop: isDesktop, IsUltraLowHeight: false, IsUltraLowWidth: false));
397
builder.Add(p => p.
ViewportInformation
, new ViewportInformation(IsDesktop: isDesktop, IsUltraLowHeight: false, IsUltraLowWidth: false));
427
builder.Add(p => p.
ViewportInformation
, new ViewportInformation(IsDesktop: isDesktop, IsUltraLowHeight: false, IsUltraLowWidth: false));
456
var cut = Render<MainLayout>(builder => builder.Add(p => p.
ViewportInformation
,
525
builder.Add(component => component.
ViewportInformation
, new ViewportInformation(IsDesktop: true, IsUltraLowHeight: false, IsUltraLowWidth: false));
622
builder.Add(component => component.
ViewportInformation
, new ViewportInformation(IsDesktop: true, IsUltraLowHeight: false, IsUltraLowWidth: false));
669
component => component.
ViewportInformation
,
770
builder.Add(p => p.
ViewportInformation
, new ViewportInformation(IsDesktop: true, IsUltraLowHeight: false, IsUltraLowWidth: false));
821
builder.Add(p => p.
ViewportInformation
, new ViewportInformation(IsDesktop: true, IsUltraLowHeight: false, IsUltraLowWidth: false));
887
builder.Add(p => p.
ViewportInformation
, new ViewportInformation(IsDesktop: true, IsUltraLowHeight: false, IsUltraLowWidth: false));
940
builder.Add(p => p.
ViewportInformation
, new ViewportInformation(IsDesktop: true, IsUltraLowHeight: false, IsUltraLowWidth: false));
1034
builder.Add(p => p.
ViewportInformation
, new ViewportInformation(IsDesktop: true, IsUltraLowHeight: false, IsUltraLowWidth: false));
1062
builder.Add(p => p.
ViewportInformation
, new ViewportInformation(IsDesktop: true, IsUltraLowHeight: false, IsUltraLowWidth: false));