Version 3 NavBar not responding to Click.

Answered Closed
0
0

The link below points to a sample project i have done with version 3 that is not responding to the collapse button click.

Pls check it and help me figure out what i am doing wrong.

https://drive.google.com/file/d/1AufUAri6mWblQUvLHOPkBPc5fKY7oyA1/view?usp=sharing

  • You must to post comments
Best Answer
1
0

That’s not a collapse button. It’s the app logo in the title. The click works without issues.

Private Sub NavigationBar1_TitleClick(sender As Object, e As EventArgs) Handles NavigationBar1.TitleClick
Me.NavigationBar1.CompactView = Not Me.NavigationBar1.CompactView
End Sub

 

  • You must to post comments
0
0

This Window1 without any click handler.

Imports System
Imports Wisej.Web

Public Class Window1

End Class

 

 

  • You must to post comments
0
0

This is Window1


‘NavigationBar1

Me.NavigationBar1.Dock = Wisej.Web.DockStyle.Left
Me.NavigationBar1.Logo = “menu-overflow”
Me.NavigationBar1.Name = “NavigationBar1”
Me.NavigationBar1.Size = New System.Drawing.Size(282, 695)
Me.NavigationBar1.TabIndex = 0
Me.NavigationBar1.Text = “NavigationBar1”

 

There is nothing to click and no items.

  • Alaa (ITG)
    There’s no collapse button, you’ll have to create your own and toggle the CompactView property. What you’re seeing is the Logo property, not a collapse button
  • Nicholas
    Better still can you point me to a sample nav bar project that is able to work as expected?
  • Luca (ITG)
    I posted the code above several answers ago. It already works as expected. Click the title = fires the TitleClicked event, process the event. Private Sub NavigationBar1_TitleClick(sender As Object, e As EventArgs) Handles NavigationBar1.TitleClick Me.NavigationBar1.CompactView = Not Me.NavigationBar1.CompactView End Sub
  • Nicholas
    I understand now. This must be the first time I am seeing a navbar where I have to handle the collapse/restore event in code and that must the be reason for my expectation. Thanks Luca, I appreciate your time and explanations.
  • Luca (ITG)
    You don’t have to, you can use ResponsiveProperties and make it automatic depending on the client profile. The “collapse” button looks like a collapse button because of the icon you selected. Since it’s a logo instead and if another developer uses another icon it makes no sense to use a title click to collapse the navigation bar. Other navigation bars are probably very limited to handle multiple features the way we do.
0
0

The circled button at the top left corner is what i am referring to.

  • You must to post comments
0
0

The sample doesn’t have a navbar, it’s just an empty page and empty window.

  • Nicholas
    Please check Window1. That is what has the nav bar. and what i meant is that when i click the collapse button nothing happens. I was expecting the bar to collapse when the collapse button is clicked. Also, the license issue is still preventing me from continuing with development using version 3. And I cant seem to be able to attach a screen shot to this comment to show you what i meant.
  • You must to post comments
Showing 5 results