The question is about why the collapse button doesnt work when clicked. I have created several of them in other projects that have items that i use to launch forms but when i click the collapse button it does not seem to collapse the navbar. That is my issue here and i dont think i need to add items for the nav bar to collapse, or am i getting something wrong here.
It’s not a collapse button! It’s the logo of the title. The click works perfectly, you have to handle it or there is no code attached to it. I sent that in the previous message.
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
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
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.
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.