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