public void InitNavPain() { #region navButtonHome var navButtonHome = new NavButton(); navButtonHome.Alignment = NavButtonAlignment.Left; navButtonHome.Glyph = Icons.Home_Black_32; navButtonHome.ElementClick += NavButtonHome_ElementClick; #endregion //#region navButtonMenu //var navButtonMenu = new NavButton(); //navButtonMenu.Caption = "Application"; //navButtonMenu.IsMain = true; //#endregion #region navButtonUser var navButtonUser = new TileNavCategoryEx(); navButtonUser.Allignment = HorzAlignment.Far; navButtonUser.Alignment = NavButtonAlignment.Right; navButtonUser.Caption = "User"; navButtonUser.Glyph = Icons.User_Black_32; var tileNavItem31 = new TileNavItem(); var tileNavItem32 = new TileNavItem(); var tileNavItem33 = new TileNavItem(); navButtonUser.Items.AddRange(new[] { tileNavItem31, tileNavItem32, tileNavItem33 }); #endregion #region navButtonMin var navButtonMin = new NavButton(); navButtonMin.Alignment = NavButtonAlignment.Right; navButtonMin.Glyph = Icons.Minus_Black_32; navButtonMin.ElementClick += NavButtonMin_ElementClick; #endregion #region navButtonClose var navButtonClose = new NavButton(); navButtonClose.Alignment = NavButtonAlignment.Right; navButtonClose.Glyph = Icons.Close_Black_32; navButtonClose.ElementClick += NavButtonClose_ElementClick; #endregion #region config AllowGlyphSkinning = true; ContinuousNavigation = true; Dock = DockStyle.Fill; ButtonPadding = new Padding(12); KZHelper.KZAppearanceSetter.SetAppearance(Appearance, null, KZHelper.KZColours.MainColour.ActiveColour, KZHelper.KZColours.MainForeColour.ActiveColour); KZHelper.KZAppearanceSetter.SetAppearance(AppearanceHovered, null, KZHelper.KZColours.MainColour.HoverColour, KZHelper.KZColours.MainForeColour.HoverColour); KZHelper.KZAppearanceSetter.SetAppearance(AppearanceSelected, null, KZHelper.KZColours.MainColour.SelectColour, KZHelper.KZColours.MainForeColour.SelectColour); #endregion Buttons.Add(navButtonHome); //Buttons.Add(navButtonMenu); Buttons.Add(navButtonUser); Buttons.Add(navButtonMin); Buttons.Add(navButtonClose); }