From the course: .NET MAUI: Beyond the Basics

Unlock the full course today

Join today to access over 24,800 courses taught by industry experts.

Referencing custom views

Referencing custom views

- This chapter focuses on less common syntax within our XAML. For example, it isn't uncommon to create our own views or try to use a view from an outside assembly. To level set, we want to go through how this is done both for a view in the current assembly and for a view in an external assembly, such as one we may find from a third party vendor. If we look at the starting code for this chapter we can see that there's two projects. One main project for the solution, and a second Maui library project. In the main project, There's a view directory with a custom name view. So we can find that right here. So we want to use this inside of our actual main view page. So let's try to do this within our main view page. We'll open up the main view page and we're looking at the XAML. So in the content of the page you want to add a new name space to point at these types. So we're going to start with the simpler example which is the…

Contents