---
title: "Comment by Stephen York on \"Are you using Dependency Injection in your .NET MAUI app yet?\" | Hashnode"
description: "This is fine and I understand the approach for an app with a main page but how do you deal with DI for a TabbedPage app? I keep getting an error about having to"
url: "https://hashnode.com/posts/are-you-using-dependency-injection-in-your-net-maui-app-yet/6482f2104778277cfdf5862f/comment/6562c86329658b9b067c2c4e"
---

[Discussion](https://hashnode.com/posts/are-you-using-dependency-injection-in-your-net-maui-app-yet/6482f2104778277cfdf5862f)

Comment [Are you using Dependency Injection in your .NET MAUI app yet?](https://hashnode.com/posts/are-you-using-dependency-injection-in-your-net-maui-app-yet/6482f2104778277cfdf5862f)

[Stephen York](https://hashnode.com/@steveski)

[Nov 26, 2023](https://hashnode.com/posts/are-you-using-dependency-injection-in-your-net-maui-app-yet/6482f2104778277cfdf5862f/comment/6562c86329658b9b067c2c4e)

This is fine and I understand the approach for an app with a main page but how do you deal with DI for a TabbedPage app? I keep getting an error about having to write a type converter or provide a parameter less constructor. But I need to pass on a view model to my page. I’ve outlined the details on stack overflow on an article net-maui-how-to-use-dependency-injected-pages-form-tabbedpage
