O'Reilly logo

Windows Phone 7.5 Data Cookbook by Ramesh Thalli

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

Searching OData services

In this recipe let's search OData using $filter. Netflix OData API supports $filter.

Getting ready

Let's create a new solution and name it Recipe3_NetflixSearch or copy the project from Recipe1_Netflix under the folder Ch4_Recipes.

How to do it...

  1. Open MainPage.xaml and add a text block, textbox, and a search button:
    <Grid x:Name="LayoutRoot" Background="Transparent" DataContext="{Binding}"> <Grid.RowDefinitions> <RowDefinition Height="152"/> <RowDefinition Height="234"/> <RowDefinition Height="382*"/> </Grid.RowDefinitions> <!--TitlePanel contains the name of the application and page title--> <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28"> <TextBlock x:Name="ApplicationTitle" Text="Ch4 Recipes" Style="{StaticResource ...

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