We will now start to create some Views and ViewModel placeholders that we will expand on during this chapter. We will not directly implement all graphical features but, rather, keep it simple and think of all these pages as placeholders for what's to come next.
The first one is the HeadLinesViewModel class that will serve as the ViewModel for the HeadlinesView. Proceed as follows:
- In the News project, create a new class called HeadlinesViewModel.
- Edit the class to inherit from the ViewModel base class, as shown in bold in the following code snippet:
public class HeadlinesViewModel : ViewModel
{
public HeadlinesViewModel()
{
}
}
OK—not bad. It doesn't do much yet, but we'll just leave it for now. Let's create the matching view.