O'Reilly logo

Microsoft Silverlight 4 Business Application Development Beginner's Guide by Frank LaVigne, Cameron Albert

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

Time for action - submitting data to the server

Now that we have setup a form for data input and validated the data, we can now submit the data to the server using our WCF service. We need to submit the information to the server in order for the sales staff of Cake O Rama to be able to review and contact the customer.

  1. Switch back over to Visual Studio, open the MainPage.xaml.cs file and then add the following to the using statements:
    using CakeORamaData.Services;
    
  2. At the bottom of this file add the ConvertStrokesToStrokeInfoArray method. This method will convert the Silverlight Stroke objects from the inkPresenter to StrokeInfo objects as defined by our WCF service:
    private ObservableCollection<StrokeInfo> ConvertStrokesToStrokeInfoArray() { var ...

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