Chapter 4. Implementing Application Logic
So far, we have mainly dealt with the UI layer, but no application can be called an application without some logic. In this chapter, we are going to work mainly on the code behind layer of our application. We will discuss the concept of events, dive deep into dependency properties, interact with attached properties, and finish off with the ICommand
interface. With so many exciting topics, we'd better get started right away!
In this chapter, we will cover the following topics:
Handling events
Consuming services asynchronously
Working with background threads
Working with dependency properties
Interacting with attached properties
Implementing
ICommand
Handling events
If you have ever worked with events in any .NET-based language, you will feel right at home with Silverlight. Just like other .NET languages, you can select an element in the design area, and generate the event handler automatically using Visual Studio 2010. Of course, you are not limited to adding...