FINALLY... implement option to toggle status bar visibility

This commit is contained in:
Michael Becker 2019-12-13 22:37:50 -05:00
parent 6b836cde1f
commit 1e6c6f56ae
No known key found for this signature in database
GPG Key ID: 389DFF5D73781A12
2 changed files with 6 additions and 0 deletions

View File

@ -482,6 +482,10 @@ namespace UniversalEditor.UserInterface
{
HostApplication.CurrentWindow.ShowStartPage();
});
Application.AttachCommandEventHandler("ViewStatusBar", delegate (object sender, EventArgs e)
{
HostApplication.CurrentWindow.StatusBar.Visible = !HostApplication.CurrentWindow.StatusBar.Visible;
});
#endregion
#region Tools

View File

@ -74,6 +74,8 @@ namespace UniversalEditor.UserInterface
/// <param name="visible">True if the window list should be shown; false if the window list should be hidden.</param>
/// <param name="modal">True if the window list should be presented as a modal dialog; false if it should be presented as a popup (for example, during a window switch action).</param>
void SetWindowListVisible(bool visible, bool modal);
StatusBar StatusBar { get; }
}
public class IHostApplicationWindowCollection
: System.Collections.ObjectModel.Collection<IHostApplicationWindow>