The View Model Lifecycle in .NET MAUI

  Рет қаралды 1,144

SingletonSean

SingletonSean

Күн бұрын

Пікірлер: 13
@flobuilds
@flobuilds 5 ай бұрын
I did something similar with virtual functions in a base viewmodel which can be overriden in each impl and also created a base content page which calls the functions directly. But the idea of using bindable commands sounds pretty interresting. Are these blocking calls or will they be async/fire and forget? So that the view doesn't hang on load
@SingletonSean
@SingletonSean 5 ай бұрын
Yep, these are non-blocking!
@flobuilds
@flobuilds 5 ай бұрын
@@SingletonSean thanks thats awesome need to implement that. Do you use custom "base" types like vm or pag or do you just implement that everywhere you need it?
@SingletonSean
@SingletonSean 5 ай бұрын
I use the MVVM Toolkit for all the base types (CommunityToolkit.MVVM). This includes base view models for INotifyPropertyChanged and classes for async commands. It's super helpful!
@flobuilds
@flobuilds 5 ай бұрын
@@SingletonSean i use that too thanks for the info. So you just implement the functions shown in the Video where you need them?
@Jeremygrmn
@Jeremygrmn 8 ай бұрын
New digs!! Hahaha need some soft surfaces in there for the echo. Congrats on the new place! Again, Maui is just overall pretty clean
@SingletonSean
@SingletonSean 8 ай бұрын
Yep! And indeed, the echo is pretty rough lol. Gonna throw some foam panels up everywhere!
@dasfahrer8187
@dasfahrer8187 5 ай бұрын
VM lifecycle has got to be of the more underappreciated and understudied systems in the .NET. It can cause so many headaches, bugs and general weirdness if someone hasn't properly and fully informed themselves of why it's there, how it works and when to take advantage of the steps.
@SingletonSean
@SingletonSean 5 ай бұрын
Definitely! Feel like it is even more tricky in .NET MAUI
@dasfahrer8187
@dasfahrer8187 5 ай бұрын
@@SingletonSean Sure seems like it, which doesn't help the 'interest factor' on it either. Thanks for taking the time to take the lumps for the rest of us 🤣
@his6214
@his6214 5 ай бұрын
Why can't View and ViewModel be set to Singleton at the same time? Will the page and information not be reloaded if I switch pages repeatedly?
@ItsSalesGabriel
@ItsSalesGabriel 5 ай бұрын
Nice tip, tkss
Connect Your .NET MAUI Application to a Database
18:16
SingletonSean
Рет қаралды 4,3 М.
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 54 МЛН
Сестра обхитрила!
00:17
Victoria Portfolio
Рет қаралды 958 М.
How to Implement API Versioning for Minimal APIs | ASP.NET Core 8
18:11
Milan Jovanović
Рет қаралды 19 М.
Why is everyone LYING?
7:56
NeetCodeIO
Рет қаралды 384 М.
Maui online and offline database: Creating the online database
5:10
MVVM vs. MVI - Understand the Difference Once and for All
18:40
Philipp Lackner
Рет қаралды 58 М.
10 Signs Your Software Project Is Heading For FAILURE
17:59
Continuous Delivery
Рет қаралды 19 М.
Why SingletonSean?
5:39
SingletonSean
Рет қаралды 1,4 М.
What is the MVVM pattern, What benefits does MVVM have?
22:38
James Montemagno
Рет қаралды 105 М.
The Most Wonderful Type of Tests
18:30
SingletonSean
Рет қаралды 1,4 М.
Unit Testing .NET MAUI Apps with xUnit
9:08
Gerald Versluis
Рет қаралды 15 М.
Linus Torvalds: Speaks on Hype and the Future of AI
9:02
SavvyNik
Рет қаралды 335 М.
НЕ ДАМ ЕЁ В ОБИДУ😡 #shorts
0:24
Паша Осадчий
Рет қаралды 1,6 МЛН
пранк🤣😂😂
0:51
Numdexx1
Рет қаралды 1,2 МЛН
BIP HOUSE  .бип хаус 🥰🏡  #shorts
0:13
bip_house
Рет қаралды 1,2 МЛН
Карина Кросс #shorts
0:16
Dolly and Friends Shorts Cartoons
Рет қаралды 361 М.
Абзал неге келді? 4.10.22
3:53
QosLike fan club
Рет қаралды 31 М.