21 references to Anchor
Aspire.Dashboard (6)
Components\Controls\AspireMenu.razor.cs (6)
56/// Gets or sets a value indicating whether focus should return to <see cref="Anchor"/> after a menu item is clicked. 59/// Use this only for button-anchored menus where <see cref="Anchor"/> identifies the element that opened the menu. 60/// Do not enable it for cursor-positioned or context menus where <see cref="Anchor"/> is only used for positioning. 74.AddStyle("anchor-name", $"--anchor-{Anchor}") 183if (RestoreFocusOnItemClick && !string.IsNullOrEmpty(Anchor)) 185await JS.InvokeVoidAsync("focusElement", Anchor);
Aspire.Dashboard.Components.Tests (15)
Controls\AspireMenuTests.cs (13)
32builder.Add(p => p.Anchor, "menu-anchor"); 62builder.Add(p => p.Anchor, "menu-anchor"); 81builder.Add(p => p.Anchor, "menu-anchor"); 130builder.Add(p => p.Anchor, "menu-anchor"); 174builder.Add(p => p.Anchor, "menu-anchor"); 204builder.Add(p => p.Anchor, "menu-anchor"); 258builder.Add(p => p.Anchor, "menu-anchor"); 285builder.Add(p => p.Anchor, "menu-anchor"); 321menuBuilder.Add(p => p.Anchor, "menu-anchor"); 490builder.Add(p => p.Anchor, "menu-anchor"); 534builder.Add(p => p.Anchor, "menu-anchor"); 576builder.Add(p => p.Anchor, "menu-anchor"); 613builder.Add(p => p.Anchor, "menu-anchor");
Layout\ResourcesLayoutTests.cs (1)
605var menu = cut.FindComponents<AspireMenu>().Single(m => m.Instance.Anchor == "resource-pane-context-menu-anchor");
Pages\TerminalsTests.cs (1)
494Assert.Equal(options.Instance.MenuButtonId, menu.Anchor);