Switching Between Multiple Views in MVVM - EASY WPF (.NET CORE)

preview_player
Показать описание
Learn how to switch between views/user controls when using MVVM architecture.

Рекомендации по теме
Комментарии
Автор

I strongly recommend checking out my series on navigation. Not only is the video quality much better, but the approach I use in that series is better-suited for larger applications, and I also cover other navigation scenarios.

SingletonSean
Автор

This is a master piece code, explained in the most simplest form ....Thanks a lot from Zimbabwe

tatenda
Автор

Dear colleague,
I developed to now web applications. But I didn't have any idea and it was different to understand before your tutorials. Now I am writing your codes line to line and trying to understand every points.
Thank you so much about these resources.

omerbilalcan
Автор

This is a great resource on MVVM. At first I was using frames to attempt switching views but this is much simpler as well as trying to use pages instead of only UserControls, cheers for the tutorial. Saved me at least a week or so figuring this out!

PsychoEverything
Автор

well, this is the best video explaining navigation using MVVM so far, easy and simple, thank you verry much sir, you should keep doing this, nice work

abdelhalimfellague_chebra
Автор

Thank you, highly helpful video (once I got that views here are usercontrols, not pages). Very understandable, very pleasant manner of explaining.

mbjuggernaut
Автор

Notice that you need to Add UserControl(WPF) for the Home and Account Views. I was struggling with that since I created Page(WPF)
But great Tutorial very helpful, thanks.

Saleca
Автор

this is now all tutorials should be done, great work dude

StepanUa
Автор

You are amazing.. This is the best informative series of videos on YouTube.

oualidberrim
Автор

Thank you so much. Your video makes it very clear how MVVM works. Thanks again. Hi from Belarus.
10 / 10.

lucckyboy
Автор

Excellent tutorial - i have watched videos of tim corey - you can expect 20 minutes of this video more valuable than 20 hours of tim's.

mehdizeynalov
Автор

Excellent video. Thank you for sharing this very important concept.

shvideo
Автор

Thank you, that helped a lot. I did it a bit different with a switch case and even more strict separations/ abstractions and it worked :)

theblackbaron
Автор

I like it but it does not work when I try to change the SelectedViewModel within another view =(

SoferPeOZN
Автор

But if the DataContext is set to the MainViewModel, how do I let my views access my other view models? Because otherwise, it seems I have to cramp everything into one MainViewModel.

noahyannis
Автор

Hello, how would you go about implementing this and then giving the ability to change the view depending on clicking/mousedown an element inside the ContentControl?

DatMight
Автор

7:14 So you always create new objects on command execution, I gues it is better to check if model is null then create one and store or smth like this, or I'm wrong?

_SkyDancer
Автор

Hello! Thank you for what you doing! I have a question. As programmer i always hate to repeat similiar code. For me "DataTemplate" block is excess. Is any opportunity to bind view and viewModel automatically? Like if i have HomeViewModel - so i need just HomeView. Thats it. Any suggestions?

sometexthere
Автор

Great tutorial!!
Just have a question about stackpanel, I've put the buttons at the top of the window and I want the loaded page data to be displayed right below the buttons, how can I accomplish this?

recepcakir
Автор

Really nice tutorial and i was able to build the demo but now i have a strange issue. If i have a button in the MainWindow it works correctly.
But if the button is on the Usercontrol that i loaded the ContentControl does not get updated even though the Updateviewcommand is fired and viewmodel.SelectedViewModel is set
Any idea why that is?

idnafu