O'Reilly logo

Windows Store App Development: C# and XAML by Pete Brown

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 20. Networking player location

This chapter covers

  • The updated Player model
  • Using an ItemsControl to display ships
  • Sending player updates across TCP

In the previous chapter you created the Ship user control and displayed it on the screen. In this chapter you’ll expand on that work. The primary purpose of this chapter is to show you how I filled out the glue code that makes the socket service and player display from the previous chapters respond to the user input from the next chapter. As part of this, you’ll learn some interesting techniques such as using a bound ItemsControl to display the players on the playing field and spinning up background threads to send test data across the wire.

You’ll start by updating the Player model ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required