❔ Class with parameter as a generic parameter
Hi!
I'm trying to write a navigation system in wpf
My setup rn using default constructor is
however i want to change it so each ViewModelBase has a public custom constructor like
TViewModel.NavigateTo()
that returns its instance to be able to define some common logic between navigables
I've tried to do
but it breaks7 Replies
How does it break? Are you attempting to call .NavigatedTo() within your NavigationService?
Is there reason you can't do this?
In the typing itself
Do you want this?
gimme a sec to follow this train of thought in ym code
oh, seems right
Yes! It works thank you! ❤️
Yay
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.