Mastering Sharing Data Between ViewModels in WPF Tutorial using MVVM

preview_player
Показать описание
In this tutorial, we will learn how to share data between viewmodels and multiple views in WPF using MVVM. We dive deep into the world of Windows Presentation Foundation (WPF) and explore a vital concept - sharing data between ViewModels. We'll unravel the potential of services and dependency injection, and how they facilitate this communication in an elegant and efficient manner.
In this practical guide, you'll learn key fundamentals ranging from setting up your WPF project, basic and advanced MVVM tips to build dynamic UI with robust ViewModel communication. As you progress, you'll understand how to leverage WPF services and discover the benefits of dependency injection.
This tutorial is tailored for developers who have a basic understanding of WPF and C#, and are looking to advance their skillset. The techniques learned here will contribute significantly to your WPF development toolbox, opening a realm of possibilities for your applications.
Remember, the journey of mastering any skill is, taking it one step at a time. So let's take this step together!

Tags: #WPF #WPFTutorial #C# #WPFUI #MVVM #DependecyInjection #Dotnet #ViewModels #WindowApplicationDevelopment #SoftwareDevelopment #CodingTutorial #LearnC# #WPFNavigation #WPFUserControl #WPFWindows
Рекомендации по теме
Комментарии
Автор

You should do a video tutorial on AvaloniaUI, as it is a cross platform inspiration of WPF

windowsbuilderthegreat
Автор

your tutorials are very practical
i wish you post more often but maybe you don't have time

Andrei-qitm
Автор

I would like to see how would you handle communication between viewmodels in avalonia? That would be great tutorial. Many ppl looking for it :D Thx

MultiLeechCZ
Автор

This is probably a dumb question, but what does the (???) do in the Command ("Binding Path = (???).AddItemCommand") and ItemsSource ("{Binding Path = (???).ItemsService.Items}" ?

I can't get it to run because of this. It seems like a placeholder for a DataContext, but I don't see where this DataContext is defined.

peterbishop
Автор

Are you actually using the ViewModelLocator? Can’t figure out where if yes…

tum
Автор

Hello, how would you do if item is an ItemModel containing 2 properties, for example LastName and FirstName, and there is an ItemViewModel taking an itemModel as parameter and having a FullName property which comes from ItemModel.LastName and ItemModel.FirstName and an IsChecked property which is not in the model and is only used to check the items so that they can be deleted. Can ServicesItems return ItemViewMod3l viewmodels directly, is this a good way of doing things?

axelminet
Автор

Nice vid, can you do a video about "how we can detect changes in a collection's items and notify the ui".

anesdiaf
Автор

Inspiraton from avalonia? You can easily do this same thing in wpf with datatemplates. The VM locator feels like a locator pattern in dependency injection 😬😬

mountainenthusiast-vd
Автор

straightforward, it isn't. all that just to share data in the same App

kdowd
Автор

lol… I can’t get this code to work at alll

banepigeon
Автор

why complicate everything, geee we dont need all that crap just to share data

curtisnewton