18 instantiations of ViewportInformation
Aspire.Dashboard (1)
Components\Resize\ViewportInformation.cs (1)
27return new ViewportInformation(
Aspire.Dashboard.Components.Tests (17)
Controls\PlotlyChartTests.cs (2)
35builder.Add(p => p.ViewportInformation, new ViewportInformation(IsDesktop: true, IsUltraLowHeight: false, IsUltraLowWidth: false)); 90builder.Add(p => p.ViewportInformation, new ViewportInformation(IsDesktop: true, IsUltraLowHeight: false, IsUltraLowWidth: false));
GridColumnManagerTests.cs (5)
18dimensionManager.InvokeOnViewportInformationChanged(new ViewportInformation(IsDesktop: true, IsUltraLowHeight: false, IsUltraLowWidth: false)); 38dimensionManager.InvokeOnViewportInformationChanged(new ViewportInformation(IsDesktop: false, IsUltraLowHeight: true, IsUltraLowWidth: false)); 46dimensionManager.InvokeOnViewportInformationChanged(new ViewportInformation(IsDesktop: true, IsUltraLowHeight: false, IsUltraLowWidth: false)); 69dimensionManager.InvokeOnViewportInformationChanged(new ViewportInformation(IsDesktop: false, IsUltraLowHeight: true, IsUltraLowWidth: false)); 83dimensionManager.InvokeOnViewportInformationChanged(new ViewportInformation(IsDesktop: true, IsUltraLowHeight: false, IsUltraLowWidth: false));
Layout\MainLayoutTests.cs (2)
68builder.Add(p => p.ViewportInformation, new ViewportInformation(IsDesktop: true, IsUltraLowHeight: false, IsUltraLowWidth: false)); 112builder.Add(p => p.ViewportInformation, new ViewportInformation(IsDesktop: true, IsUltraLowHeight: false, IsUltraLowWidth: false));
Pages\ConsoleLogsTests.cs (2)
51var viewport = new ViewportInformation(IsDesktop: true, IsUltraLowHeight: false, IsUltraLowWidth: false); 111var viewport = new ViewportInformation(IsDesktop: true, IsUltraLowHeight: false, IsUltraLowWidth: false);
Pages\MetricsTests.cs (2)
108builder.AddCascadingValue(new ViewportInformation(IsDesktop: true, IsUltraLowHeight: false, IsUltraLowWidth: false)); 169builder.AddCascadingValue(new ViewportInformation(IsDesktop: true, IsUltraLowHeight: false, IsUltraLowWidth: false));
Pages\StructuredLogsTests.cs (3)
38var viewport = new ViewportInformation(IsDesktop: true, IsUltraLowHeight: false, IsUltraLowWidth: false); 78var viewport = new ViewportInformation(IsDesktop: true, IsUltraLowHeight: false, IsUltraLowWidth: false); 116var viewport = new ViewportInformation(IsDesktop: true, IsUltraLowHeight: false, IsUltraLowWidth: false);
Pages\TraceDetailsTests.cs (1)
37var viewport = new ViewportInformation(IsDesktop: true, IsUltraLowHeight: false, IsUltraLowWidth: false);
30 references to ViewportInformation
Aspire.Dashboard (22)
Components\Dialogs\TextVisualizerDialog.razor.cs (1)
266public static async Task OpenDialogAsync(ViewportInformation viewportInformation, IDialogService dialogService, string valueDescription, string value)
Components\Layout\AspirePageContentLayout.razor.cs (3)
13public required ViewportInformation ViewportInformation { get; init; } 59if (ViewportInformation.IsDesktop && IsToolbarPanelOpen) 68if (!ViewportInformation.IsUltraLowHeight)
Components\Resize\BrowserDimensionWatcher.cs (8)
12public ViewportInformation? ViewportInformation { get; set; } 15public EventCallback<ViewportInformation?> ViewportInformationChanged { get; set; } 30ViewportInformation = ViewportInformation.GetViewportInformation(viewportSize); 46var newViewportInformation = ViewportInformation.GetViewportInformation(viewportSize); 48if (newViewportInformation.IsDesktop != ViewportInformation!.IsDesktop 49|| newViewportInformation.IsUltraLowHeight != ViewportInformation.IsUltraLowHeight 50|| newViewportInformation.IsUltraLowWidth != ViewportInformation.IsUltraLowWidth)
Components\Resize\DimensionManager.cs (5)
8private ViewportInformation? _viewportInformation; 14public ViewportInformation ViewportInformation => _viewportInformation ?? throw new ArgumentNullException(nameof(_viewportInformation)); 23internal void InvokeOnViewportInformationChanged(ViewportInformation newViewportInformation) 33public class ViewportInformationChangedEventArgs(ViewportInformation viewportInformation) : EventArgs 35public ViewportInformation ViewportInformation { get; } = viewportInformation;
Components\Resize\GridColumnManager.razor.cs (4)
14private ViewportInformation? _gridViewportInformation; 25public ViewportInformation ViewportInformation => _gridViewportInformation ?? DimensionManager.ViewportInformation; 49var newViewportInformation = ViewportInformation.GetViewportInformation(calculatedViewportSize);
Components\Resize\ViewportInformation.cs (1)
25public static ViewportInformation GetViewportInformation(ViewportSize viewportSize)
Aspire.Dashboard.Components.Tests (8)
GridColumnManagerTests.cs (2)
82dimensionManager.InvokeOnViewportSizeChanged(new ViewportSize(ViewportInformation.MobileCutoffPixelWidth + 1, 1000)); 108dimensionManager.InvokeOnViewportSizeChanged(new ViewportSize((ViewportInformation.MobileCutoffPixelWidth + 1) * 2, 1000));
Pages\ConsoleLogsTests.cs (2)
51var viewport = new ViewportInformation(IsDesktop: true, IsUltraLowHeight: false, IsUltraLowWidth: false); 111var viewport = new ViewportInformation(IsDesktop: true, IsUltraLowHeight: false, IsUltraLowWidth: false);
Pages\StructuredLogsTests.cs (3)
38var viewport = new ViewportInformation(IsDesktop: true, IsUltraLowHeight: false, IsUltraLowWidth: false); 78var viewport = new ViewportInformation(IsDesktop: true, IsUltraLowHeight: false, IsUltraLowWidth: false); 116var viewport = new ViewportInformation(IsDesktop: true, IsUltraLowHeight: false, IsUltraLowWidth: false);
Pages\TraceDetailsTests.cs (1)
37var viewport = new ViewportInformation(IsDesktop: true, IsUltraLowHeight: false, IsUltraLowWidth: false);