Building on the previous blog posts, here I’d like to illustrate how you can pass complex data from one page’s view model to another’s.
Let’s assume we’ve tapped on the Buddies Icon on the tab bar and were taken to the BuddyList:

If we tap on one of our buddies, in this case, Rodrigo, we should be taken to the details page for that buddy. We could pass along the buddy’s id, or we can pass the buddy object itself.
To pass the entire Buddy object, we will create a dictionary that will contain an identifying text as the key, and the SelectedBuddy as the value,
var navigationParameter = new Dictionary<string, object>
{
{"SelectedBuddy", SelectedBuddy}
};
We can now pass that along to the details page using Shell navigation.
await Shell.Current.GoToAsync($"buddydetail", navigationParameter);
“buddydetail” is the name you gave the BuddyDetails page in the constructor in AppShell.xaml.cs
public AppShell()
{
InitializeComponent();
Routing.RegisterRoute("buddydetail", typeof(BuddyDetail));
This routing matches the key “buddydetail” to the BuddyDetail page. Returning to the Shell navigation above, we see navigationParameter is the second param for the GoToAsync call. That is, we pass along the dictionary that contains our object. (We can pass as many objects as we like, each as an entry in the dictionary).
Receiving the data
In the view model for the details page, BuddyDetailViewModel, we use the QueryProperty attribute to indicate the name of the property to assign the passed-in object to and the key in the dictionary associated with that object.
Looking a few paragraphs up we can see that the dictionary has an entry with the key “SelectedBuddy” which has a value of the SelectedBuddy object. Here we are going to retrieve that into a local property, also named SelectedBuddy
[ObservableObject]
[QueryProperty(nameof(SelectedBuddy), "SelectedBuddy")]
public partial class BuddyDetailViewModel
Let me review that briefly as it can get confusing. There is the name of the local property: SelectedBuddy. There is the first parameter in the QueryProperty attribute: nameof(SelectedBuddy). These are 1:1 — the nameof is pointing to a property in this (receiving) class. Finally, there is the second param in the attribute, the string “SelectedBuddy” which is the key into the dictionary whose value will be assigned to the SelectedBuddy property. Right? Piece of pie.
We want to bind to a number of the properties of the buddy we just passed in. First, we’ll create those properties:
[ObservableProperty] private string name;
[ObservableProperty] private string emailAddress;
[ObservableProperty] private string code;
[ObservableProperty] private string? phoneNumber;
[ObservableProperty] private InvitationStatus status;
[ObservableProperty] private DateTime buddySince;
[ObservableProperty] private string buddySinceString;
[ObservableProperty] private string mailingAddressLine1;
[ObservableProperty] private string mailingAddressLine2;
[ObservableProperty] private int id;
Now all we need to do is set those properties using the object that was passed in and assigned to our SelectedBuddy property
private Buddy selectedBuddy;
public Buddy SelectedBuddy
{
get => selectedBuddy;
set
{
SetProperty(ref selectedBuddy, value);
Name = value.Name;
EmailAddress = value.EmailAddress;
PhoneNumber = value.PhoneNumber;
Status = value.Status;
BuddySince = value.BuddySince;
BuddySinceString = BuddySince.ToString("D");
MailingAddressLine1 = value.MailingAddressLine1;
MailingAddressLine2 = value.MailingAddressLine2;
Id = value.Id;
}
}
We can now display the details of the selected buddy using data binding. in the XAML.

Notice that there are two buttons: one to see the occasions you’ve asked to be reminded about, with regard to this buddy (e.g., the buddy’s birthday). The second button will display the buddy’s preferences. Each of these is made easier by using a service, in this case BuddyService. But how do we access the methods in BuddyService? This will be the topic of the next blog entry: Dependency Injection in MAUI.






































amoxicillin online pharmacy: antibiotic treatment online no Rx – antibiotic treatment online no Rx
gabapentin sale: cheap gabapentin – NeuroRelief Rx
ReliefMeds USA: Relief Meds USA – order corticosteroids without prescription
how to buy clomid for sale clomid tablets Clomid Hub
http://reliefmedsusa.com/# anti-inflammatory steroids online
Clomid Hub: how can i get clomid tablets – where to buy generic clomid now
affordable Modafinil for cognitive enhancement: Modafinil for focus and productivity – where to buy Modafinil legally in the US
anti-inflammatory steroids online: order corticosteroids without prescription – anti-inflammatory steroids online
order amoxicillin without prescription ClearMeds Direct antibiotic treatment online no Rx
buy Modafinil online USA: safe Provigil online delivery service – where to buy Modafinil legally in the US
Clomid Hub Pharmacy: Clomid Hub – Clomid Hub Pharmacy
NeuroRelief Rx buy gabapentin gabapentin alcohol detoxification
https://wakemedsrx.shop/# WakeMedsRX
Modafinil for ADHD and narcolepsy: Modafinil for ADHD and narcolepsy – prescription-free Modafinil alternatives
order corticosteroids without prescription: Relief Meds USA – anti-inflammatory steroids online
prednisone over the counter australia: prednisone 20mg online – order corticosteroids without prescription
anti-inflammatory steroids online anti-inflammatory steroids online Relief Meds USA
safe Provigil online delivery service: nootropic Modafinil shipped to USA – WakeMeds RX
gabapentin al 300 mg: NeuroRelief Rx – NeuroRelief Rx
anti-inflammatory steroids online order corticosteroids without prescription ReliefMeds USA
Бренд Longchamp — это образец шика, где соединяются классические традиции и современные тенденции .
Изготовленные из высококачественной кожи , они отличаются функциональностью .
Иконические изделия остаются востребованными у ценителей стиля уже много лет .
https://sites.google.com/view/sumki-longchamp/all
Каждая сумка с авторским дизайном подчеркивает хороший вкус, оставаясь практичность в повседневных задачах.
Бренд следует традициям , внедряя инновационные технологии при сохранении шарма .
Выбирая Longchamp, вы получаете модную инвестицию, а вступаете в историю бренда .
where to get gabapentin: NeuroRelief Rx – gabapentin substance p
smart drugs online US pharmacy: wakefulness medication online no Rx – WakeMeds RX
http://clearmedsdirect.com/# amoxicillin 500mg cost
NeuroRelief Rx gabapentin to treat chronic pain gabapentin gravid
ReliefMeds USA: prednisone uk – ReliefMeds USA
order corticosteroids without prescription: anti-inflammatory steroids online – Relief Meds USA
how to get clomid price: can you get generic clomid for sale – Clomid Hub Pharmacy
I once saw medications as lifelines, swallowing them eagerly whenever discomfort arose. But life taught me otherwise, revealing how these aids often numbed the symptoms, prompting me to delve deeper into the essence of healing. This awakening felt raw, illuminating that respectful use of these tools empowers our innate vitality, rather than suppressing it.
During a stark health challenge, I turned inward instead of outward, questioning long-held habits that wove lifestyle shifts into medical wisdom. This revelation reshaped my world: wellness blooms holistically, excessive reliance breeds fragility. This journey fuels my passion to advocate for caution, recognizing treatments as enhancers of life.
Looking deeper, It became clear health tools should ignite our potential, without stealing the spotlight. The path unfolded revelations, challenging everyone to ponder casual dependencies for deeper connections. It all comes down to one thing: suhagra 100 mg
I once viewed remedies as lifelines, swallowing them eagerly whenever discomfort arose. Yet, as experiences piled up, revealing how they provided temporary shields against root causes, sparking a quest for true understanding into what wellness truly entails. The shift was visceral, illuminating that mindful engagement with treatments fosters genuine recovery, rather than diminishing it.
In a moment of vulnerability, I turned inward instead of outward, uncovering hidden layers that harmonized natural rhythms with thoughtful aids. I unearthed a new truth: true mending demands awareness, blind trust weakens resilience. Now, I navigate this path with gratitude to embrace a fuller perspective, recognizing treatments as enhancers of life.
Looking deeper, It became clear health tools should ignite our potential, without stealing the spotlight. It’s a tapestry of growth, inviting us to question casual dependencies for richer lives. And if I had to sum it all up in one word: iMedix
NeuroRelief Rx NeuroRelief Rx NeuroRelief Rx
Аксессуары Prada считаются символом роскоши за счёт безупречному качеству.
Используемые материалы гарантируют износостойкость, а ручная сборка выделяет премиум-статус .
Лаконичный дизайн дополняются фирменными деталями, создавая узнаваемый образ .
https://sites.google.com/view/sumkiprada/index
Эти аксессуары универсальны на вечерних мероприятиях, сохраняя практичность в любой ситуации .
Ограниченные серии усиливают индивидуальность образа, превращая каждую модель в объект зависти.
Опираясь на историю компания внедряет инновации , оставаясь верным классическому шарму в каждой детали .
http://wakemedsrx.com/# nootropic Modafinil shipped to USA
where to buy Modafinil legally in the US: smart drugs online US pharmacy – Modafinil for ADHD and narcolepsy
Relief Meds USA: fast shipping prednisone – anti-inflammatory steroids online
Марка Balenciaga известен стильными сумками , разработанными фирменной эстетикой.
Каждая сумка отличается необычными формами , например контрастные строчки.
Применяемые ткани гарантируют долговечность сумки.
шопер Balenciaga отзывы
Популярность бренда увеличивается среди модников , делая выбор частью стиля.
Эксклюзивные коллекции создают шанс покупателю подчеркнуть индивидуальность в повседневке.
Инвестируя в сумки Balenciaga , вы инвестируете модный акцент , плюс часть истории .
anti-inflammatory steroids online: Relief Meds USA – prednisone without a prescription
Женская сумка — это обязательный элемент гардероба, которая подчеркивает образ каждой женщины.
Сумка способна переносить важные вещи и структурировать распорядок дня.
Благодаря разнообразию дизайнов и оттенков она создаёт любой образ.
сумки Balenciaga
Это символ роскоши, который раскрывает социальное положение своей хозяйки.
Любая сумка рассказывает настроение через материалы, раскрывая индивидуальность женщины.
От миниатюрных сумочек до просторных шоперов — сумка меняется под ваши потребности.
antibiotic treatment online no Rx amoxicillin 500mg capsules antibiotic antibiotic treatment online no Rx
amoxicillin 500 mg without a prescription: Clear Meds Direct – ClearMeds Direct
how to get cheap clomid tablets: Clomid Hub – can i order cheap clomid no prescription
order corticosteroids without prescription: Relief Meds USA – order corticosteroids without prescription
https://reliefmedsusa.shop/# ReliefMeds USA
NeuroRelief Rx NeuroRelief Rx gabapentin headache prophylaxis
wakefulness medication online no Rx: prescription-free Modafinil alternatives – buy Modafinil online USA
Your articles are extremely helpful to me. May I ask for more information? http://www.ifashionstyles.com
buy Zoloft online: Zoloft online pharmacy USA – Zoloft for sale
cheap Cialis Canada: generic Cialis from India – tadalafil online no rx
https://isotretinoinfromcanada.com/# generic isotretinoin
cheap Zoloft: Zoloft online pharmacy USA – Zoloft Company