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