Exemplo n.º 1
0
        private static void Main()
        {
            Application.SetHighDpiMode(HighDpiMode.SystemAware);
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            Form f = new Form();

            f.AddSidebarButton(
                new Sidebar.ButtonOptions
            {
                IconChar = IconChar.Amazon, Text = "Test1", IconSize = 32, HighlightColor = Color.DarkMagenta
            });
            f.AddSidebarButton(
                new Sidebar.ButtonOptions
            {
                IconChar = IconChar.Safari, Text = "Test2", IconSize = 32, HighlightColor = Color.DeepPink
            });
            f.AddSidebarButton(
                new Sidebar.ButtonOptions
            {
                IconChar = IconChar.Bitcoin, Text = "Test3", IconSize = 32, HighlightColor = Color.Yellow
            });

            f.AddSidebarMenu(
                new Sidebar.MenuOptions
            {
                IconChar = IconChar.Bitcoin, Text = "submenu", IconSize = 32, HighlightColor = Color.Blue
            },
                new Sidebar.ButtonOptions
            {
                IconChar = IconChar.Amazon, Text = "Test1", IconSize = 24, HighlightColor = Color.Blue
            },
                new Sidebar.ButtonOptions
            {
                IconChar = IconChar.Amazon, Text = "Test2", IconSize = 24, HighlightColor = Color.Blue
            },
                new Sidebar.ButtonOptions
            {
                IconChar = IconChar.Amazon, Text = "Test3", IconSize = 24, HighlightColor = Color.Blue
            });
            f.AddSidebarMenu(
                new Sidebar.MenuOptions {
                IconChar = IconChar.Bitcoin, Text = "submenu", IconSize = 32
            },
                new Sidebar.ButtonOptions {
                IconChar = IconChar.Amazon, Text = "Test1", IconSize = 24
            },
                new Sidebar.ButtonOptions {
                IconChar = IconChar.Amazon, Text = "Test2", IconSize = 24
            },
                new Sidebar.ButtonOptions {
                IconChar = IconChar.Amazon, Text = "Test3", IconSize = 24
            });

            Application.Run(f);
        }