Abandoned - Fixes #3691. Adds Popover#3749
Closed
tig wants to merge 66 commits into
Closed
Conversation
Refactored FindDeepestView
Member
Author
|
FWIW, here's the API in action (the prototype for the var fileMenuBarItem = new Shortcut
{
Title = "_File",
HelpText = "File Menu",
Key = Key.D0.WithAlt,
};
fileMenuBarItem.Accept += (sender, args) =>
{
var fileMenu = new Menuv2
{
Id = "fileMenu",
};
ConfigureMenu (fileMenu);
fileMenu.VisibleChanged += (sender, args) =>
{
if (Application.Popover == _popoverMenu && Application.Popover is { Visible: false })
{
Application.Popover?.Dispose ();
Application.Popover = null;
}
};
Application.Popover = fileMenu;
Rectangle screen = fileMenuBarItem.FrameToScreen ();
fileMenu.X = screen.X;
fileMenu.Y = screen.Y + screen.Height;
fileMenu.Visible = true;
};Here's the entirety of the new API (on /// <summary>Gets or sets the Application Popover View.</summary>
/// <remarks>
/// <para>
/// To show or hide the Popover, set it's <see cref="View.Visible"/> property.
/// </para>
/// </remarks>
public static View? Popover |
Member
Author
Member
Author
Fixed a bunch more CM issues related ot unreliable unit tests. Updated config.json to include Glyphs.
Member
Author
Closed
9 tasks
Member
Author
7 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.









Fixes
Popover- A consistent way of enabling a Subview to popup outside of a View #3691Proposed Changes/Todos
View Experimentsthe concept described inPopover- A consistent way of enabling a Subview to popup outside of a View #3691 to prove concept.Barsto show howContextMenuandMenuBarcould utilizeContextMenuusingMenuV2- Initially no cascading menus for simplicityAutocompletePopupComboboxFuture PRs
MenuandMenuBarusingBar(aka finishMenuv2Pull Request checklist:
CTRL-K-Dto automatically reformat your files before committing.dotnet testbefore commit///style comments)