---
title: "Discussion on \"🔍 How to Access OnAppearing Directly in .NET MAUI ViewModels Using MVVM and EventToCommandBehavior\" | Hashnode"
description: "Discussion on \"🔍 How to Access OnAppearing Directly in .NET MAUI ViewModels Using MVVM and EventToCommandBehavior\". Learn how to handle .NET MAUI's OnAppearing event directly in ViewModels using MVVM and EventToCommandBehavior for cleaner, testable code"
url: "https://hashnode.com/posts/how-to-access-onappearing-directly-in-net-maui-viewmodels-using-mvvm-and-eventtocommandbehavior/6832c1cc7591027cb949b477"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [🔍 How to Access OnAppearing Directly in .NET MAUI ViewModels Using MVVM and EventToCommandBehavior](https://mauiwithali.hashnode.dev/how-to-access-onappearing-directly-in-net-maui-viewmodels-using-mvvm-and-eventtocommandbehavior?utm_source=hashnode&utm_medium=feed)

Learn how to handle .NET MAUI's OnAppearing event directly in ViewModels using MVVM and EventToCommandBehavior for cleaner, testable code

May 25, 2025 · 2 min read · mauiwithali.hashnode.dev  
Read the article

-   [#migration-to-net-maui](https://hashnode.com/tag/migration-to-net-maui)
-   [#maui](https://hashnode.com/tag/maui)
-   [#maui-integration](https://hashnode.com/tag/maui-integration)
-   [#mvvm](https://hashnode.com/tag/mvvm)
-   [#mvvmarchitecture](https://hashnode.com/tag/mvvmarchitecture)
-   [#xamarin](https://hashnode.com/tag/xamarin)
-   [#xamarin-forms](https://hashnode.com/tag/xamarin-forms)
-   [#xamarin-app-development](https://hashnode.com/tag/xamarin-app-development)

## Written by

[Ali Raza](https://hashnode.com/@ItsAliRaza)

@ItsAliRaza · Pakistan

  
[View profile](https://hashnode.com/@ItsAliRaza)

Maui with Ali

🚀 Tech Lead | .NET MAUI Expert | Mobile App Developer I'm Ali Raza, a passionate Tech Lead with over 6 years of experience in mobile app development. I specialize in .NET MAUI/Xamarin and have led multiple high-impact projects, including enterprise apps, fintech solutions, and eSIM technology. 🔹 What I Do: ✔ .NET MAUI &amp; Xamarin – Building cross-platform apps with robust architectures ✔ eSIM &amp; Fintech Apps – Leading innovations in digital connectivity &amp; finance ✔ Performance Optimization – Creating high-quality, scalable mobile solutions ✔ Mentorship &amp; Community Sharing – Helping developers master .NET MAUI 📢 Sharing Weekly Insights on .NET MAUI/Xamarin to help developers level up! Follow me for deep dives into Native Interop, API Optimization, and Advanced UI/UX techniques. Let’s connect and build something amazing! 🚀

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
