Hack Forums
[.NET] Open source Navigation control for everybody (C# and VB.NET) - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [.NET] Open source Navigation control for everybody (C# and VB.NET) (/showthread.php?tid=5458100)

Pages: Pages 1 2 3


Open source Navigation control for everybody (C# and VB.NET) - Zilog80 - Nov 8, 2016

Now with available NuGet Package. See Update #3 side note

Hi folks!

We come from here: https://hackforums.net/showthread.php?tid=5453245

Finally i finished my navigation control, and as i said here there is the source code. So copy, clone, leech and do with the code what you want. 🤣

Control in action:
Spoiler (Click to View)

GitHub link: Zilog80's Navigation Bar

Side-Note: The source is not optimized as i expected.

I you have any questions, feel free to ask here.

Hope will be useful to someone ✌



UPDATE #1 (12/10/2016):
Added "real world" settings demo. It includes Z80_TextBox custom control.
Spoiler (Click to View)

UPDATE #2 (12/10/2016):
Added C# version. Enjoy 🤣

UPDATE #3 (05/20/2017):
New features since last release and NuGet Package for the WIN!

Step 1) How to install via NuGet:

L33t way:

Create a new C# or VB.NET solution
Open Package Manager Console inside Visual Studio

type after the PM>

Code
Install-Package Z80NavigationBar

and you are done

GUI way:

Create a new C# or VB.NET solution
Go to Tools > NuGet Package Manager > Manage NuGet Packages for Solution...
Search for Z80NavigationBar and then press Install button. Accpet confirmation window and you are done

Step 2) Build solution

If the control not shows on your toolbox controls, follow readme.txt instructions.

[Image: Zysry6P.png]

Step 3) Final code.
Drag the control from the toolbox to your form and write this:

VB.NET

PHP Code

<?php 
Imports Z80NavBarControl
.Z80NavBar
Imports Z80NavBarControl
.Z80NavBar.Themes
 
Public Class Form1
    
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
        Dim demoItems 
As List(Of NavBarItem) = New List(Of NavBarItem) From {
          New 
NavBarItem With {.ID = 1, .Text = "Item1"},
          New 
NavBarItem With {.ID = 2, .Text = "Item2"},
          New 
NavBarItem With {.ID = 3, .Text = "Item3"}
            }
 
        
Z80_Navigation1.Initialize(demoItems, New ThemeSelector(Theme.Dark).CurrentTheme)
    
End Sub
End 
Class 

C#

PHP Code

<?php 
using System
.Collections.Generic;
using System.Windows.Forms;
using Z80NavBarControl.Z80NavBar;
using Z80NavBarControl.Z80NavBar.Themes;
 
namespace 
WindowsFormsApplication1
{
    public 
partial class Form1 : Form
    
{
        public 
Form1()
        {
            
InitializeComponent();
            List<
NavBarItem> demoItems = new List<NavBarItem>
            {
                new 
NavBarItem {ID = 1, Text = "Item1"},
                new 
NavBarItem {ID = 2, Text = "Item2"},
                new 
NavBarItem {ID = 3, Text = "Item3"}
            };
            
z80_Navigation1.Initialize(demoItems, new ThemeSelector(Theme.Dark).CurrentTheme);
        }
    }
} 

Remember you can find more samples on GitHub repo.

Profit 🤣


* - Specs - Nov 8, 2016

I didn't check the source yet, but just from the .gif's i can tell it looks really clean & something i'd use. Thanks for sharing!


* - CodeAssassin - Nov 8, 2016

This actually looks great, thank you for your time spent and for sharing it with us all. Much appreciated man


* - SIM-1847363 - Nov 8, 2016

You say everybody but.... I'm half white bread, and a little toasted can I still have this? Question #2: If my parents came here illegally can I still rub butter over my naked body?
Great jerb man appreciate your work.


* - idb. - Nov 8, 2016

Very nice job bud! Glad to see you implemented the feature I mentioned as well. Good release. :)


* - My Computer - Nov 8, 2016

Very cool! Good job on making this control OP. 👍


* - Ninja - Nov 8, 2016

Looks amazing. Only one tiny thing that bothers me is the typo in this constant:
https://github.com/kernelENREK/Z80_NavigationBar/blob/master/Demo/Z80_NavBar/Themes/Definitions/BlueTheme.vb#L33


* - DopplerAF - Nov 9, 2016

Nice job, thanks for making it.

Keep it up.


* - Rhez - Nov 9, 2016

I got an unfinished control just like yours. Maybe I'm just going to delete it and just contribute in this one.
Great job, mate! 🤝


* - Rsau7 - Nov 9, 2016

thank you for your time spent and for sharing it with us all


* - JustNothing - Nov 10, 2016

Looks amazing & clean! Keep it up buddy 🤝

BR.


* - NETExplorer - Nov 10, 2016

I like the features, make some more controls


* - ccg. - Nov 20, 2016

Good Job, never seen an complex nav-control like this. Thanks for sharing!


* - Icoderz - Nov 21, 2016

Very cool! Good job on making this control OP


* - archy-1 - Dec 5, 2016

great job...nice and clean ...thanks