kikipoulet / SukiUI

UI Theme for AvaloniaUI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[QUESTION]Change selected tab programmatically

uxmanz opened this issue · comments

How to change the selected tab programmatically. I want to change the view when a button is pressed.

kind regards.

Not rly sure what u mean by selected tab there are several posibilites. I assume the sidemenu item.

actually the demo contains a basic navigation service which works so just modyfi the present code to invoke whatever viewModel of your menu item you need

image

somehow it doesnt work when bound to button in textBlock dunno why...

Not rly sure what u mean by selected tab there are several posibilites. I assume the sidemenu item.

actually the demo contains a basic navigation service which works so just modyfi the present code to invoke whatever viewModel of your menu item you need

image

somehow it doesnt work when bound to button in textBlock dunno why...

This is exactly what I want but with a button. I will see if I can get it to work.