GitHub - jpreece6/NavigationLib: A simple navigation sub system for WinForms projects. · GitHub
Skip to content

About

A simple navigation sub system for WinForms projects.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Latest commit

 

History

9 Commits

Folders and files

Repository files navigation

NavigationLib

A simple navigation sub system for WinForms projects.

Super simple to register views.

NavigationSystem.Register("HomePage", new HomeView());
NavigationSystem.Register("SettingsPage", new SettingsView());

Set a home view which may be visited frequently

NavigationSystem.SetHome("HomePage");
NavigationSystem.GoHome();

Navigate using keys.

NavigationSystem.NavigateTo("SettingsPage");
NavigationSystem.GoBack();

Message System

The navigation library also provides a basic messaging system to communicate data between views.

MessageSystem.SendMessage("SettingsPage", "EnableField", true);

You can also broadcast a message to all views.

MessageSystem.Broadcast("PopulateBuffers", { "Any Data", "Any Type" });

About

A simple navigation sub system for WinForms projects.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages