Комментарии:
nice video, it helps me alot!
ОтветитьIs it possible that at minute 16 were you create the RelayCommand it doesn't work at older .net versions? Because I have 4.8 and when I write down in my opinion the same command then visual studios doesnt like it and it occures an error.
ОтветитьWhich theme do you use in Rider?
Ответить@Payload what is the name of IDE you used?
ОтветитьGreat video. I had to use a magnifying glass to view the code. Font is too small.
ОтветитьFor some reason "ContentControl" in MainWindow is displaying the name of the viewmodel class file name rather than display the view that it's associated to?
Ответитьhey! i know its been like 7 months since you posted this but is there any way you could tell me how id set a default CurrentView? i want the homeview i have to be a navigation hub and i cannot for the life of me figure it out. thanks!
edit: also, how do i pass in a variable to a view im switching to?
Oh man, a service locator, can we do it without the service locator?
ОтветитьExcellent content as always. Note on the observableobject and relaycommand core files. communityToolkit.mvvm might now be an alternative here maybe?
ОтветитьThank you for this video, very helpfull, i was wondering how to pass parameters with navigation, i changed the factory from Func<Type,ViewModel> to Func<Type, object,ViewModel> so i can pass parameter as an object, but i don't know if this is the right way, even if it works
ОтветитьThank you very much for this great video. I studied a lot by myself, finally I can do it.
BTW, may I ask that, is it possible to do a multi-navigation.
For example, 2 views in 1 window, and there are 2 subviews in one view of window.
It can be contentcontorol or tabcontrol.
Thanks.
Hello Payload! I have a question. Maybe it`s kinda stupid question. So, should i use MVVM when i have a lot of different windows with different functionality (I am making diary, and there I have MENU window and other window where I working with all that writing stuff)?
So, I have 3 groups
(1.Main menu window and window with all writing and editing stuff,
2. account settings and customizing window to change look of main menu window (i have button on main menu window to navigate to them)
3. Login and registration).
I guess they would look good with MVVM, but i am not sure if they can be putted together like that. Should i put all those windows that i work with, right into folder MVVM, and working there with those groups? Thank you in advance
How to set child view model properties from parent? When i do that, the child User Control displayed on the main window parent does not change its properties, i have set the data context
ОтветитьReally nice video, i have learned a lot from you and this video! One thing though im a bit confused of is how do to set the other ViewModels DataContext? Its just i have tried something, that doesnt work the way i expected... You can try it youself by deleting the MainViewModels ButtonBindings, and then try to press the buttons on either HomeView or SettingsView. When i try it, it doesnt work?
Ответитьare UserControls created every time we click a button to go to them, or they have only one instance?
ОтветитьThank you for this tutorial, I must say it is the simplest I ever watch. For the next can you make a tutorial about passing data using this navigation. Thank you!
ОтветитьI ran into the problem that this approach does not work in the case of nested windows. Can it work, or should I look for another approach?
ОтветитьWhat if you open windows? Do i register the view models as transient? It is complicated when you have to use child forms
ОтветитьBeautiful, you cant imagine how long I have been looking for this, it is exactly what I needed. Thanks!
ОтветитьWell I got through this toward the end but new RelayCommand(execute: o:object => gives errors.
Ответитьis it working under .NET 6?
ОтветитьIt's so complicated :/ I don't understand why this is such a different approach from what you used to switch views before. In your previous video ('Modern UI app') you made it much simpler, just reassigning CurrentView with Command on click, and switching between views worked the same.
Couldn't it be done as easily as in that video? I appreciate that you show how something is done, but if this is supposed to be a tutorial, it would be better if you did a longer introduction before doing it, what and why exactly you want to do.
Hello, can someone tell me how to make authorization with this code? Those. so that I can log into my account and I can get the UserControl output working.
ОтветитьI have similar code but I dont need creating new instance of viewmodel every time I change views. I have a lot of data that viewmodels are storing and this method of changing views would terribly slow down the program
ОтветитьDoes this code create new instance of someViewModel every time you change views? how to create and use only 1 instance for every viewmodel?
ОтветитьVery useful what you did here!
ОтветитьHello, nice tutorial. just wondering if there is a simple way to pass parameters to other viewmodels when navigating to one?
ОтветитьAwesome, would love to see a version using community toolkit and what that would change.
ОтветитьAbsolutely amazing. Right what I was looking for. After searching for this on You tube and Linked, landed on this video after many months. Thanks for your help.
ОтветитьThis was amazing. Thank you so much. 👍
ОтветитьThank you. Wouldn't it be a bit more modulable if instead of derivating the Core, having a IServiceNavigation interface ? Then simply init the class with the navigation, then its command... Nit picking I guess, but it woudl feel more reusable.
ОтветитьWhat does (???). in the various Path's mean?
Ответитьcan u do a updated version of the chat hub with a login and setup the database but make it where it saves the last chats and how to add calling and video chat and make it a add function plz
ОтветитьGreat tutorial. Totally cool, simple but effective. where can we get the source code, save me some key strokes. Thanks,
ОтветитьThank you for this great tutorial! As a newbie this was really informative.
ОтветитьFantastic tutorial!! 😊
ОтветитьAmazing as always ❤️
ОтветитьI was so happy to finally see a video again. greate job
Ответитьnice
ОтветитьGreat tutorial. But the volume is a little on the low side.
ОтветитьWhat keyboard do you use?
Ответитьty bro
Ответитьwhys bro awake at this time
Ответить