This project need images and model classes. They are used later in this chapter. This video shows how to add assets to a project.
- View Offline
- I'll use some images and classes that contain some data…later in this chapter, so I'll need to add those…to my project.…I'll add these assets in a couple of ways to show you…different ways you can add items to WPF projects.…The assets I'm looking for are here…in the Exercise Files folder, in this Images folder,…and this Model folder.…Let's start by adding these models,…these two C Sharp classes.…I could just drag those over or put them in the root…of my project, that works for small projects,…but it makes for an organizational mess…once you start getting work from the bigger projects,…so it's good to put folders in your project,…just like you put folders in your File Explorer.…
I'll right click here and choose Add a folder.…There's my folder,…and now to add the models, there's a couple of approaches…I can take.…I'll copy this path, right-click on the Models folder,…choose to Add Existing Items,…and then I'll paste in the path here.…Once I get to that path, I can then shift-click…on these files to add multiple files to my project.…
- Why choose Windows Presentation Foundation?
- Exploring the project types
- Creating a WPF project in Visual Studio
- Exploring assemblies and parts
- Using the XAML editor
- Creating the UI, including tabs, details, and controls
- Using data binding
- Adding styles
- Writing interaction code
- Using control templates, 3D parts, and effects