Replies: 1 comment 4 replies
-
Hey @eclere, since I don't have the whole sample, I wasn't able to reproduce the issue with a similar setup. Can you by any chance please provide full repro project? If not, you can have a look at my sample where I tried to reproduce this: UnoNavigationSample.zip. Make sure to also check if you have the correct views registered in RegisterRoutes and you have the |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I cannot navigate from the code behind. I have tried different methods from the documentation. Nothing happens. I do not receive an exception.
My routes:
routes.Register( new RouteMap("", View: views.FindByViewModel<ShellModel>(), Nested: [ new ("Login", View: views.FindByViewModel<LoginModel>()), new ("Dashboard", View: views.FindByViewModel<DashboardModel>()), new ("ObjektTasks", View: views.FindByViewModel<ObjektTasksPageModel>())//, //new ("Second", View: views.FindByViewModel<SecondModel>()), ] ) );
Try with click handler:
`public sealed partial class ObjektTasksPage : Page
{
public ObjektTasksPage()
{
this.InitializeComponent();
}
Try with ViewModel:
`public partial record ObjektTasksPageModel
{
BoardService _board;
readonly INavigator _nav;
int _taskId = -1;
XAML Button
<Button Content="Done" Style="{StaticResource FilledButtonStyle}" Command="{Binding DoneTask}" />
Can anybody help?
Beta Was this translation helpful? Give feedback.
All reactions