📜 ⬆️ ⬇️

Experience the first application for Windows Phone 7 Series using Silverlight

Greetings to you, habrasoobschestvo.
In this topic, I will tell you how to write my first application on Windows Phone 7 using my application as an example.

So to the point. I’ll say right away that I’m a novice programmer in .NET, so it’s not strictly necessary to judge my non-optimized code. I was recently interested in the Windows Phone 7 Series platform and decided to try to write a simple application for it - search for the site Ozon.ru

Having rummaged on a shop site I have found the XML interface for work with search in a site. It is located here:
www.ozon.ru/webservice/webservice.asmx/SearchWebService?searchText=test&searchContext=

In the GET searchText parameter contains a search query.
')
1. So let's get started. First you need to create a Windows Phone Application project in Visual Studio 2010 (this is the development environment we will use).



Let's call the project ozon. As a result, we get a default page with markup.

image

2. Now apply the markup to our future application page.

< phone:PhoneApplicationPage x:Class ="ozon.MainPage" xmlns ="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x ="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:phone ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" xmlns:shell ="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" xmlns:d ="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc ="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:controls ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls" mc:Ignorable ="d" d:DesignWidth ="480" d:DesignHeight ="768" FontFamily ="{StaticResource PhoneFontFamilyNormal}" FontSize ="{StaticResource PhoneFontSizeNormal}" Foreground ="{StaticResource PhoneForegroundBrush}" SupportedOrientations ="Portrait" Orientation ="Portrait" shell:SystemTray . IsVisible ="True" > < controls:Pivot > < controls:Pivot.Title > < TextBlock > OZON.RU </ TextBlock > </ controls:Pivot.Title > < controls:PivotItem Header ="" Foreground ="Black" > < Grid x:Name ="LayoutRoot" Background ="Transparent" > < Grid.RowDefinitions > < RowDefinition Height ="Auto" /> < RowDefinition Height ="*" /> </ Grid.RowDefinitions > < StackPanel x:Name ="TitlePanel" Grid . Row ="0" Margin ="12,17,0,28" UseLayoutRounding ="True" HorizontalAlignment ="Left" > < TextBox Grid . RowSpan ="2" Height ="72" Margin ="0,0,0,0" Name ="textBox1" Text ="" Width ="288" /> </ StackPanel > < Grid x:Name ="ContentPanel" Grid . Row ="1" Margin ="12,0,12,0" > < ListBox x:Name ="Results" Height ="Auto" HorizontalAlignment ="Left" Margin ="4,3,0,0" VerticalAlignment ="Top" Width ="423" > < ListBox.ItemTemplate > < DataTemplate > < StackPanel Orientation ="Horizontal" Height ="100" Margin ="0,10,0,0" > < Image Source ="{Binding PictureURL}" Width ="80" Height ="100" Stretch ="Fill" DataContext ="{Binding}" HorizontalAlignment ="Left" VerticalAlignment ="Center" Margin ="0,0,10,0" /> < StackPanel Orientation ="Vertical" Height ="100" VerticalAlignment ="Top" > < StackPanel Orientation ="Horizontal" Height ="Auto" VerticalAlignment ="Top" > < TextBlock Width ="320" FontSize ="18" Text ="{Binding Name}" TextWrapping ="Wrap" VerticalAlignment ="Top" /> </ StackPanel > < StackPanel Orientation ="Horizontal" Height ="60" > < TextBlock Width ="320" FontSize ="32" Text ="{Binding PriceFormatted}" /> </ StackPanel > </ StackPanel > </ StackPanel > </ DataTemplate > </ ListBox.ItemTemplate > </ ListBox > </ Grid > < Button Content ="" Height ="72" Name ="button1" Width ="160" Margin ="288,17,8,28" Click ="button1_Click" /> </ Grid > </ controls:PivotItem > </ controls:Pivot > </ phone:PhoneApplicationPage > * This source code was highlighted with Source Code Highlighter .
  1. < phone:PhoneApplicationPage x:Class ="ozon.MainPage" xmlns ="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x ="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:phone ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" xmlns:shell ="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" xmlns:d ="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc ="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:controls ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls" mc:Ignorable ="d" d:DesignWidth ="480" d:DesignHeight ="768" FontFamily ="{StaticResource PhoneFontFamilyNormal}" FontSize ="{StaticResource PhoneFontSizeNormal}" Foreground ="{StaticResource PhoneForegroundBrush}" SupportedOrientations ="Portrait" Orientation ="Portrait" shell:SystemTray . IsVisible ="True" > < controls:Pivot > < controls:Pivot.Title > < TextBlock > OZON.RU </ TextBlock > </ controls:Pivot.Title > < controls:PivotItem Header ="" Foreground ="Black" > < Grid x:Name ="LayoutRoot" Background ="Transparent" > < Grid.RowDefinitions > < RowDefinition Height ="Auto" /> < RowDefinition Height ="*" /> </ Grid.RowDefinitions > < StackPanel x:Name ="TitlePanel" Grid . Row ="0" Margin ="12,17,0,28" UseLayoutRounding ="True" HorizontalAlignment ="Left" > < TextBox Grid . RowSpan ="2" Height ="72" Margin ="0,0,0,0" Name ="textBox1" Text ="" Width ="288" /> </ StackPanel > < Grid x:Name ="ContentPanel" Grid . Row ="1" Margin ="12,0,12,0" > < ListBox x:Name ="Results" Height ="Auto" HorizontalAlignment ="Left" Margin ="4,3,0,0" VerticalAlignment ="Top" Width ="423" > < ListBox.ItemTemplate > < DataTemplate > < StackPanel Orientation ="Horizontal" Height ="100" Margin ="0,10,0,0" > < Image Source ="{Binding PictureURL}" Width ="80" Height ="100" Stretch ="Fill" DataContext ="{Binding}" HorizontalAlignment ="Left" VerticalAlignment ="Center" Margin ="0,0,10,0" /> < StackPanel Orientation ="Vertical" Height ="100" VerticalAlignment ="Top" > < StackPanel Orientation ="Horizontal" Height ="Auto" VerticalAlignment ="Top" > < TextBlock Width ="320" FontSize ="18" Text ="{Binding Name}" TextWrapping ="Wrap" VerticalAlignment ="Top" /> </ StackPanel > < StackPanel Orientation ="Horizontal" Height ="60" > < TextBlock Width ="320" FontSize ="32" Text ="{Binding PriceFormatted}" /> </ StackPanel > </ StackPanel > </ StackPanel > </ DataTemplate > </ ListBox.ItemTemplate > </ ListBox > </ Grid > < Button Content ="" Height ="72" Name ="button1" Width ="160" Margin ="288,17,8,28" Click ="button1_Click" /> </ Grid > </ controls:PivotItem > </ controls:Pivot > </ phone:PhoneApplicationPage > * This source code was highlighted with Source Code Highlighter .
  2. < phone:PhoneApplicationPage x:Class ="ozon.MainPage" xmlns ="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x ="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:phone ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" xmlns:shell ="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" xmlns:d ="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc ="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:controls ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls" mc:Ignorable ="d" d:DesignWidth ="480" d:DesignHeight ="768" FontFamily ="{StaticResource PhoneFontFamilyNormal}" FontSize ="{StaticResource PhoneFontSizeNormal}" Foreground ="{StaticResource PhoneForegroundBrush}" SupportedOrientations ="Portrait" Orientation ="Portrait" shell:SystemTray . IsVisible ="True" > < controls:Pivot > < controls:Pivot.Title > < TextBlock > OZON.RU </ TextBlock > </ controls:Pivot.Title > < controls:PivotItem Header ="" Foreground ="Black" > < Grid x:Name ="LayoutRoot" Background ="Transparent" > < Grid.RowDefinitions > < RowDefinition Height ="Auto" /> < RowDefinition Height ="*" /> </ Grid.RowDefinitions > < StackPanel x:Name ="TitlePanel" Grid . Row ="0" Margin ="12,17,0,28" UseLayoutRounding ="True" HorizontalAlignment ="Left" > < TextBox Grid . RowSpan ="2" Height ="72" Margin ="0,0,0,0" Name ="textBox1" Text ="" Width ="288" /> </ StackPanel > < Grid x:Name ="ContentPanel" Grid . Row ="1" Margin ="12,0,12,0" > < ListBox x:Name ="Results" Height ="Auto" HorizontalAlignment ="Left" Margin ="4,3,0,0" VerticalAlignment ="Top" Width ="423" > < ListBox.ItemTemplate > < DataTemplate > < StackPanel Orientation ="Horizontal" Height ="100" Margin ="0,10,0,0" > < Image Source ="{Binding PictureURL}" Width ="80" Height ="100" Stretch ="Fill" DataContext ="{Binding}" HorizontalAlignment ="Left" VerticalAlignment ="Center" Margin ="0,0,10,0" /> < StackPanel Orientation ="Vertical" Height ="100" VerticalAlignment ="Top" > < StackPanel Orientation ="Horizontal" Height ="Auto" VerticalAlignment ="Top" > < TextBlock Width ="320" FontSize ="18" Text ="{Binding Name}" TextWrapping ="Wrap" VerticalAlignment ="Top" /> </ StackPanel > < StackPanel Orientation ="Horizontal" Height ="60" > < TextBlock Width ="320" FontSize ="32" Text ="{Binding PriceFormatted}" /> </ StackPanel > </ StackPanel > </ StackPanel > </ DataTemplate > </ ListBox.ItemTemplate > </ ListBox > </ Grid > < Button Content ="" Height ="72" Name ="button1" Width ="160" Margin ="288,17,8,28" Click ="button1_Click" /> </ Grid > </ controls:PivotItem > </ controls:Pivot > </ phone:PhoneApplicationPage > * This source code was highlighted with Source Code Highlighter .
  3. < phone:PhoneApplicationPage x:Class ="ozon.MainPage" xmlns ="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x ="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:phone ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" xmlns:shell ="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" xmlns:d ="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc ="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:controls ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls" mc:Ignorable ="d" d:DesignWidth ="480" d:DesignHeight ="768" FontFamily ="{StaticResource PhoneFontFamilyNormal}" FontSize ="{StaticResource PhoneFontSizeNormal}" Foreground ="{StaticResource PhoneForegroundBrush}" SupportedOrientations ="Portrait" Orientation ="Portrait" shell:SystemTray . IsVisible ="True" > < controls:Pivot > < controls:Pivot.Title > < TextBlock > OZON.RU </ TextBlock > </ controls:Pivot.Title > < controls:PivotItem Header ="" Foreground ="Black" > < Grid x:Name ="LayoutRoot" Background ="Transparent" > < Grid.RowDefinitions > < RowDefinition Height ="Auto" /> < RowDefinition Height ="*" /> </ Grid.RowDefinitions > < StackPanel x:Name ="TitlePanel" Grid . Row ="0" Margin ="12,17,0,28" UseLayoutRounding ="True" HorizontalAlignment ="Left" > < TextBox Grid . RowSpan ="2" Height ="72" Margin ="0,0,0,0" Name ="textBox1" Text ="" Width ="288" /> </ StackPanel > < Grid x:Name ="ContentPanel" Grid . Row ="1" Margin ="12,0,12,0" > < ListBox x:Name ="Results" Height ="Auto" HorizontalAlignment ="Left" Margin ="4,3,0,0" VerticalAlignment ="Top" Width ="423" > < ListBox.ItemTemplate > < DataTemplate > < StackPanel Orientation ="Horizontal" Height ="100" Margin ="0,10,0,0" > < Image Source ="{Binding PictureURL}" Width ="80" Height ="100" Stretch ="Fill" DataContext ="{Binding}" HorizontalAlignment ="Left" VerticalAlignment ="Center" Margin ="0,0,10,0" /> < StackPanel Orientation ="Vertical" Height ="100" VerticalAlignment ="Top" > < StackPanel Orientation ="Horizontal" Height ="Auto" VerticalAlignment ="Top" > < TextBlock Width ="320" FontSize ="18" Text ="{Binding Name}" TextWrapping ="Wrap" VerticalAlignment ="Top" /> </ StackPanel > < StackPanel Orientation ="Horizontal" Height ="60" > < TextBlock Width ="320" FontSize ="32" Text ="{Binding PriceFormatted}" /> </ StackPanel > </ StackPanel > </ StackPanel > </ DataTemplate > </ ListBox.ItemTemplate > </ ListBox > </ Grid > < Button Content ="" Height ="72" Name ="button1" Width ="160" Margin ="288,17,8,28" Click ="button1_Click" /> </ Grid > </ controls:PivotItem > </ controls:Pivot > </ phone:PhoneApplicationPage > * This source code was highlighted with Source Code Highlighter .
  4. < phone:PhoneApplicationPage x:Class ="ozon.MainPage" xmlns ="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x ="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:phone ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" xmlns:shell ="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" xmlns:d ="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc ="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:controls ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls" mc:Ignorable ="d" d:DesignWidth ="480" d:DesignHeight ="768" FontFamily ="{StaticResource PhoneFontFamilyNormal}" FontSize ="{StaticResource PhoneFontSizeNormal}" Foreground ="{StaticResource PhoneForegroundBrush}" SupportedOrientations ="Portrait" Orientation ="Portrait" shell:SystemTray . IsVisible ="True" > < controls:Pivot > < controls:Pivot.Title > < TextBlock > OZON.RU </ TextBlock > </ controls:Pivot.Title > < controls:PivotItem Header ="" Foreground ="Black" > < Grid x:Name ="LayoutRoot" Background ="Transparent" > < Grid.RowDefinitions > < RowDefinition Height ="Auto" /> < RowDefinition Height ="*" /> </ Grid.RowDefinitions > < StackPanel x:Name ="TitlePanel" Grid . Row ="0" Margin ="12,17,0,28" UseLayoutRounding ="True" HorizontalAlignment ="Left" > < TextBox Grid . RowSpan ="2" Height ="72" Margin ="0,0,0,0" Name ="textBox1" Text ="" Width ="288" /> </ StackPanel > < Grid x:Name ="ContentPanel" Grid . Row ="1" Margin ="12,0,12,0" > < ListBox x:Name ="Results" Height ="Auto" HorizontalAlignment ="Left" Margin ="4,3,0,0" VerticalAlignment ="Top" Width ="423" > < ListBox.ItemTemplate > < DataTemplate > < StackPanel Orientation ="Horizontal" Height ="100" Margin ="0,10,0,0" > < Image Source ="{Binding PictureURL}" Width ="80" Height ="100" Stretch ="Fill" DataContext ="{Binding}" HorizontalAlignment ="Left" VerticalAlignment ="Center" Margin ="0,0,10,0" /> < StackPanel Orientation ="Vertical" Height ="100" VerticalAlignment ="Top" > < StackPanel Orientation ="Horizontal" Height ="Auto" VerticalAlignment ="Top" > < TextBlock Width ="320" FontSize ="18" Text ="{Binding Name}" TextWrapping ="Wrap" VerticalAlignment ="Top" /> </ StackPanel > < StackPanel Orientation ="Horizontal" Height ="60" > < TextBlock Width ="320" FontSize ="32" Text ="{Binding PriceFormatted}" /> </ StackPanel > </ StackPanel > </ StackPanel > </ DataTemplate > </ ListBox.ItemTemplate > </ ListBox > </ Grid > < Button Content ="" Height ="72" Name ="button1" Width ="160" Margin ="288,17,8,28" Click ="button1_Click" /> </ Grid > </ controls:PivotItem > </ controls:Pivot > </ phone:PhoneApplicationPage > * This source code was highlighted with Source Code Highlighter .
  5. < phone:PhoneApplicationPage x:Class ="ozon.MainPage" xmlns ="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x ="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:phone ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" xmlns:shell ="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" xmlns:d ="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc ="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:controls ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls" mc:Ignorable ="d" d:DesignWidth ="480" d:DesignHeight ="768" FontFamily ="{StaticResource PhoneFontFamilyNormal}" FontSize ="{StaticResource PhoneFontSizeNormal}" Foreground ="{StaticResource PhoneForegroundBrush}" SupportedOrientations ="Portrait" Orientation ="Portrait" shell:SystemTray . IsVisible ="True" > < controls:Pivot > < controls:Pivot.Title > < TextBlock > OZON.RU </ TextBlock > </ controls:Pivot.Title > < controls:PivotItem Header ="" Foreground ="Black" > < Grid x:Name ="LayoutRoot" Background ="Transparent" > < Grid.RowDefinitions > < RowDefinition Height ="Auto" /> < RowDefinition Height ="*" /> </ Grid.RowDefinitions > < StackPanel x:Name ="TitlePanel" Grid . Row ="0" Margin ="12,17,0,28" UseLayoutRounding ="True" HorizontalAlignment ="Left" > < TextBox Grid . RowSpan ="2" Height ="72" Margin ="0,0,0,0" Name ="textBox1" Text ="" Width ="288" /> </ StackPanel > < Grid x:Name ="ContentPanel" Grid . Row ="1" Margin ="12,0,12,0" > < ListBox x:Name ="Results" Height ="Auto" HorizontalAlignment ="Left" Margin ="4,3,0,0" VerticalAlignment ="Top" Width ="423" > < ListBox.ItemTemplate > < DataTemplate > < StackPanel Orientation ="Horizontal" Height ="100" Margin ="0,10,0,0" > < Image Source ="{Binding PictureURL}" Width ="80" Height ="100" Stretch ="Fill" DataContext ="{Binding}" HorizontalAlignment ="Left" VerticalAlignment ="Center" Margin ="0,0,10,0" /> < StackPanel Orientation ="Vertical" Height ="100" VerticalAlignment ="Top" > < StackPanel Orientation ="Horizontal" Height ="Auto" VerticalAlignment ="Top" > < TextBlock Width ="320" FontSize ="18" Text ="{Binding Name}" TextWrapping ="Wrap" VerticalAlignment ="Top" /> </ StackPanel > < StackPanel Orientation ="Horizontal" Height ="60" > < TextBlock Width ="320" FontSize ="32" Text ="{Binding PriceFormatted}" /> </ StackPanel > </ StackPanel > </ StackPanel > </ DataTemplate > </ ListBox.ItemTemplate > </ ListBox > </ Grid > < Button Content ="" Height ="72" Name ="button1" Width ="160" Margin ="288,17,8,28" Click ="button1_Click" /> </ Grid > </ controls:PivotItem > </ controls:Pivot > </ phone:PhoneApplicationPage > * This source code was highlighted with Source Code Highlighter .
  6. < phone:PhoneApplicationPage x:Class ="ozon.MainPage" xmlns ="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x ="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:phone ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" xmlns:shell ="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" xmlns:d ="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc ="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:controls ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls" mc:Ignorable ="d" d:DesignWidth ="480" d:DesignHeight ="768" FontFamily ="{StaticResource PhoneFontFamilyNormal}" FontSize ="{StaticResource PhoneFontSizeNormal}" Foreground ="{StaticResource PhoneForegroundBrush}" SupportedOrientations ="Portrait" Orientation ="Portrait" shell:SystemTray . IsVisible ="True" > < controls:Pivot > < controls:Pivot.Title > < TextBlock > OZON.RU </ TextBlock > </ controls:Pivot.Title > < controls:PivotItem Header ="" Foreground ="Black" > < Grid x:Name ="LayoutRoot" Background ="Transparent" > < Grid.RowDefinitions > < RowDefinition Height ="Auto" /> < RowDefinition Height ="*" /> </ Grid.RowDefinitions > < StackPanel x:Name ="TitlePanel" Grid . Row ="0" Margin ="12,17,0,28" UseLayoutRounding ="True" HorizontalAlignment ="Left" > < TextBox Grid . RowSpan ="2" Height ="72" Margin ="0,0,0,0" Name ="textBox1" Text ="" Width ="288" /> </ StackPanel > < Grid x:Name ="ContentPanel" Grid . Row ="1" Margin ="12,0,12,0" > < ListBox x:Name ="Results" Height ="Auto" HorizontalAlignment ="Left" Margin ="4,3,0,0" VerticalAlignment ="Top" Width ="423" > < ListBox.ItemTemplate > < DataTemplate > < StackPanel Orientation ="Horizontal" Height ="100" Margin ="0,10,0,0" > < Image Source ="{Binding PictureURL}" Width ="80" Height ="100" Stretch ="Fill" DataContext ="{Binding}" HorizontalAlignment ="Left" VerticalAlignment ="Center" Margin ="0,0,10,0" /> < StackPanel Orientation ="Vertical" Height ="100" VerticalAlignment ="Top" > < StackPanel Orientation ="Horizontal" Height ="Auto" VerticalAlignment ="Top" > < TextBlock Width ="320" FontSize ="18" Text ="{Binding Name}" TextWrapping ="Wrap" VerticalAlignment ="Top" /> </ StackPanel > < StackPanel Orientation ="Horizontal" Height ="60" > < TextBlock Width ="320" FontSize ="32" Text ="{Binding PriceFormatted}" /> </ StackPanel > </ StackPanel > </ StackPanel > </ DataTemplate > </ ListBox.ItemTemplate > </ ListBox > </ Grid > < Button Content ="" Height ="72" Name ="button1" Width ="160" Margin ="288,17,8,28" Click ="button1_Click" /> </ Grid > </ controls:PivotItem > </ controls:Pivot > </ phone:PhoneApplicationPage > * This source code was highlighted with Source Code Highlighter .
  7. < phone:PhoneApplicationPage x:Class ="ozon.MainPage" xmlns ="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x ="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:phone ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" xmlns:shell ="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" xmlns:d ="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc ="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:controls ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls" mc:Ignorable ="d" d:DesignWidth ="480" d:DesignHeight ="768" FontFamily ="{StaticResource PhoneFontFamilyNormal}" FontSize ="{StaticResource PhoneFontSizeNormal}" Foreground ="{StaticResource PhoneForegroundBrush}" SupportedOrientations ="Portrait" Orientation ="Portrait" shell:SystemTray . IsVisible ="True" > < controls:Pivot > < controls:Pivot.Title > < TextBlock > OZON.RU </ TextBlock > </ controls:Pivot.Title > < controls:PivotItem Header ="" Foreground ="Black" > < Grid x:Name ="LayoutRoot" Background ="Transparent" > < Grid.RowDefinitions > < RowDefinition Height ="Auto" /> < RowDefinition Height ="*" /> </ Grid.RowDefinitions > < StackPanel x:Name ="TitlePanel" Grid . Row ="0" Margin ="12,17,0,28" UseLayoutRounding ="True" HorizontalAlignment ="Left" > < TextBox Grid . RowSpan ="2" Height ="72" Margin ="0,0,0,0" Name ="textBox1" Text ="" Width ="288" /> </ StackPanel > < Grid x:Name ="ContentPanel" Grid . Row ="1" Margin ="12,0,12,0" > < ListBox x:Name ="Results" Height ="Auto" HorizontalAlignment ="Left" Margin ="4,3,0,0" VerticalAlignment ="Top" Width ="423" > < ListBox.ItemTemplate > < DataTemplate > < StackPanel Orientation ="Horizontal" Height ="100" Margin ="0,10,0,0" > < Image Source ="{Binding PictureURL}" Width ="80" Height ="100" Stretch ="Fill" DataContext ="{Binding}" HorizontalAlignment ="Left" VerticalAlignment ="Center" Margin ="0,0,10,0" /> < StackPanel Orientation ="Vertical" Height ="100" VerticalAlignment ="Top" > < StackPanel Orientation ="Horizontal" Height ="Auto" VerticalAlignment ="Top" > < TextBlock Width ="320" FontSize ="18" Text ="{Binding Name}" TextWrapping ="Wrap" VerticalAlignment ="Top" /> </ StackPanel > < StackPanel Orientation ="Horizontal" Height ="60" > < TextBlock Width ="320" FontSize ="32" Text ="{Binding PriceFormatted}" /> </ StackPanel > </ StackPanel > </ StackPanel > </ DataTemplate > </ ListBox.ItemTemplate > </ ListBox > </ Grid > < Button Content ="" Height ="72" Name ="button1" Width ="160" Margin ="288,17,8,28" Click ="button1_Click" /> </ Grid > </ controls:PivotItem > </ controls:Pivot > </ phone:PhoneApplicationPage > * This source code was highlighted with Source Code Highlighter .
  8. < phone:PhoneApplicationPage x:Class ="ozon.MainPage" xmlns ="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x ="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:phone ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" xmlns:shell ="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" xmlns:d ="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc ="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:controls ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls" mc:Ignorable ="d" d:DesignWidth ="480" d:DesignHeight ="768" FontFamily ="{StaticResource PhoneFontFamilyNormal}" FontSize ="{StaticResource PhoneFontSizeNormal}" Foreground ="{StaticResource PhoneForegroundBrush}" SupportedOrientations ="Portrait" Orientation ="Portrait" shell:SystemTray . IsVisible ="True" > < controls:Pivot > < controls:Pivot.Title > < TextBlock > OZON.RU </ TextBlock > </ controls:Pivot.Title > < controls:PivotItem Header ="" Foreground ="Black" > < Grid x:Name ="LayoutRoot" Background ="Transparent" > < Grid.RowDefinitions > < RowDefinition Height ="Auto" /> < RowDefinition Height ="*" /> </ Grid.RowDefinitions > < StackPanel x:Name ="TitlePanel" Grid . Row ="0" Margin ="12,17,0,28" UseLayoutRounding ="True" HorizontalAlignment ="Left" > < TextBox Grid . RowSpan ="2" Height ="72" Margin ="0,0,0,0" Name ="textBox1" Text ="" Width ="288" /> </ StackPanel > < Grid x:Name ="ContentPanel" Grid . Row ="1" Margin ="12,0,12,0" > < ListBox x:Name ="Results" Height ="Auto" HorizontalAlignment ="Left" Margin ="4,3,0,0" VerticalAlignment ="Top" Width ="423" > < ListBox.ItemTemplate > < DataTemplate > < StackPanel Orientation ="Horizontal" Height ="100" Margin ="0,10,0,0" > < Image Source ="{Binding PictureURL}" Width ="80" Height ="100" Stretch ="Fill" DataContext ="{Binding}" HorizontalAlignment ="Left" VerticalAlignment ="Center" Margin ="0,0,10,0" /> < StackPanel Orientation ="Vertical" Height ="100" VerticalAlignment ="Top" > < StackPanel Orientation ="Horizontal" Height ="Auto" VerticalAlignment ="Top" > < TextBlock Width ="320" FontSize ="18" Text ="{Binding Name}" TextWrapping ="Wrap" VerticalAlignment ="Top" /> </ StackPanel > < StackPanel Orientation ="Horizontal" Height ="60" > < TextBlock Width ="320" FontSize ="32" Text ="{Binding PriceFormatted}" /> </ StackPanel > </ StackPanel > </ StackPanel > </ DataTemplate > </ ListBox.ItemTemplate > </ ListBox > </ Grid > < Button Content ="" Height ="72" Name ="button1" Width ="160" Margin ="288,17,8,28" Click ="button1_Click" /> </ Grid > </ controls:PivotItem > </ controls:Pivot > </ phone:PhoneApplicationPage > * This source code was highlighted with Source Code Highlighter .
  9. < phone:PhoneApplicationPage x:Class ="ozon.MainPage" xmlns ="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x ="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:phone ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" xmlns:shell ="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" xmlns:d ="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc ="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:controls ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls" mc:Ignorable ="d" d:DesignWidth ="480" d:DesignHeight ="768" FontFamily ="{StaticResource PhoneFontFamilyNormal}" FontSize ="{StaticResource PhoneFontSizeNormal}" Foreground ="{StaticResource PhoneForegroundBrush}" SupportedOrientations ="Portrait" Orientation ="Portrait" shell:SystemTray . IsVisible ="True" > < controls:Pivot > < controls:Pivot.Title > < TextBlock > OZON.RU </ TextBlock > </ controls:Pivot.Title > < controls:PivotItem Header ="" Foreground ="Black" > < Grid x:Name ="LayoutRoot" Background ="Transparent" > < Grid.RowDefinitions > < RowDefinition Height ="Auto" /> < RowDefinition Height ="*" /> </ Grid.RowDefinitions > < StackPanel x:Name ="TitlePanel" Grid . Row ="0" Margin ="12,17,0,28" UseLayoutRounding ="True" HorizontalAlignment ="Left" > < TextBox Grid . RowSpan ="2" Height ="72" Margin ="0,0,0,0" Name ="textBox1" Text ="" Width ="288" /> </ StackPanel > < Grid x:Name ="ContentPanel" Grid . Row ="1" Margin ="12,0,12,0" > < ListBox x:Name ="Results" Height ="Auto" HorizontalAlignment ="Left" Margin ="4,3,0,0" VerticalAlignment ="Top" Width ="423" > < ListBox.ItemTemplate > < DataTemplate > < StackPanel Orientation ="Horizontal" Height ="100" Margin ="0,10,0,0" > < Image Source ="{Binding PictureURL}" Width ="80" Height ="100" Stretch ="Fill" DataContext ="{Binding}" HorizontalAlignment ="Left" VerticalAlignment ="Center" Margin ="0,0,10,0" /> < StackPanel Orientation ="Vertical" Height ="100" VerticalAlignment ="Top" > < StackPanel Orientation ="Horizontal" Height ="Auto" VerticalAlignment ="Top" > < TextBlock Width ="320" FontSize ="18" Text ="{Binding Name}" TextWrapping ="Wrap" VerticalAlignment ="Top" /> </ StackPanel > < StackPanel Orientation ="Horizontal" Height ="60" > < TextBlock Width ="320" FontSize ="32" Text ="{Binding PriceFormatted}" /> </ StackPanel > </ StackPanel > </ StackPanel > </ DataTemplate > </ ListBox.ItemTemplate > </ ListBox > </ Grid > < Button Content ="" Height ="72" Name ="button1" Width ="160" Margin ="288,17,8,28" Click ="button1_Click" /> </ Grid > </ controls:PivotItem > </ controls:Pivot > </ phone:PhoneApplicationPage > * This source code was highlighted with Source Code Highlighter .
  10. < phone:PhoneApplicationPage x:Class ="ozon.MainPage" xmlns ="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x ="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:phone ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" xmlns:shell ="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" xmlns:d ="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc ="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:controls ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls" mc:Ignorable ="d" d:DesignWidth ="480" d:DesignHeight ="768" FontFamily ="{StaticResource PhoneFontFamilyNormal}" FontSize ="{StaticResource PhoneFontSizeNormal}" Foreground ="{StaticResource PhoneForegroundBrush}" SupportedOrientations ="Portrait" Orientation ="Portrait" shell:SystemTray . IsVisible ="True" > < controls:Pivot > < controls:Pivot.Title > < TextBlock > OZON.RU </ TextBlock > </ controls:Pivot.Title > < controls:PivotItem Header ="" Foreground ="Black" > < Grid x:Name ="LayoutRoot" Background ="Transparent" > < Grid.RowDefinitions > < RowDefinition Height ="Auto" /> < RowDefinition Height ="*" /> </ Grid.RowDefinitions > < StackPanel x:Name ="TitlePanel" Grid . Row ="0" Margin ="12,17,0,28" UseLayoutRounding ="True" HorizontalAlignment ="Left" > < TextBox Grid . RowSpan ="2" Height ="72" Margin ="0,0,0,0" Name ="textBox1" Text ="" Width ="288" /> </ StackPanel > < Grid x:Name ="ContentPanel" Grid . Row ="1" Margin ="12,0,12,0" > < ListBox x:Name ="Results" Height ="Auto" HorizontalAlignment ="Left" Margin ="4,3,0,0" VerticalAlignment ="Top" Width ="423" > < ListBox.ItemTemplate > < DataTemplate > < StackPanel Orientation ="Horizontal" Height ="100" Margin ="0,10,0,0" > < Image Source ="{Binding PictureURL}" Width ="80" Height ="100" Stretch ="Fill" DataContext ="{Binding}" HorizontalAlignment ="Left" VerticalAlignment ="Center" Margin ="0,0,10,0" /> < StackPanel Orientation ="Vertical" Height ="100" VerticalAlignment ="Top" > < StackPanel Orientation ="Horizontal" Height ="Auto" VerticalAlignment ="Top" > < TextBlock Width ="320" FontSize ="18" Text ="{Binding Name}" TextWrapping ="Wrap" VerticalAlignment ="Top" /> </ StackPanel > < StackPanel Orientation ="Horizontal" Height ="60" > < TextBlock Width ="320" FontSize ="32" Text ="{Binding PriceFormatted}" /> </ StackPanel > </ StackPanel > </ StackPanel > </ DataTemplate > </ ListBox.ItemTemplate > </ ListBox > </ Grid > < Button Content ="" Height ="72" Name ="button1" Width ="160" Margin ="288,17,8,28" Click ="button1_Click" /> </ Grid > </ controls:PivotItem > </ controls:Pivot > </ phone:PhoneApplicationPage > * This source code was highlighted with Source Code Highlighter .
  11. < phone:PhoneApplicationPage x:Class ="ozon.MainPage" xmlns ="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x ="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:phone ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" xmlns:shell ="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" xmlns:d ="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc ="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:controls ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls" mc:Ignorable ="d" d:DesignWidth ="480" d:DesignHeight ="768" FontFamily ="{StaticResource PhoneFontFamilyNormal}" FontSize ="{StaticResource PhoneFontSizeNormal}" Foreground ="{StaticResource PhoneForegroundBrush}" SupportedOrientations ="Portrait" Orientation ="Portrait" shell:SystemTray . IsVisible ="True" > < controls:Pivot > < controls:Pivot.Title > < TextBlock > OZON.RU </ TextBlock > </ controls:Pivot.Title > < controls:PivotItem Header ="" Foreground ="Black" > < Grid x:Name ="LayoutRoot" Background ="Transparent" > < Grid.RowDefinitions > < RowDefinition Height ="Auto" /> < RowDefinition Height ="*" /> </ Grid.RowDefinitions > < StackPanel x:Name ="TitlePanel" Grid . Row ="0" Margin ="12,17,0,28" UseLayoutRounding ="True" HorizontalAlignment ="Left" > < TextBox Grid . RowSpan ="2" Height ="72" Margin ="0,0,0,0" Name ="textBox1" Text ="" Width ="288" /> </ StackPanel > < Grid x:Name ="ContentPanel" Grid . Row ="1" Margin ="12,0,12,0" > < ListBox x:Name ="Results" Height ="Auto" HorizontalAlignment ="Left" Margin ="4,3,0,0" VerticalAlignment ="Top" Width ="423" > < ListBox.ItemTemplate > < DataTemplate > < StackPanel Orientation ="Horizontal" Height ="100" Margin ="0,10,0,0" > < Image Source ="{Binding PictureURL}" Width ="80" Height ="100" Stretch ="Fill" DataContext ="{Binding}" HorizontalAlignment ="Left" VerticalAlignment ="Center" Margin ="0,0,10,0" /> < StackPanel Orientation ="Vertical" Height ="100" VerticalAlignment ="Top" > < StackPanel Orientation ="Horizontal" Height ="Auto" VerticalAlignment ="Top" > < TextBlock Width ="320" FontSize ="18" Text ="{Binding Name}" TextWrapping ="Wrap" VerticalAlignment ="Top" /> </ StackPanel > < StackPanel Orientation ="Horizontal" Height ="60" > < TextBlock Width ="320" FontSize ="32" Text ="{Binding PriceFormatted}" /> </ StackPanel > </ StackPanel > </ StackPanel > </ DataTemplate > </ ListBox.ItemTemplate > </ ListBox > </ Grid > < Button Content ="" Height ="72" Name ="button1" Width ="160" Margin ="288,17,8,28" Click ="button1_Click" /> </ Grid > </ controls:PivotItem > </ controls:Pivot > </ phone:PhoneApplicationPage > * This source code was highlighted with Source Code Highlighter .
  12. < phone:PhoneApplicationPage x:Class ="ozon.MainPage" xmlns ="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x ="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:phone ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" xmlns:shell ="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" xmlns:d ="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc ="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:controls ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls" mc:Ignorable ="d" d:DesignWidth ="480" d:DesignHeight ="768" FontFamily ="{StaticResource PhoneFontFamilyNormal}" FontSize ="{StaticResource PhoneFontSizeNormal}" Foreground ="{StaticResource PhoneForegroundBrush}" SupportedOrientations ="Portrait" Orientation ="Portrait" shell:SystemTray . IsVisible ="True" > < controls:Pivot > < controls:Pivot.Title > < TextBlock > OZON.RU </ TextBlock > </ controls:Pivot.Title > < controls:PivotItem Header ="" Foreground ="Black" > < Grid x:Name ="LayoutRoot" Background ="Transparent" > < Grid.RowDefinitions > < RowDefinition Height ="Auto" /> < RowDefinition Height ="*" /> </ Grid.RowDefinitions > < StackPanel x:Name ="TitlePanel" Grid . Row ="0" Margin ="12,17,0,28" UseLayoutRounding ="True" HorizontalAlignment ="Left" > < TextBox Grid . RowSpan ="2" Height ="72" Margin ="0,0,0,0" Name ="textBox1" Text ="" Width ="288" /> </ StackPanel > < Grid x:Name ="ContentPanel" Grid . Row ="1" Margin ="12,0,12,0" > < ListBox x:Name ="Results" Height ="Auto" HorizontalAlignment ="Left" Margin ="4,3,0,0" VerticalAlignment ="Top" Width ="423" > < ListBox.ItemTemplate > < DataTemplate > < StackPanel Orientation ="Horizontal" Height ="100" Margin ="0,10,0,0" > < Image Source ="{Binding PictureURL}" Width ="80" Height ="100" Stretch ="Fill" DataContext ="{Binding}" HorizontalAlignment ="Left" VerticalAlignment ="Center" Margin ="0,0,10,0" /> < StackPanel Orientation ="Vertical" Height ="100" VerticalAlignment ="Top" > < StackPanel Orientation ="Horizontal" Height ="Auto" VerticalAlignment ="Top" > < TextBlock Width ="320" FontSize ="18" Text ="{Binding Name}" TextWrapping ="Wrap" VerticalAlignment ="Top" /> </ StackPanel > < StackPanel Orientation ="Horizontal" Height ="60" > < TextBlock Width ="320" FontSize ="32" Text ="{Binding PriceFormatted}" /> </ StackPanel > </ StackPanel > </ StackPanel > </ DataTemplate > </ ListBox.ItemTemplate > </ ListBox > </ Grid > < Button Content ="" Height ="72" Name ="button1" Width ="160" Margin ="288,17,8,28" Click ="button1_Click" /> </ Grid > </ controls:PivotItem > </ controls:Pivot > </ phone:PhoneApplicationPage > * This source code was highlighted with Source Code Highlighter .
  13. < phone:PhoneApplicationPage x:Class ="ozon.MainPage" xmlns ="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x ="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:phone ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" xmlns:shell ="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" xmlns:d ="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc ="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:controls ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls" mc:Ignorable ="d" d:DesignWidth ="480" d:DesignHeight ="768" FontFamily ="{StaticResource PhoneFontFamilyNormal}" FontSize ="{StaticResource PhoneFontSizeNormal}" Foreground ="{StaticResource PhoneForegroundBrush}" SupportedOrientations ="Portrait" Orientation ="Portrait" shell:SystemTray . IsVisible ="True" > < controls:Pivot > < controls:Pivot.Title > < TextBlock > OZON.RU </ TextBlock > </ controls:Pivot.Title > < controls:PivotItem Header ="" Foreground ="Black" > < Grid x:Name ="LayoutRoot" Background ="Transparent" > < Grid.RowDefinitions > < RowDefinition Height ="Auto" /> < RowDefinition Height ="*" /> </ Grid.RowDefinitions > < StackPanel x:Name ="TitlePanel" Grid . Row ="0" Margin ="12,17,0,28" UseLayoutRounding ="True" HorizontalAlignment ="Left" > < TextBox Grid . RowSpan ="2" Height ="72" Margin ="0,0,0,0" Name ="textBox1" Text ="" Width ="288" /> </ StackPanel > < Grid x:Name ="ContentPanel" Grid . Row ="1" Margin ="12,0,12,0" > < ListBox x:Name ="Results" Height ="Auto" HorizontalAlignment ="Left" Margin ="4,3,0,0" VerticalAlignment ="Top" Width ="423" > < ListBox.ItemTemplate > < DataTemplate > < StackPanel Orientation ="Horizontal" Height ="100" Margin ="0,10,0,0" > < Image Source ="{Binding PictureURL}" Width ="80" Height ="100" Stretch ="Fill" DataContext ="{Binding}" HorizontalAlignment ="Left" VerticalAlignment ="Center" Margin ="0,0,10,0" /> < StackPanel Orientation ="Vertical" Height ="100" VerticalAlignment ="Top" > < StackPanel Orientation ="Horizontal" Height ="Auto" VerticalAlignment ="Top" > < TextBlock Width ="320" FontSize ="18" Text ="{Binding Name}" TextWrapping ="Wrap" VerticalAlignment ="Top" /> </ StackPanel > < StackPanel Orientation ="Horizontal" Height ="60" > < TextBlock Width ="320" FontSize ="32" Text ="{Binding PriceFormatted}" /> </ StackPanel > </ StackPanel > </ StackPanel > </ DataTemplate > </ ListBox.ItemTemplate > </ ListBox > </ Grid > < Button Content ="" Height ="72" Name ="button1" Width ="160" Margin ="288,17,8,28" Click ="button1_Click" /> </ Grid > </ controls:PivotItem > </ controls:Pivot > </ phone:PhoneApplicationPage > * This source code was highlighted with Source Code Highlighter .
  14. < phone:PhoneApplicationPage x:Class ="ozon.MainPage" xmlns ="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x ="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:phone ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" xmlns:shell ="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" xmlns:d ="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc ="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:controls ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls" mc:Ignorable ="d" d:DesignWidth ="480" d:DesignHeight ="768" FontFamily ="{StaticResource PhoneFontFamilyNormal}" FontSize ="{StaticResource PhoneFontSizeNormal}" Foreground ="{StaticResource PhoneForegroundBrush}" SupportedOrientations ="Portrait" Orientation ="Portrait" shell:SystemTray . IsVisible ="True" > < controls:Pivot > < controls:Pivot.Title > < TextBlock > OZON.RU </ TextBlock > </ controls:Pivot.Title > < controls:PivotItem Header ="" Foreground ="Black" > < Grid x:Name ="LayoutRoot" Background ="Transparent" > < Grid.RowDefinitions > < RowDefinition Height ="Auto" /> < RowDefinition Height ="*" /> </ Grid.RowDefinitions > < StackPanel x:Name ="TitlePanel" Grid . Row ="0" Margin ="12,17,0,28" UseLayoutRounding ="True" HorizontalAlignment ="Left" > < TextBox Grid . RowSpan ="2" Height ="72" Margin ="0,0,0,0" Name ="textBox1" Text ="" Width ="288" /> </ StackPanel > < Grid x:Name ="ContentPanel" Grid . Row ="1" Margin ="12,0,12,0" > < ListBox x:Name ="Results" Height ="Auto" HorizontalAlignment ="Left" Margin ="4,3,0,0" VerticalAlignment ="Top" Width ="423" > < ListBox.ItemTemplate > < DataTemplate > < StackPanel Orientation ="Horizontal" Height ="100" Margin ="0,10,0,0" > < Image Source ="{Binding PictureURL}" Width ="80" Height ="100" Stretch ="Fill" DataContext ="{Binding}" HorizontalAlignment ="Left" VerticalAlignment ="Center" Margin ="0,0,10,0" /> < StackPanel Orientation ="Vertical" Height ="100" VerticalAlignment ="Top" > < StackPanel Orientation ="Horizontal" Height ="Auto" VerticalAlignment ="Top" > < TextBlock Width ="320" FontSize ="18" Text ="{Binding Name}" TextWrapping ="Wrap" VerticalAlignment ="Top" /> </ StackPanel > < StackPanel Orientation ="Horizontal" Height ="60" > < TextBlock Width ="320" FontSize ="32" Text ="{Binding PriceFormatted}" /> </ StackPanel > </ StackPanel > </ StackPanel > </ DataTemplate > </ ListBox.ItemTemplate > </ ListBox > </ Grid > < Button Content ="" Height ="72" Name ="button1" Width ="160" Margin ="288,17,8,28" Click ="button1_Click" /> </ Grid > </ controls:PivotItem > </ controls:Pivot > </ phone:PhoneApplicationPage > * This source code was highlighted with Source Code Highlighter .
  15. < phone:PhoneApplicationPage x:Class ="ozon.MainPage" xmlns ="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x ="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:phone ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" xmlns:shell ="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" xmlns:d ="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc ="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:controls ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls" mc:Ignorable ="d" d:DesignWidth ="480" d:DesignHeight ="768" FontFamily ="{StaticResource PhoneFontFamilyNormal}" FontSize ="{StaticResource PhoneFontSizeNormal}" Foreground ="{StaticResource PhoneForegroundBrush}" SupportedOrientations ="Portrait" Orientation ="Portrait" shell:SystemTray . IsVisible ="True" > < controls:Pivot > < controls:Pivot.Title > < TextBlock > OZON.RU </ TextBlock > </ controls:Pivot.Title > < controls:PivotItem Header ="" Foreground ="Black" > < Grid x:Name ="LayoutRoot" Background ="Transparent" > < Grid.RowDefinitions > < RowDefinition Height ="Auto" /> < RowDefinition Height ="*" /> </ Grid.RowDefinitions > < StackPanel x:Name ="TitlePanel" Grid . Row ="0" Margin ="12,17,0,28" UseLayoutRounding ="True" HorizontalAlignment ="Left" > < TextBox Grid . RowSpan ="2" Height ="72" Margin ="0,0,0,0" Name ="textBox1" Text ="" Width ="288" /> </ StackPanel > < Grid x:Name ="ContentPanel" Grid . Row ="1" Margin ="12,0,12,0" > < ListBox x:Name ="Results" Height ="Auto" HorizontalAlignment ="Left" Margin ="4,3,0,0" VerticalAlignment ="Top" Width ="423" > < ListBox.ItemTemplate > < DataTemplate > < StackPanel Orientation ="Horizontal" Height ="100" Margin ="0,10,0,0" > < Image Source ="{Binding PictureURL}" Width ="80" Height ="100" Stretch ="Fill" DataContext ="{Binding}" HorizontalAlignment ="Left" VerticalAlignment ="Center" Margin ="0,0,10,0" /> < StackPanel Orientation ="Vertical" Height ="100" VerticalAlignment ="Top" > < StackPanel Orientation ="Horizontal" Height ="Auto" VerticalAlignment ="Top" > < TextBlock Width ="320" FontSize ="18" Text ="{Binding Name}" TextWrapping ="Wrap" VerticalAlignment ="Top" /> </ StackPanel > < StackPanel Orientation ="Horizontal" Height ="60" > < TextBlock Width ="320" FontSize ="32" Text ="{Binding PriceFormatted}" /> </ StackPanel > </ StackPanel > </ StackPanel > </ DataTemplate > </ ListBox.ItemTemplate > </ ListBox > </ Grid > < Button Content ="" Height ="72" Name ="button1" Width ="160" Margin ="288,17,8,28" Click ="button1_Click" /> </ Grid > </ controls:PivotItem > </ controls:Pivot > </ phone:PhoneApplicationPage > * This source code was highlighted with Source Code Highlighter .
  16. < phone:PhoneApplicationPage x:Class ="ozon.MainPage" xmlns ="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x ="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:phone ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" xmlns:shell ="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" xmlns:d ="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc ="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:controls ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls" mc:Ignorable ="d" d:DesignWidth ="480" d:DesignHeight ="768" FontFamily ="{StaticResource PhoneFontFamilyNormal}" FontSize ="{StaticResource PhoneFontSizeNormal}" Foreground ="{StaticResource PhoneForegroundBrush}" SupportedOrientations ="Portrait" Orientation ="Portrait" shell:SystemTray . IsVisible ="True" > < controls:Pivot > < controls:Pivot.Title > < TextBlock > OZON.RU </ TextBlock > </ controls:Pivot.Title > < controls:PivotItem Header ="" Foreground ="Black" > < Grid x:Name ="LayoutRoot" Background ="Transparent" > < Grid.RowDefinitions > < RowDefinition Height ="Auto" /> < RowDefinition Height ="*" /> </ Grid.RowDefinitions > < StackPanel x:Name ="TitlePanel" Grid . Row ="0" Margin ="12,17,0,28" UseLayoutRounding ="True" HorizontalAlignment ="Left" > < TextBox Grid . RowSpan ="2" Height ="72" Margin ="0,0,0,0" Name ="textBox1" Text ="" Width ="288" /> </ StackPanel > < Grid x:Name ="ContentPanel" Grid . Row ="1" Margin ="12,0,12,0" > < ListBox x:Name ="Results" Height ="Auto" HorizontalAlignment ="Left" Margin ="4,3,0,0" VerticalAlignment ="Top" Width ="423" > < ListBox.ItemTemplate > < DataTemplate > < StackPanel Orientation ="Horizontal" Height ="100" Margin ="0,10,0,0" > < Image Source ="{Binding PictureURL}" Width ="80" Height ="100" Stretch ="Fill" DataContext ="{Binding}" HorizontalAlignment ="Left" VerticalAlignment ="Center" Margin ="0,0,10,0" /> < StackPanel Orientation ="Vertical" Height ="100" VerticalAlignment ="Top" > < StackPanel Orientation ="Horizontal" Height ="Auto" VerticalAlignment ="Top" > < TextBlock Width ="320" FontSize ="18" Text ="{Binding Name}" TextWrapping ="Wrap" VerticalAlignment ="Top" /> </ StackPanel > < StackPanel Orientation ="Horizontal" Height ="60" > < TextBlock Width ="320" FontSize ="32" Text ="{Binding PriceFormatted}" /> </ StackPanel > </ StackPanel > </ StackPanel > </ DataTemplate > </ ListBox.ItemTemplate > </ ListBox > </ Grid > < Button Content ="" Height ="72" Name ="button1" Width ="160" Margin ="288,17,8,28" Click ="button1_Click" /> </ Grid > </ controls:PivotItem > </ controls:Pivot > </ phone:PhoneApplicationPage > * This source code was highlighted with Source Code Highlighter .
  17. < phone:PhoneApplicationPage x:Class ="ozon.MainPage" xmlns ="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x ="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:phone ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" xmlns:shell ="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" xmlns:d ="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc ="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:controls ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls" mc:Ignorable ="d" d:DesignWidth ="480" d:DesignHeight ="768" FontFamily ="{StaticResource PhoneFontFamilyNormal}" FontSize ="{StaticResource PhoneFontSizeNormal}" Foreground ="{StaticResource PhoneForegroundBrush}" SupportedOrientations ="Portrait" Orientation ="Portrait" shell:SystemTray . IsVisible ="True" > < controls:Pivot > < controls:Pivot.Title > < TextBlock > OZON.RU </ TextBlock > </ controls:Pivot.Title > < controls:PivotItem Header ="" Foreground ="Black" > < Grid x:Name ="LayoutRoot" Background ="Transparent" > < Grid.RowDefinitions > < RowDefinition Height ="Auto" /> < RowDefinition Height ="*" /> </ Grid.RowDefinitions > < StackPanel x:Name ="TitlePanel" Grid . Row ="0" Margin ="12,17,0,28" UseLayoutRounding ="True" HorizontalAlignment ="Left" > < TextBox Grid . RowSpan ="2" Height ="72" Margin ="0,0,0,0" Name ="textBox1" Text ="" Width ="288" /> </ StackPanel > < Grid x:Name ="ContentPanel" Grid . Row ="1" Margin ="12,0,12,0" > < ListBox x:Name ="Results" Height ="Auto" HorizontalAlignment ="Left" Margin ="4,3,0,0" VerticalAlignment ="Top" Width ="423" > < ListBox.ItemTemplate > < DataTemplate > < StackPanel Orientation ="Horizontal" Height ="100" Margin ="0,10,0,0" > < Image Source ="{Binding PictureURL}" Width ="80" Height ="100" Stretch ="Fill" DataContext ="{Binding}" HorizontalAlignment ="Left" VerticalAlignment ="Center" Margin ="0,0,10,0" /> < StackPanel Orientation ="Vertical" Height ="100" VerticalAlignment ="Top" > < StackPanel Orientation ="Horizontal" Height ="Auto" VerticalAlignment ="Top" > < TextBlock Width ="320" FontSize ="18" Text ="{Binding Name}" TextWrapping ="Wrap" VerticalAlignment ="Top" /> </ StackPanel > < StackPanel Orientation ="Horizontal" Height ="60" > < TextBlock Width ="320" FontSize ="32" Text ="{Binding PriceFormatted}" /> </ StackPanel > </ StackPanel > </ StackPanel > </ DataTemplate > </ ListBox.ItemTemplate > </ ListBox > </ Grid > < Button Content ="" Height ="72" Name ="button1" Width ="160" Margin ="288,17,8,28" Click ="button1_Click" /> </ Grid > </ controls:PivotItem > </ controls:Pivot > </ phone:PhoneApplicationPage > * This source code was highlighted with Source Code Highlighter .
  18. < phone:PhoneApplicationPage x:Class ="ozon.MainPage" xmlns ="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x ="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:phone ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" xmlns:shell ="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" xmlns:d ="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc ="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:controls ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls" mc:Ignorable ="d" d:DesignWidth ="480" d:DesignHeight ="768" FontFamily ="{StaticResource PhoneFontFamilyNormal}" FontSize ="{StaticResource PhoneFontSizeNormal}" Foreground ="{StaticResource PhoneForegroundBrush}" SupportedOrientations ="Portrait" Orientation ="Portrait" shell:SystemTray . IsVisible ="True" > < controls:Pivot > < controls:Pivot.Title > < TextBlock > OZON.RU </ TextBlock > </ controls:Pivot.Title > < controls:PivotItem Header ="" Foreground ="Black" > < Grid x:Name ="LayoutRoot" Background ="Transparent" > < Grid.RowDefinitions > < RowDefinition Height ="Auto" /> < RowDefinition Height ="*" /> </ Grid.RowDefinitions > < StackPanel x:Name ="TitlePanel" Grid . Row ="0" Margin ="12,17,0,28" UseLayoutRounding ="True" HorizontalAlignment ="Left" > < TextBox Grid . RowSpan ="2" Height ="72" Margin ="0,0,0,0" Name ="textBox1" Text ="" Width ="288" /> </ StackPanel > < Grid x:Name ="ContentPanel" Grid . Row ="1" Margin ="12,0,12,0" > < ListBox x:Name ="Results" Height ="Auto" HorizontalAlignment ="Left" Margin ="4,3,0,0" VerticalAlignment ="Top" Width ="423" > < ListBox.ItemTemplate > < DataTemplate > < StackPanel Orientation ="Horizontal" Height ="100" Margin ="0,10,0,0" > < Image Source ="{Binding PictureURL}" Width ="80" Height ="100" Stretch ="Fill" DataContext ="{Binding}" HorizontalAlignment ="Left" VerticalAlignment ="Center" Margin ="0,0,10,0" /> < StackPanel Orientation ="Vertical" Height ="100" VerticalAlignment ="Top" > < StackPanel Orientation ="Horizontal" Height ="Auto" VerticalAlignment ="Top" > < TextBlock Width ="320" FontSize ="18" Text ="{Binding Name}" TextWrapping ="Wrap" VerticalAlignment ="Top" /> </ StackPanel > < StackPanel Orientation ="Horizontal" Height ="60" > < TextBlock Width ="320" FontSize ="32" Text ="{Binding PriceFormatted}" /> </ StackPanel > </ StackPanel > </ StackPanel > </ DataTemplate > </ ListBox.ItemTemplate > </ ListBox > </ Grid > < Button Content ="" Height ="72" Name ="button1" Width ="160" Margin ="288,17,8,28" Click ="button1_Click" /> </ Grid > </ controls:PivotItem > </ controls:Pivot > </ phone:PhoneApplicationPage > * This source code was highlighted with Source Code Highlighter .
  19. < phone:PhoneApplicationPage x:Class ="ozon.MainPage" xmlns ="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x ="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:phone ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" xmlns:shell ="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" xmlns:d ="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc ="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:controls ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls" mc:Ignorable ="d" d:DesignWidth ="480" d:DesignHeight ="768" FontFamily ="{StaticResource PhoneFontFamilyNormal}" FontSize ="{StaticResource PhoneFontSizeNormal}" Foreground ="{StaticResource PhoneForegroundBrush}" SupportedOrientations ="Portrait" Orientation ="Portrait" shell:SystemTray . IsVisible ="True" > < controls:Pivot > < controls:Pivot.Title > < TextBlock > OZON.RU </ TextBlock > </ controls:Pivot.Title > < controls:PivotItem Header ="" Foreground ="Black" > < Grid x:Name ="LayoutRoot" Background ="Transparent" > < Grid.RowDefinitions > < RowDefinition Height ="Auto" /> < RowDefinition Height ="*" /> </ Grid.RowDefinitions > < StackPanel x:Name ="TitlePanel" Grid . Row ="0" Margin ="12,17,0,28" UseLayoutRounding ="True" HorizontalAlignment ="Left" > < TextBox Grid . RowSpan ="2" Height ="72" Margin ="0,0,0,0" Name ="textBox1" Text ="" Width ="288" /> </ StackPanel > < Grid x:Name ="ContentPanel" Grid . Row ="1" Margin ="12,0,12,0" > < ListBox x:Name ="Results" Height ="Auto" HorizontalAlignment ="Left" Margin ="4,3,0,0" VerticalAlignment ="Top" Width ="423" > < ListBox.ItemTemplate > < DataTemplate > < StackPanel Orientation ="Horizontal" Height ="100" Margin ="0,10,0,0" > < Image Source ="{Binding PictureURL}" Width ="80" Height ="100" Stretch ="Fill" DataContext ="{Binding}" HorizontalAlignment ="Left" VerticalAlignment ="Center" Margin ="0,0,10,0" /> < StackPanel Orientation ="Vertical" Height ="100" VerticalAlignment ="Top" > < StackPanel Orientation ="Horizontal" Height ="Auto" VerticalAlignment ="Top" > < TextBlock Width ="320" FontSize ="18" Text ="{Binding Name}" TextWrapping ="Wrap" VerticalAlignment ="Top" /> </ StackPanel > < StackPanel Orientation ="Horizontal" Height ="60" > < TextBlock Width ="320" FontSize ="32" Text ="{Binding PriceFormatted}" /> </ StackPanel > </ StackPanel > </ StackPanel > </ DataTemplate > </ ListBox.ItemTemplate > </ ListBox > </ Grid > < Button Content ="" Height ="72" Name ="button1" Width ="160" Margin ="288,17,8,28" Click ="button1_Click" /> </ Grid > </ controls:PivotItem > </ controls:Pivot > </ phone:PhoneApplicationPage > * This source code was highlighted with Source Code Highlighter .
  20. < phone:PhoneApplicationPage x:Class ="ozon.MainPage" xmlns ="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x ="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:phone ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" xmlns:shell ="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" xmlns:d ="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc ="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:controls ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls" mc:Ignorable ="d" d:DesignWidth ="480" d:DesignHeight ="768" FontFamily ="{StaticResource PhoneFontFamilyNormal}" FontSize ="{StaticResource PhoneFontSizeNormal}" Foreground ="{StaticResource PhoneForegroundBrush}" SupportedOrientations ="Portrait" Orientation ="Portrait" shell:SystemTray . IsVisible ="True" > < controls:Pivot > < controls:Pivot.Title > < TextBlock > OZON.RU </ TextBlock > </ controls:Pivot.Title > < controls:PivotItem Header ="" Foreground ="Black" > < Grid x:Name ="LayoutRoot" Background ="Transparent" > < Grid.RowDefinitions > < RowDefinition Height ="Auto" /> < RowDefinition Height ="*" /> </ Grid.RowDefinitions > < StackPanel x:Name ="TitlePanel" Grid . Row ="0" Margin ="12,17,0,28" UseLayoutRounding ="True" HorizontalAlignment ="Left" > < TextBox Grid . RowSpan ="2" Height ="72" Margin ="0,0,0,0" Name ="textBox1" Text ="" Width ="288" /> </ StackPanel > < Grid x:Name ="ContentPanel" Grid . Row ="1" Margin ="12,0,12,0" > < ListBox x:Name ="Results" Height ="Auto" HorizontalAlignment ="Left" Margin ="4,3,0,0" VerticalAlignment ="Top" Width ="423" > < ListBox.ItemTemplate > < DataTemplate > < StackPanel Orientation ="Horizontal" Height ="100" Margin ="0,10,0,0" > < Image Source ="{Binding PictureURL}" Width ="80" Height ="100" Stretch ="Fill" DataContext ="{Binding}" HorizontalAlignment ="Left" VerticalAlignment ="Center" Margin ="0,0,10,0" /> < StackPanel Orientation ="Vertical" Height ="100" VerticalAlignment ="Top" > < StackPanel Orientation ="Horizontal" Height ="Auto" VerticalAlignment ="Top" > < TextBlock Width ="320" FontSize ="18" Text ="{Binding Name}" TextWrapping ="Wrap" VerticalAlignment ="Top" /> </ StackPanel > < StackPanel Orientation ="Horizontal" Height ="60" > < TextBlock Width ="320" FontSize ="32" Text ="{Binding PriceFormatted}" /> </ StackPanel > </ StackPanel > </ StackPanel > </ DataTemplate > </ ListBox.ItemTemplate > </ ListBox > </ Grid > < Button Content ="" Height ="72" Name ="button1" Width ="160" Margin ="288,17,8,28" Click ="button1_Click" /> </ Grid > </ controls:PivotItem > </ controls:Pivot > </ phone:PhoneApplicationPage > * This source code was highlighted with Source Code Highlighter .
  21. < phone:PhoneApplicationPage x:Class ="ozon.MainPage" xmlns ="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x ="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:phone ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" xmlns:shell ="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" xmlns:d ="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc ="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:controls ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls" mc:Ignorable ="d" d:DesignWidth ="480" d:DesignHeight ="768" FontFamily ="{StaticResource PhoneFontFamilyNormal}" FontSize ="{StaticResource PhoneFontSizeNormal}" Foreground ="{StaticResource PhoneForegroundBrush}" SupportedOrientations ="Portrait" Orientation ="Portrait" shell:SystemTray . IsVisible ="True" > < controls:Pivot > < controls:Pivot.Title > < TextBlock > OZON.RU </ TextBlock > </ controls:Pivot.Title > < controls:PivotItem Header ="" Foreground ="Black" > < Grid x:Name ="LayoutRoot" Background ="Transparent" > < Grid.RowDefinitions > < RowDefinition Height ="Auto" /> < RowDefinition Height ="*" /> </ Grid.RowDefinitions > < StackPanel x:Name ="TitlePanel" Grid . Row ="0" Margin ="12,17,0,28" UseLayoutRounding ="True" HorizontalAlignment ="Left" > < TextBox Grid . RowSpan ="2" Height ="72" Margin ="0,0,0,0" Name ="textBox1" Text ="" Width ="288" /> </ StackPanel > < Grid x:Name ="ContentPanel" Grid . Row ="1" Margin ="12,0,12,0" > < ListBox x:Name ="Results" Height ="Auto" HorizontalAlignment ="Left" Margin ="4,3,0,0" VerticalAlignment ="Top" Width ="423" > < ListBox.ItemTemplate > < DataTemplate > < StackPanel Orientation ="Horizontal" Height ="100" Margin ="0,10,0,0" > < Image Source ="{Binding PictureURL}" Width ="80" Height ="100" Stretch ="Fill" DataContext ="{Binding}" HorizontalAlignment ="Left" VerticalAlignment ="Center" Margin ="0,0,10,0" /> < StackPanel Orientation ="Vertical" Height ="100" VerticalAlignment ="Top" > < StackPanel Orientation ="Horizontal" Height ="Auto" VerticalAlignment ="Top" > < TextBlock Width ="320" FontSize ="18" Text ="{Binding Name}" TextWrapping ="Wrap" VerticalAlignment ="Top" /> </ StackPanel > < StackPanel Orientation ="Horizontal" Height ="60" > < TextBlock Width ="320" FontSize ="32" Text ="{Binding PriceFormatted}" /> </ StackPanel > </ StackPanel > </ StackPanel > </ DataTemplate > </ ListBox.ItemTemplate > </ ListBox > </ Grid > < Button Content ="" Height ="72" Name ="button1" Width ="160" Margin ="288,17,8,28" Click ="button1_Click" /> </ Grid > </ controls:PivotItem > </ controls:Pivot > </ phone:PhoneApplicationPage > * This source code was highlighted with Source Code Highlighter .
  22. < phone:PhoneApplicationPage x:Class ="ozon.MainPage" xmlns ="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x ="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:phone ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" xmlns:shell ="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" xmlns:d ="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc ="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:controls ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls" mc:Ignorable ="d" d:DesignWidth ="480" d:DesignHeight ="768" FontFamily ="{StaticResource PhoneFontFamilyNormal}" FontSize ="{StaticResource PhoneFontSizeNormal}" Foreground ="{StaticResource PhoneForegroundBrush}" SupportedOrientations ="Portrait" Orientation ="Portrait" shell:SystemTray . IsVisible ="True" > < controls:Pivot > < controls:Pivot.Title > < TextBlock > OZON.RU </ TextBlock > </ controls:Pivot.Title > < controls:PivotItem Header ="" Foreground ="Black" > < Grid x:Name ="LayoutRoot" Background ="Transparent" > < Grid.RowDefinitions > < RowDefinition Height ="Auto" /> < RowDefinition Height ="*" /> </ Grid.RowDefinitions > < StackPanel x:Name ="TitlePanel" Grid . Row ="0" Margin ="12,17,0,28" UseLayoutRounding ="True" HorizontalAlignment ="Left" > < TextBox Grid . RowSpan ="2" Height ="72" Margin ="0,0,0,0" Name ="textBox1" Text ="" Width ="288" /> </ StackPanel > < Grid x:Name ="ContentPanel" Grid . Row ="1" Margin ="12,0,12,0" > < ListBox x:Name ="Results" Height ="Auto" HorizontalAlignment ="Left" Margin ="4,3,0,0" VerticalAlignment ="Top" Width ="423" > < ListBox.ItemTemplate > < DataTemplate > < StackPanel Orientation ="Horizontal" Height ="100" Margin ="0,10,0,0" > < Image Source ="{Binding PictureURL}" Width ="80" Height ="100" Stretch ="Fill" DataContext ="{Binding}" HorizontalAlignment ="Left" VerticalAlignment ="Center" Margin ="0,0,10,0" /> < StackPanel Orientation ="Vertical" Height ="100" VerticalAlignment ="Top" > < StackPanel Orientation ="Horizontal" Height ="Auto" VerticalAlignment ="Top" > < TextBlock Width ="320" FontSize ="18" Text ="{Binding Name}" TextWrapping ="Wrap" VerticalAlignment ="Top" /> </ StackPanel > < StackPanel Orientation ="Horizontal" Height ="60" > < TextBlock Width ="320" FontSize ="32" Text ="{Binding PriceFormatted}" /> </ StackPanel > </ StackPanel > </ StackPanel > </ DataTemplate > </ ListBox.ItemTemplate > </ ListBox > </ Grid > < Button Content ="" Height ="72" Name ="button1" Width ="160" Margin ="288,17,8,28" Click ="button1_Click" /> </ Grid > </ controls:PivotItem > </ controls:Pivot > </ phone:PhoneApplicationPage > * This source code was highlighted with Source Code Highlighter .
  23. < phone:PhoneApplicationPage x:Class ="ozon.MainPage" xmlns ="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x ="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:phone ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" xmlns:shell ="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" xmlns:d ="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc ="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:controls ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls" mc:Ignorable ="d" d:DesignWidth ="480" d:DesignHeight ="768" FontFamily ="{StaticResource PhoneFontFamilyNormal}" FontSize ="{StaticResource PhoneFontSizeNormal}" Foreground ="{StaticResource PhoneForegroundBrush}" SupportedOrientations ="Portrait" Orientation ="Portrait" shell:SystemTray . IsVisible ="True" > < controls:Pivot > < controls:Pivot.Title > < TextBlock > OZON.RU </ TextBlock > </ controls:Pivot.Title > < controls:PivotItem Header ="" Foreground ="Black" > < Grid x:Name ="LayoutRoot" Background ="Transparent" > < Grid.RowDefinitions > < RowDefinition Height ="Auto" /> < RowDefinition Height ="*" /> </ Grid.RowDefinitions > < StackPanel x:Name ="TitlePanel" Grid . Row ="0" Margin ="12,17,0,28" UseLayoutRounding ="True" HorizontalAlignment ="Left" > < TextBox Grid . RowSpan ="2" Height ="72" Margin ="0,0,0,0" Name ="textBox1" Text ="" Width ="288" /> </ StackPanel > < Grid x:Name ="ContentPanel" Grid . Row ="1" Margin ="12,0,12,0" > < ListBox x:Name ="Results" Height ="Auto" HorizontalAlignment ="Left" Margin ="4,3,0,0" VerticalAlignment ="Top" Width ="423" > < ListBox.ItemTemplate > < DataTemplate > < StackPanel Orientation ="Horizontal" Height ="100" Margin ="0,10,0,0" > < Image Source ="{Binding PictureURL}" Width ="80" Height ="100" Stretch ="Fill" DataContext ="{Binding}" HorizontalAlignment ="Left" VerticalAlignment ="Center" Margin ="0,0,10,0" /> < StackPanel Orientation ="Vertical" Height ="100" VerticalAlignment ="Top" > < StackPanel Orientation ="Horizontal" Height ="Auto" VerticalAlignment ="Top" > < TextBlock Width ="320" FontSize ="18" Text ="{Binding Name}" TextWrapping ="Wrap" VerticalAlignment ="Top" /> </ StackPanel > < StackPanel Orientation ="Horizontal" Height ="60" > < TextBlock Width ="320" FontSize ="32" Text ="{Binding PriceFormatted}" /> </ StackPanel > </ StackPanel > </ StackPanel > </ DataTemplate > </ ListBox.ItemTemplate > </ ListBox > </ Grid > < Button Content ="" Height ="72" Name ="button1" Width ="160" Margin ="288,17,8,28" Click ="button1_Click" /> </ Grid > </ controls:PivotItem > </ controls:Pivot > </ phone:PhoneApplicationPage > * This source code was highlighted with Source Code Highlighter .
  24. < phone:PhoneApplicationPage x:Class ="ozon.MainPage" xmlns ="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x ="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:phone ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" xmlns:shell ="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" xmlns:d ="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc ="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:controls ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls" mc:Ignorable ="d" d:DesignWidth ="480" d:DesignHeight ="768" FontFamily ="{StaticResource PhoneFontFamilyNormal}" FontSize ="{StaticResource PhoneFontSizeNormal}" Foreground ="{StaticResource PhoneForegroundBrush}" SupportedOrientations ="Portrait" Orientation ="Portrait" shell:SystemTray . IsVisible ="True" > < controls:Pivot > < controls:Pivot.Title > < TextBlock > OZON.RU </ TextBlock > </ controls:Pivot.Title > < controls:PivotItem Header ="" Foreground ="Black" > < Grid x:Name ="LayoutRoot" Background ="Transparent" > < Grid.RowDefinitions > < RowDefinition Height ="Auto" /> < RowDefinition Height ="*" /> </ Grid.RowDefinitions > < StackPanel x:Name ="TitlePanel" Grid . Row ="0" Margin ="12,17,0,28" UseLayoutRounding ="True" HorizontalAlignment ="Left" > < TextBox Grid . RowSpan ="2" Height ="72" Margin ="0,0,0,0" Name ="textBox1" Text ="" Width ="288" /> </ StackPanel > < Grid x:Name ="ContentPanel" Grid . Row ="1" Margin ="12,0,12,0" > < ListBox x:Name ="Results" Height ="Auto" HorizontalAlignment ="Left" Margin ="4,3,0,0" VerticalAlignment ="Top" Width ="423" > < ListBox.ItemTemplate > < DataTemplate > < StackPanel Orientation ="Horizontal" Height ="100" Margin ="0,10,0,0" > < Image Source ="{Binding PictureURL}" Width ="80" Height ="100" Stretch ="Fill" DataContext ="{Binding}" HorizontalAlignment ="Left" VerticalAlignment ="Center" Margin ="0,0,10,0" /> < StackPanel Orientation ="Vertical" Height ="100" VerticalAlignment ="Top" > < StackPanel Orientation ="Horizontal" Height ="Auto" VerticalAlignment ="Top" > < TextBlock Width ="320" FontSize ="18" Text ="{Binding Name}" TextWrapping ="Wrap" VerticalAlignment ="Top" /> </ StackPanel > < StackPanel Orientation ="Horizontal" Height ="60" > < TextBlock Width ="320" FontSize ="32" Text ="{Binding PriceFormatted}" /> </ StackPanel > </ StackPanel > </ StackPanel > </ DataTemplate > </ ListBox.ItemTemplate > </ ListBox > </ Grid > < Button Content ="" Height ="72" Name ="button1" Width ="160" Margin ="288,17,8,28" Click ="button1_Click" /> </ Grid > </ controls:PivotItem > </ controls:Pivot > </ phone:PhoneApplicationPage > * This source code was highlighted with Source Code Highlighter .
  25. < phone:PhoneApplicationPage x:Class ="ozon.MainPage" xmlns ="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x ="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:phone ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" xmlns:shell ="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" xmlns:d ="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc ="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:controls ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls" mc:Ignorable ="d" d:DesignWidth ="480" d:DesignHeight ="768" FontFamily ="{StaticResource PhoneFontFamilyNormal}" FontSize ="{StaticResource PhoneFontSizeNormal}" Foreground ="{StaticResource PhoneForegroundBrush}" SupportedOrientations ="Portrait" Orientation ="Portrait" shell:SystemTray . IsVisible ="True" > < controls:Pivot > < controls:Pivot.Title > < TextBlock > OZON.RU </ TextBlock > </ controls:Pivot.Title > < controls:PivotItem Header ="" Foreground ="Black" > < Grid x:Name ="LayoutRoot" Background ="Transparent" > < Grid.RowDefinitions > < RowDefinition Height ="Auto" /> < RowDefinition Height ="*" /> </ Grid.RowDefinitions > < StackPanel x:Name ="TitlePanel" Grid . Row ="0" Margin ="12,17,0,28" UseLayoutRounding ="True" HorizontalAlignment ="Left" > < TextBox Grid . RowSpan ="2" Height ="72" Margin ="0,0,0,0" Name ="textBox1" Text ="" Width ="288" /> </ StackPanel > < Grid x:Name ="ContentPanel" Grid . Row ="1" Margin ="12,0,12,0" > < ListBox x:Name ="Results" Height ="Auto" HorizontalAlignment ="Left" Margin ="4,3,0,0" VerticalAlignment ="Top" Width ="423" > < ListBox.ItemTemplate > < DataTemplate > < StackPanel Orientation ="Horizontal" Height ="100" Margin ="0,10,0,0" > < Image Source ="{Binding PictureURL}" Width ="80" Height ="100" Stretch ="Fill" DataContext ="{Binding}" HorizontalAlignment ="Left" VerticalAlignment ="Center" Margin ="0,0,10,0" /> < StackPanel Orientation ="Vertical" Height ="100" VerticalAlignment ="Top" > < StackPanel Orientation ="Horizontal" Height ="Auto" VerticalAlignment ="Top" > < TextBlock Width ="320" FontSize ="18" Text ="{Binding Name}" TextWrapping ="Wrap" VerticalAlignment ="Top" /> </ StackPanel > < StackPanel Orientation ="Horizontal" Height ="60" > < TextBlock Width ="320" FontSize ="32" Text ="{Binding PriceFormatted}" /> </ StackPanel > </ StackPanel > </ StackPanel > </ DataTemplate > </ ListBox.ItemTemplate > </ ListBox > </ Grid > < Button Content ="" Height ="72" Name ="button1" Width ="160" Margin ="288,17,8,28" Click ="button1_Click" /> </ Grid > </ controls:PivotItem > </ controls:Pivot > </ phone:PhoneApplicationPage > * This source code was highlighted with Source Code Highlighter .
  26. < phone:PhoneApplicationPage x:Class ="ozon.MainPage" xmlns ="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x ="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:phone ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" xmlns:shell ="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" xmlns:d ="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc ="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:controls ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls" mc:Ignorable ="d" d:DesignWidth ="480" d:DesignHeight ="768" FontFamily ="{StaticResource PhoneFontFamilyNormal}" FontSize ="{StaticResource PhoneFontSizeNormal}" Foreground ="{StaticResource PhoneForegroundBrush}" SupportedOrientations ="Portrait" Orientation ="Portrait" shell:SystemTray . IsVisible ="True" > < controls:Pivot > < controls:Pivot.Title > < TextBlock > OZON.RU </ TextBlock > </ controls:Pivot.Title > < controls:PivotItem Header ="" Foreground ="Black" > < Grid x:Name ="LayoutRoot" Background ="Transparent" > < Grid.RowDefinitions > < RowDefinition Height ="Auto" /> < RowDefinition Height ="*" /> </ Grid.RowDefinitions > < StackPanel x:Name ="TitlePanel" Grid . Row ="0" Margin ="12,17,0,28" UseLayoutRounding ="True" HorizontalAlignment ="Left" > < TextBox Grid . RowSpan ="2" Height ="72" Margin ="0,0,0,0" Name ="textBox1" Text ="" Width ="288" /> </ StackPanel > < Grid x:Name ="ContentPanel" Grid . Row ="1" Margin ="12,0,12,0" > < ListBox x:Name ="Results" Height ="Auto" HorizontalAlignment ="Left" Margin ="4,3,0,0" VerticalAlignment ="Top" Width ="423" > < ListBox.ItemTemplate > < DataTemplate > < StackPanel Orientation ="Horizontal" Height ="100" Margin ="0,10,0,0" > < Image Source ="{Binding PictureURL}" Width ="80" Height ="100" Stretch ="Fill" DataContext ="{Binding}" HorizontalAlignment ="Left" VerticalAlignment ="Center" Margin ="0,0,10,0" /> < StackPanel Orientation ="Vertical" Height ="100" VerticalAlignment ="Top" > < StackPanel Orientation ="Horizontal" Height ="Auto" VerticalAlignment ="Top" > < TextBlock Width ="320" FontSize ="18" Text ="{Binding Name}" TextWrapping ="Wrap" VerticalAlignment ="Top" /> </ StackPanel > < StackPanel Orientation ="Horizontal" Height ="60" > < TextBlock Width ="320" FontSize ="32" Text ="{Binding PriceFormatted}" /> </ StackPanel > </ StackPanel > </ StackPanel > </ DataTemplate > </ ListBox.ItemTemplate > </ ListBox > </ Grid > < Button Content ="" Height ="72" Name ="button1" Width ="160" Margin ="288,17,8,28" Click ="button1_Click" /> </ Grid > </ controls:PivotItem > </ controls:Pivot > </ phone:PhoneApplicationPage > * This source code was highlighted with Source Code Highlighter .
  27. < phone:PhoneApplicationPage x:Class ="ozon.MainPage" xmlns ="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x ="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:phone ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" xmlns:shell ="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" xmlns:d ="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc ="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:controls ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls" mc:Ignorable ="d" d:DesignWidth ="480" d:DesignHeight ="768" FontFamily ="{StaticResource PhoneFontFamilyNormal}" FontSize ="{StaticResource PhoneFontSizeNormal}" Foreground ="{StaticResource PhoneForegroundBrush}" SupportedOrientations ="Portrait" Orientation ="Portrait" shell:SystemTray . IsVisible ="True" > < controls:Pivot > < controls:Pivot.Title > < TextBlock > OZON.RU </ TextBlock > </ controls:Pivot.Title > < controls:PivotItem Header ="" Foreground ="Black" > < Grid x:Name ="LayoutRoot" Background ="Transparent" > < Grid.RowDefinitions > < RowDefinition Height ="Auto" /> < RowDefinition Height ="*" /> </ Grid.RowDefinitions > < StackPanel x:Name ="TitlePanel" Grid . Row ="0" Margin ="12,17,0,28" UseLayoutRounding ="True" HorizontalAlignment ="Left" > < TextBox Grid . RowSpan ="2" Height ="72" Margin ="0,0,0,0" Name ="textBox1" Text ="" Width ="288" /> </ StackPanel > < Grid x:Name ="ContentPanel" Grid . Row ="1" Margin ="12,0,12,0" > < ListBox x:Name ="Results" Height ="Auto" HorizontalAlignment ="Left" Margin ="4,3,0,0" VerticalAlignment ="Top" Width ="423" > < ListBox.ItemTemplate > < DataTemplate > < StackPanel Orientation ="Horizontal" Height ="100" Margin ="0,10,0,0" > < Image Source ="{Binding PictureURL}" Width ="80" Height ="100" Stretch ="Fill" DataContext ="{Binding}" HorizontalAlignment ="Left" VerticalAlignment ="Center" Margin ="0,0,10,0" /> < StackPanel Orientation ="Vertical" Height ="100" VerticalAlignment ="Top" > < StackPanel Orientation ="Horizontal" Height ="Auto" VerticalAlignment ="Top" > < TextBlock Width ="320" FontSize ="18" Text ="{Binding Name}" TextWrapping ="Wrap" VerticalAlignment ="Top" /> </ StackPanel > < StackPanel Orientation ="Horizontal" Height ="60" > < TextBlock Width ="320" FontSize ="32" Text ="{Binding PriceFormatted}" /> </ StackPanel > </ StackPanel > </ StackPanel > </ DataTemplate > </ ListBox.ItemTemplate > </ ListBox > </ Grid > < Button Content ="" Height ="72" Name ="button1" Width ="160" Margin ="288,17,8,28" Click ="button1_Click" /> </ Grid > </ controls:PivotItem > </ controls:Pivot > </ phone:PhoneApplicationPage > * This source code was highlighted with Source Code Highlighter .
  28. < phone:PhoneApplicationPage x:Class ="ozon.MainPage" xmlns ="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x ="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:phone ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" xmlns:shell ="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" xmlns:d ="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc ="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:controls ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls" mc:Ignorable ="d" d:DesignWidth ="480" d:DesignHeight ="768" FontFamily ="{StaticResource PhoneFontFamilyNormal}" FontSize ="{StaticResource PhoneFontSizeNormal}" Foreground ="{StaticResource PhoneForegroundBrush}" SupportedOrientations ="Portrait" Orientation ="Portrait" shell:SystemTray . IsVisible ="True" > < controls:Pivot > < controls:Pivot.Title > < TextBlock > OZON.RU </ TextBlock > </ controls:Pivot.Title > < controls:PivotItem Header ="" Foreground ="Black" > < Grid x:Name ="LayoutRoot" Background ="Transparent" > < Grid.RowDefinitions > < RowDefinition Height ="Auto" /> < RowDefinition Height ="*" /> </ Grid.RowDefinitions > < StackPanel x:Name ="TitlePanel" Grid . Row ="0" Margin ="12,17,0,28" UseLayoutRounding ="True" HorizontalAlignment ="Left" > < TextBox Grid . RowSpan ="2" Height ="72" Margin ="0,0,0,0" Name ="textBox1" Text ="" Width ="288" /> </ StackPanel > < Grid x:Name ="ContentPanel" Grid . Row ="1" Margin ="12,0,12,0" > < ListBox x:Name ="Results" Height ="Auto" HorizontalAlignment ="Left" Margin ="4,3,0,0" VerticalAlignment ="Top" Width ="423" > < ListBox.ItemTemplate > < DataTemplate > < StackPanel Orientation ="Horizontal" Height ="100" Margin ="0,10,0,0" > < Image Source ="{Binding PictureURL}" Width ="80" Height ="100" Stretch ="Fill" DataContext ="{Binding}" HorizontalAlignment ="Left" VerticalAlignment ="Center" Margin ="0,0,10,0" /> < StackPanel Orientation ="Vertical" Height ="100" VerticalAlignment ="Top" > < StackPanel Orientation ="Horizontal" Height ="Auto" VerticalAlignment ="Top" > < TextBlock Width ="320" FontSize ="18" Text ="{Binding Name}" TextWrapping ="Wrap" VerticalAlignment ="Top" /> </ StackPanel > < StackPanel Orientation ="Horizontal" Height ="60" > < TextBlock Width ="320" FontSize ="32" Text ="{Binding PriceFormatted}" /> </ StackPanel > </ StackPanel > </ StackPanel > </ DataTemplate > </ ListBox.ItemTemplate > </ ListBox > </ Grid > < Button Content ="" Height ="72" Name ="button1" Width ="160" Margin ="288,17,8,28" Click ="button1_Click" /> </ Grid > </ controls:PivotItem > </ controls:Pivot > </ phone:PhoneApplicationPage > * This source code was highlighted with Source Code Highlighter .
  29. < phone:PhoneApplicationPage x:Class ="ozon.MainPage" xmlns ="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x ="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:phone ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" xmlns:shell ="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" xmlns:d ="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc ="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:controls ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls" mc:Ignorable ="d" d:DesignWidth ="480" d:DesignHeight ="768" FontFamily ="{StaticResource PhoneFontFamilyNormal}" FontSize ="{StaticResource PhoneFontSizeNormal}" Foreground ="{StaticResource PhoneForegroundBrush}" SupportedOrientations ="Portrait" Orientation ="Portrait" shell:SystemTray . IsVisible ="True" > < controls:Pivot > < controls:Pivot.Title > < TextBlock > OZON.RU </ TextBlock > </ controls:Pivot.Title > < controls:PivotItem Header ="" Foreground ="Black" > < Grid x:Name ="LayoutRoot" Background ="Transparent" > < Grid.RowDefinitions > < RowDefinition Height ="Auto" /> < RowDefinition Height ="*" /> </ Grid.RowDefinitions > < StackPanel x:Name ="TitlePanel" Grid . Row ="0" Margin ="12,17,0,28" UseLayoutRounding ="True" HorizontalAlignment ="Left" > < TextBox Grid . RowSpan ="2" Height ="72" Margin ="0,0,0,0" Name ="textBox1" Text ="" Width ="288" /> </ StackPanel > < Grid x:Name ="ContentPanel" Grid . Row ="1" Margin ="12,0,12,0" > < ListBox x:Name ="Results" Height ="Auto" HorizontalAlignment ="Left" Margin ="4,3,0,0" VerticalAlignment ="Top" Width ="423" > < ListBox.ItemTemplate > < DataTemplate > < StackPanel Orientation ="Horizontal" Height ="100" Margin ="0,10,0,0" > < Image Source ="{Binding PictureURL}" Width ="80" Height ="100" Stretch ="Fill" DataContext ="{Binding}" HorizontalAlignment ="Left" VerticalAlignment ="Center" Margin ="0,0,10,0" /> < StackPanel Orientation ="Vertical" Height ="100" VerticalAlignment ="Top" > < StackPanel Orientation ="Horizontal" Height ="Auto" VerticalAlignment ="Top" > < TextBlock Width ="320" FontSize ="18" Text ="{Binding Name}" TextWrapping ="Wrap" VerticalAlignment ="Top" /> </ StackPanel > < StackPanel Orientation ="Horizontal" Height ="60" > < TextBlock Width ="320" FontSize ="32" Text ="{Binding PriceFormatted}" /> </ StackPanel > </ StackPanel > </ StackPanel > </ DataTemplate > </ ListBox.ItemTemplate > </ ListBox > </ Grid > < Button Content ="" Height ="72" Name ="button1" Width ="160" Margin ="288,17,8,28" Click ="button1_Click" /> </ Grid > </ controls:PivotItem > </ controls:Pivot > </ phone:PhoneApplicationPage > * This source code was highlighted with Source Code Highlighter .
  30. < phone:PhoneApplicationPage x:Class ="ozon.MainPage" xmlns ="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x ="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:phone ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" xmlns:shell ="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" xmlns:d ="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc ="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:controls ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls" mc:Ignorable ="d" d:DesignWidth ="480" d:DesignHeight ="768" FontFamily ="{StaticResource PhoneFontFamilyNormal}" FontSize ="{StaticResource PhoneFontSizeNormal}" Foreground ="{StaticResource PhoneForegroundBrush}" SupportedOrientations ="Portrait" Orientation ="Portrait" shell:SystemTray . IsVisible ="True" > < controls:Pivot > < controls:Pivot.Title > < TextBlock > OZON.RU </ TextBlock > </ controls:Pivot.Title > < controls:PivotItem Header ="" Foreground ="Black" > < Grid x:Name ="LayoutRoot" Background ="Transparent" > < Grid.RowDefinitions > < RowDefinition Height ="Auto" /> < RowDefinition Height ="*" /> </ Grid.RowDefinitions > < StackPanel x:Name ="TitlePanel" Grid . Row ="0" Margin ="12,17,0,28" UseLayoutRounding ="True" HorizontalAlignment ="Left" > < TextBox Grid . RowSpan ="2" Height ="72" Margin ="0,0,0,0" Name ="textBox1" Text ="" Width ="288" /> </ StackPanel > < Grid x:Name ="ContentPanel" Grid . Row ="1" Margin ="12,0,12,0" > < ListBox x:Name ="Results" Height ="Auto" HorizontalAlignment ="Left" Margin ="4,3,0,0" VerticalAlignment ="Top" Width ="423" > < ListBox.ItemTemplate > < DataTemplate > < StackPanel Orientation ="Horizontal" Height ="100" Margin ="0,10,0,0" > < Image Source ="{Binding PictureURL}" Width ="80" Height ="100" Stretch ="Fill" DataContext ="{Binding}" HorizontalAlignment ="Left" VerticalAlignment ="Center" Margin ="0,0,10,0" /> < StackPanel Orientation ="Vertical" Height ="100" VerticalAlignment ="Top" > < StackPanel Orientation ="Horizontal" Height ="Auto" VerticalAlignment ="Top" > < TextBlock Width ="320" FontSize ="18" Text ="{Binding Name}" TextWrapping ="Wrap" VerticalAlignment ="Top" /> </ StackPanel > < StackPanel Orientation ="Horizontal" Height ="60" > < TextBlock Width ="320" FontSize ="32" Text ="{Binding PriceFormatted}" /> </ StackPanel > </ StackPanel > </ StackPanel > </ DataTemplate > </ ListBox.ItemTemplate > </ ListBox > </ Grid > < Button Content ="" Height ="72" Name ="button1" Width ="160" Margin ="288,17,8,28" Click ="button1_Click" /> </ Grid > </ controls:PivotItem > </ controls:Pivot > </ phone:PhoneApplicationPage > * This source code was highlighted with Source Code Highlighter .
  31. < phone:PhoneApplicationPage x:Class ="ozon.MainPage" xmlns ="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x ="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:phone ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" xmlns:shell ="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" xmlns:d ="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc ="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:controls ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls" mc:Ignorable ="d" d:DesignWidth ="480" d:DesignHeight ="768" FontFamily ="{StaticResource PhoneFontFamilyNormal}" FontSize ="{StaticResource PhoneFontSizeNormal}" Foreground ="{StaticResource PhoneForegroundBrush}" SupportedOrientations ="Portrait" Orientation ="Portrait" shell:SystemTray . IsVisible ="True" > < controls:Pivot > < controls:Pivot.Title > < TextBlock > OZON.RU </ TextBlock > </ controls:Pivot.Title > < controls:PivotItem Header ="" Foreground ="Black" > < Grid x:Name ="LayoutRoot" Background ="Transparent" > < Grid.RowDefinitions > < RowDefinition Height ="Auto" /> < RowDefinition Height ="*" /> </ Grid.RowDefinitions > < StackPanel x:Name ="TitlePanel" Grid . Row ="0" Margin ="12,17,0,28" UseLayoutRounding ="True" HorizontalAlignment ="Left" > < TextBox Grid . RowSpan ="2" Height ="72" Margin ="0,0,0,0" Name ="textBox1" Text ="" Width ="288" /> </ StackPanel > < Grid x:Name ="ContentPanel" Grid . Row ="1" Margin ="12,0,12,0" > < ListBox x:Name ="Results" Height ="Auto" HorizontalAlignment ="Left" Margin ="4,3,0,0" VerticalAlignment ="Top" Width ="423" > < ListBox.ItemTemplate > < DataTemplate > < StackPanel Orientation ="Horizontal" Height ="100" Margin ="0,10,0,0" > < Image Source ="{Binding PictureURL}" Width ="80" Height ="100" Stretch ="Fill" DataContext ="{Binding}" HorizontalAlignment ="Left" VerticalAlignment ="Center" Margin ="0,0,10,0" /> < StackPanel Orientation ="Vertical" Height ="100" VerticalAlignment ="Top" > < StackPanel Orientation ="Horizontal" Height ="Auto" VerticalAlignment ="Top" > < TextBlock Width ="320" FontSize ="18" Text ="{Binding Name}" TextWrapping ="Wrap" VerticalAlignment ="Top" /> </ StackPanel > < StackPanel Orientation ="Horizontal" Height ="60" > < TextBlock Width ="320" FontSize ="32" Text ="{Binding PriceFormatted}" /> </ StackPanel > </ StackPanel > </ StackPanel > </ DataTemplate > </ ListBox.ItemTemplate > </ ListBox > </ Grid > < Button Content ="" Height ="72" Name ="button1" Width ="160" Margin ="288,17,8,28" Click ="button1_Click" /> </ Grid > </ controls:PivotItem > </ controls:Pivot > </ phone:PhoneApplicationPage > * This source code was highlighted with Source Code Highlighter .
  32. < phone:PhoneApplicationPage x:Class ="ozon.MainPage" xmlns ="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x ="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:phone ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" xmlns:shell ="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" xmlns:d ="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc ="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:controls ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls" mc:Ignorable ="d" d:DesignWidth ="480" d:DesignHeight ="768" FontFamily ="{StaticResource PhoneFontFamilyNormal}" FontSize ="{StaticResource PhoneFontSizeNormal}" Foreground ="{StaticResource PhoneForegroundBrush}" SupportedOrientations ="Portrait" Orientation ="Portrait" shell:SystemTray . IsVisible ="True" > < controls:Pivot > < controls:Pivot.Title > < TextBlock > OZON.RU </ TextBlock > </ controls:Pivot.Title > < controls:PivotItem Header ="" Foreground ="Black" > < Grid x:Name ="LayoutRoot" Background ="Transparent" > < Grid.RowDefinitions > < RowDefinition Height ="Auto" /> < RowDefinition Height ="*" /> </ Grid.RowDefinitions > < StackPanel x:Name ="TitlePanel" Grid . Row ="0" Margin ="12,17,0,28" UseLayoutRounding ="True" HorizontalAlignment ="Left" > < TextBox Grid . RowSpan ="2" Height ="72" Margin ="0,0,0,0" Name ="textBox1" Text ="" Width ="288" /> </ StackPanel > < Grid x:Name ="ContentPanel" Grid . Row ="1" Margin ="12,0,12,0" > < ListBox x:Name ="Results" Height ="Auto" HorizontalAlignment ="Left" Margin ="4,3,0,0" VerticalAlignment ="Top" Width ="423" > < ListBox.ItemTemplate > < DataTemplate > < StackPanel Orientation ="Horizontal" Height ="100" Margin ="0,10,0,0" > < Image Source ="{Binding PictureURL}" Width ="80" Height ="100" Stretch ="Fill" DataContext ="{Binding}" HorizontalAlignment ="Left" VerticalAlignment ="Center" Margin ="0,0,10,0" /> < StackPanel Orientation ="Vertical" Height ="100" VerticalAlignment ="Top" > < StackPanel Orientation ="Horizontal" Height ="Auto" VerticalAlignment ="Top" > < TextBlock Width ="320" FontSize ="18" Text ="{Binding Name}" TextWrapping ="Wrap" VerticalAlignment ="Top" /> </ StackPanel > < StackPanel Orientation ="Horizontal" Height ="60" > < TextBlock Width ="320" FontSize ="32" Text ="{Binding PriceFormatted}" /> </ StackPanel > </ StackPanel > </ StackPanel > </ DataTemplate > </ ListBox.ItemTemplate > </ ListBox > </ Grid > < Button Content ="" Height ="72" Name ="button1" Width ="160" Margin ="288,17,8,28" Click ="button1_Click" /> </ Grid > </ controls:PivotItem > </ controls:Pivot > </ phone:PhoneApplicationPage > * This source code was highlighted with Source Code Highlighter .
  33. < phone:PhoneApplicationPage x:Class ="ozon.MainPage" xmlns ="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x ="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:phone ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" xmlns:shell ="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" xmlns:d ="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc ="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:controls ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls" mc:Ignorable ="d" d:DesignWidth ="480" d:DesignHeight ="768" FontFamily ="{StaticResource PhoneFontFamilyNormal}" FontSize ="{StaticResource PhoneFontSizeNormal}" Foreground ="{StaticResource PhoneForegroundBrush}" SupportedOrientations ="Portrait" Orientation ="Portrait" shell:SystemTray . IsVisible ="True" > < controls:Pivot > < controls:Pivot.Title > < TextBlock > OZON.RU </ TextBlock > </ controls:Pivot.Title > < controls:PivotItem Header ="" Foreground ="Black" > < Grid x:Name ="LayoutRoot" Background ="Transparent" > < Grid.RowDefinitions > < RowDefinition Height ="Auto" /> < RowDefinition Height ="*" /> </ Grid.RowDefinitions > < StackPanel x:Name ="TitlePanel" Grid . Row ="0" Margin ="12,17,0,28" UseLayoutRounding ="True" HorizontalAlignment ="Left" > < TextBox Grid . RowSpan ="2" Height ="72" Margin ="0,0,0,0" Name ="textBox1" Text ="" Width ="288" /> </ StackPanel > < Grid x:Name ="ContentPanel" Grid . Row ="1" Margin ="12,0,12,0" > < ListBox x:Name ="Results" Height ="Auto" HorizontalAlignment ="Left" Margin ="4,3,0,0" VerticalAlignment ="Top" Width ="423" > < ListBox.ItemTemplate > < DataTemplate > < StackPanel Orientation ="Horizontal" Height ="100" Margin ="0,10,0,0" > < Image Source ="{Binding PictureURL}" Width ="80" Height ="100" Stretch ="Fill" DataContext ="{Binding}" HorizontalAlignment ="Left" VerticalAlignment ="Center" Margin ="0,0,10,0" /> < StackPanel Orientation ="Vertical" Height ="100" VerticalAlignment ="Top" > < StackPanel Orientation ="Horizontal" Height ="Auto" VerticalAlignment ="Top" > < TextBlock Width ="320" FontSize ="18" Text ="{Binding Name}" TextWrapping ="Wrap" VerticalAlignment ="Top" /> </ StackPanel > < StackPanel Orientation ="Horizontal" Height ="60" > < TextBlock Width ="320" FontSize ="32" Text ="{Binding PriceFormatted}" /> </ StackPanel > </ StackPanel > </ StackPanel > </ DataTemplate > </ ListBox.ItemTemplate > </ ListBox > </ Grid > < Button Content ="" Height ="72" Name ="button1" Width ="160" Margin ="288,17,8,28" Click ="button1_Click" /> </ Grid > </ controls:PivotItem > </ controls:Pivot > </ phone:PhoneApplicationPage > * This source code was highlighted with Source Code Highlighter .
  34. < phone:PhoneApplicationPage x:Class ="ozon.MainPage" xmlns ="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x ="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:phone ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" xmlns:shell ="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" xmlns:d ="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc ="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:controls ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls" mc:Ignorable ="d" d:DesignWidth ="480" d:DesignHeight ="768" FontFamily ="{StaticResource PhoneFontFamilyNormal}" FontSize ="{StaticResource PhoneFontSizeNormal}" Foreground ="{StaticResource PhoneForegroundBrush}" SupportedOrientations ="Portrait" Orientation ="Portrait" shell:SystemTray . IsVisible ="True" > < controls:Pivot > < controls:Pivot.Title > < TextBlock > OZON.RU </ TextBlock > </ controls:Pivot.Title > < controls:PivotItem Header ="" Foreground ="Black" > < Grid x:Name ="LayoutRoot" Background ="Transparent" > < Grid.RowDefinitions > < RowDefinition Height ="Auto" /> < RowDefinition Height ="*" /> </ Grid.RowDefinitions > < StackPanel x:Name ="TitlePanel" Grid . Row ="0" Margin ="12,17,0,28" UseLayoutRounding ="True" HorizontalAlignment ="Left" > < TextBox Grid . RowSpan ="2" Height ="72" Margin ="0,0,0,0" Name ="textBox1" Text ="" Width ="288" /> </ StackPanel > < Grid x:Name ="ContentPanel" Grid . Row ="1" Margin ="12,0,12,0" > < ListBox x:Name ="Results" Height ="Auto" HorizontalAlignment ="Left" Margin ="4,3,0,0" VerticalAlignment ="Top" Width ="423" > < ListBox.ItemTemplate > < DataTemplate > < StackPanel Orientation ="Horizontal" Height ="100" Margin ="0,10,0,0" > < Image Source ="{Binding PictureURL}" Width ="80" Height ="100" Stretch ="Fill" DataContext ="{Binding}" HorizontalAlignment ="Left" VerticalAlignment ="Center" Margin ="0,0,10,0" /> < StackPanel Orientation ="Vertical" Height ="100" VerticalAlignment ="Top" > < StackPanel Orientation ="Horizontal" Height ="Auto" VerticalAlignment ="Top" > < TextBlock Width ="320" FontSize ="18" Text ="{Binding Name}" TextWrapping ="Wrap" VerticalAlignment ="Top" /> </ StackPanel > < StackPanel Orientation ="Horizontal" Height ="60" > < TextBlock Width ="320" FontSize ="32" Text ="{Binding PriceFormatted}" /> </ StackPanel > </ StackPanel > </ StackPanel > </ DataTemplate > </ ListBox.ItemTemplate > </ ListBox > </ Grid > < Button Content ="" Height ="72" Name ="button1" Width ="160" Margin ="288,17,8,28" Click ="button1_Click" /> </ Grid > </ controls:PivotItem > </ controls:Pivot > </ phone:PhoneApplicationPage > * This source code was highlighted with Source Code Highlighter .
  35. < phone:PhoneApplicationPage x:Class ="ozon.MainPage" xmlns ="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x ="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:phone ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" xmlns:shell ="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" xmlns:d ="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc ="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:controls ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls" mc:Ignorable ="d" d:DesignWidth ="480" d:DesignHeight ="768" FontFamily ="{StaticResource PhoneFontFamilyNormal}" FontSize ="{StaticResource PhoneFontSizeNormal}" Foreground ="{StaticResource PhoneForegroundBrush}" SupportedOrientations ="Portrait" Orientation ="Portrait" shell:SystemTray . IsVisible ="True" > < controls:Pivot > < controls:Pivot.Title > < TextBlock > OZON.RU </ TextBlock > </ controls:Pivot.Title > < controls:PivotItem Header ="" Foreground ="Black" > < Grid x:Name ="LayoutRoot" Background ="Transparent" > < Grid.RowDefinitions > < RowDefinition Height ="Auto" /> < RowDefinition Height ="*" /> </ Grid.RowDefinitions > < StackPanel x:Name ="TitlePanel" Grid . Row ="0" Margin ="12,17,0,28" UseLayoutRounding ="True" HorizontalAlignment ="Left" > < TextBox Grid . RowSpan ="2" Height ="72" Margin ="0,0,0,0" Name ="textBox1" Text ="" Width ="288" /> </ StackPanel > < Grid x:Name ="ContentPanel" Grid . Row ="1" Margin ="12,0,12,0" > < ListBox x:Name ="Results" Height ="Auto" HorizontalAlignment ="Left" Margin ="4,3,0,0" VerticalAlignment ="Top" Width ="423" > < ListBox.ItemTemplate > < DataTemplate > < StackPanel Orientation ="Horizontal" Height ="100" Margin ="0,10,0,0" > < Image Source ="{Binding PictureURL}" Width ="80" Height ="100" Stretch ="Fill" DataContext ="{Binding}" HorizontalAlignment ="Left" VerticalAlignment ="Center" Margin ="0,0,10,0" /> < StackPanel Orientation ="Vertical" Height ="100" VerticalAlignment ="Top" > < StackPanel Orientation ="Horizontal" Height ="Auto" VerticalAlignment ="Top" > < TextBlock Width ="320" FontSize ="18" Text ="{Binding Name}" TextWrapping ="Wrap" VerticalAlignment ="Top" /> </ StackPanel > < StackPanel Orientation ="Horizontal" Height ="60" > < TextBlock Width ="320" FontSize ="32" Text ="{Binding PriceFormatted}" /> </ StackPanel > </ StackPanel > </ StackPanel > </ DataTemplate > </ ListBox.ItemTemplate > </ ListBox > </ Grid > < Button Content ="" Height ="72" Name ="button1" Width ="160" Margin ="288,17,8,28" Click ="button1_Click" /> </ Grid > </ controls:PivotItem > </ controls:Pivot > </ phone:PhoneApplicationPage > * This source code was highlighted with Source Code Highlighter .
  36. < phone:PhoneApplicationPage x:Class ="ozon.MainPage" xmlns ="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x ="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:phone ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" xmlns:shell ="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" xmlns:d ="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc ="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:controls ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls" mc:Ignorable ="d" d:DesignWidth ="480" d:DesignHeight ="768" FontFamily ="{StaticResource PhoneFontFamilyNormal}" FontSize ="{StaticResource PhoneFontSizeNormal}" Foreground ="{StaticResource PhoneForegroundBrush}" SupportedOrientations ="Portrait" Orientation ="Portrait" shell:SystemTray . IsVisible ="True" > < controls:Pivot > < controls:Pivot.Title > < TextBlock > OZON.RU </ TextBlock > </ controls:Pivot.Title > < controls:PivotItem Header ="" Foreground ="Black" > < Grid x:Name ="LayoutRoot" Background ="Transparent" > < Grid.RowDefinitions > < RowDefinition Height ="Auto" /> < RowDefinition Height ="*" /> </ Grid.RowDefinitions > < StackPanel x:Name ="TitlePanel" Grid . Row ="0" Margin ="12,17,0,28" UseLayoutRounding ="True" HorizontalAlignment ="Left" > < TextBox Grid . RowSpan ="2" Height ="72" Margin ="0,0,0,0" Name ="textBox1" Text ="" Width ="288" /> </ StackPanel > < Grid x:Name ="ContentPanel" Grid . Row ="1" Margin ="12,0,12,0" > < ListBox x:Name ="Results" Height ="Auto" HorizontalAlignment ="Left" Margin ="4,3,0,0" VerticalAlignment ="Top" Width ="423" > < ListBox.ItemTemplate > < DataTemplate > < StackPanel Orientation ="Horizontal" Height ="100" Margin ="0,10,0,0" > < Image Source ="{Binding PictureURL}" Width ="80" Height ="100" Stretch ="Fill" DataContext ="{Binding}" HorizontalAlignment ="Left" VerticalAlignment ="Center" Margin ="0,0,10,0" /> < StackPanel Orientation ="Vertical" Height ="100" VerticalAlignment ="Top" > < StackPanel Orientation ="Horizontal" Height ="Auto" VerticalAlignment ="Top" > < TextBlock Width ="320" FontSize ="18" Text ="{Binding Name}" TextWrapping ="Wrap" VerticalAlignment ="Top" /> </ StackPanel > < StackPanel Orientation ="Horizontal" Height ="60" > < TextBlock Width ="320" FontSize ="32" Text ="{Binding PriceFormatted}" /> </ StackPanel > </ StackPanel > </ StackPanel > </ DataTemplate > </ ListBox.ItemTemplate > </ ListBox > </ Grid > < Button Content ="" Height ="72" Name ="button1" Width ="160" Margin ="288,17,8,28" Click ="button1_Click" /> </ Grid > </ controls:PivotItem > </ controls:Pivot > </ phone:PhoneApplicationPage > * This source code was highlighted with Source Code Highlighter .
  37. < phone:PhoneApplicationPage x:Class ="ozon.MainPage" xmlns ="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x ="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:phone ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" xmlns:shell ="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" xmlns:d ="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc ="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:controls ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls" mc:Ignorable ="d" d:DesignWidth ="480" d:DesignHeight ="768" FontFamily ="{StaticResource PhoneFontFamilyNormal}" FontSize ="{StaticResource PhoneFontSizeNormal}" Foreground ="{StaticResource PhoneForegroundBrush}" SupportedOrientations ="Portrait" Orientation ="Portrait" shell:SystemTray . IsVisible ="True" > < controls:Pivot > < controls:Pivot.Title > < TextBlock > OZON.RU </ TextBlock > </ controls:Pivot.Title > < controls:PivotItem Header ="" Foreground ="Black" > < Grid x:Name ="LayoutRoot" Background ="Transparent" > < Grid.RowDefinitions > < RowDefinition Height ="Auto" /> < RowDefinition Height ="*" /> </ Grid.RowDefinitions > < StackPanel x:Name ="TitlePanel" Grid . Row ="0" Margin ="12,17,0,28" UseLayoutRounding ="True" HorizontalAlignment ="Left" > < TextBox Grid . RowSpan ="2" Height ="72" Margin ="0,0,0,0" Name ="textBox1" Text ="" Width ="288" /> </ StackPanel > < Grid x:Name ="ContentPanel" Grid . Row ="1" Margin ="12,0,12,0" > < ListBox x:Name ="Results" Height ="Auto" HorizontalAlignment ="Left" Margin ="4,3,0,0" VerticalAlignment ="Top" Width ="423" > < ListBox.ItemTemplate > < DataTemplate > < StackPanel Orientation ="Horizontal" Height ="100" Margin ="0,10,0,0" > < Image Source ="{Binding PictureURL}" Width ="80" Height ="100" Stretch ="Fill" DataContext ="{Binding}" HorizontalAlignment ="Left" VerticalAlignment ="Center" Margin ="0,0,10,0" /> < StackPanel Orientation ="Vertical" Height ="100" VerticalAlignment ="Top" > < StackPanel Orientation ="Horizontal" Height ="Auto" VerticalAlignment ="Top" > < TextBlock Width ="320" FontSize ="18" Text ="{Binding Name}" TextWrapping ="Wrap" VerticalAlignment ="Top" /> </ StackPanel > < StackPanel Orientation ="Horizontal" Height ="60" > < TextBlock Width ="320" FontSize ="32" Text ="{Binding PriceFormatted}" /> </ StackPanel > </ StackPanel > </ StackPanel > </ DataTemplate > </ ListBox.ItemTemplate > </ ListBox > </ Grid > < Button Content ="" Height ="72" Name ="button1" Width ="160" Margin ="288,17,8,28" Click ="button1_Click" /> </ Grid > </ controls:PivotItem > </ controls:Pivot > </ phone:PhoneApplicationPage > * This source code was highlighted with Source Code Highlighter .
  38. < phone:PhoneApplicationPage x:Class ="ozon.MainPage" xmlns ="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x ="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:phone ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" xmlns:shell ="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" xmlns:d ="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc ="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:controls ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls" mc:Ignorable ="d" d:DesignWidth ="480" d:DesignHeight ="768" FontFamily ="{StaticResource PhoneFontFamilyNormal}" FontSize ="{StaticResource PhoneFontSizeNormal}" Foreground ="{StaticResource PhoneForegroundBrush}" SupportedOrientations ="Portrait" Orientation ="Portrait" shell:SystemTray . IsVisible ="True" > < controls:Pivot > < controls:Pivot.Title > < TextBlock > OZON.RU </ TextBlock > </ controls:Pivot.Title > < controls:PivotItem Header ="" Foreground ="Black" > < Grid x:Name ="LayoutRoot" Background ="Transparent" > < Grid.RowDefinitions > < RowDefinition Height ="Auto" /> < RowDefinition Height ="*" /> </ Grid.RowDefinitions > < StackPanel x:Name ="TitlePanel" Grid . Row ="0" Margin ="12,17,0,28" UseLayoutRounding ="True" HorizontalAlignment ="Left" > < TextBox Grid . RowSpan ="2" Height ="72" Margin ="0,0,0,0" Name ="textBox1" Text ="" Width ="288" /> </ StackPanel > < Grid x:Name ="ContentPanel" Grid . Row ="1" Margin ="12,0,12,0" > < ListBox x:Name ="Results" Height ="Auto" HorizontalAlignment ="Left" Margin ="4,3,0,0" VerticalAlignment ="Top" Width ="423" > < ListBox.ItemTemplate > < DataTemplate > < StackPanel Orientation ="Horizontal" Height ="100" Margin ="0,10,0,0" > < Image Source ="{Binding PictureURL}" Width ="80" Height ="100" Stretch ="Fill" DataContext ="{Binding}" HorizontalAlignment ="Left" VerticalAlignment ="Center" Margin ="0,0,10,0" /> < StackPanel Orientation ="Vertical" Height ="100" VerticalAlignment ="Top" > < StackPanel Orientation ="Horizontal" Height ="Auto" VerticalAlignment ="Top" > < TextBlock Width ="320" FontSize ="18" Text ="{Binding Name}" TextWrapping ="Wrap" VerticalAlignment ="Top" /> </ StackPanel > < StackPanel Orientation ="Horizontal" Height ="60" > < TextBlock Width ="320" FontSize ="32" Text ="{Binding PriceFormatted}" /> </ StackPanel > </ StackPanel > </ StackPanel > </ DataTemplate > </ ListBox.ItemTemplate > </ ListBox > </ Grid > < Button Content ="" Height ="72" Name ="button1" Width ="160" Margin ="288,17,8,28" Click ="button1_Click" /> </ Grid > </ controls:PivotItem > </ controls:Pivot > </ phone:PhoneApplicationPage > * This source code was highlighted with Source Code Highlighter .
  39. < phone:PhoneApplicationPage x:Class ="ozon.MainPage" xmlns ="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x ="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:phone ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" xmlns:shell ="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" xmlns:d ="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc ="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:controls ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls" mc:Ignorable ="d" d:DesignWidth ="480" d:DesignHeight ="768" FontFamily ="{StaticResource PhoneFontFamilyNormal}" FontSize ="{StaticResource PhoneFontSizeNormal}" Foreground ="{StaticResource PhoneForegroundBrush}" SupportedOrientations ="Portrait" Orientation ="Portrait" shell:SystemTray . IsVisible ="True" > < controls:Pivot > < controls:Pivot.Title > < TextBlock > OZON.RU </ TextBlock > </ controls:Pivot.Title > < controls:PivotItem Header ="" Foreground ="Black" > < Grid x:Name ="LayoutRoot" Background ="Transparent" > < Grid.RowDefinitions > < RowDefinition Height ="Auto" /> < RowDefinition Height ="*" /> </ Grid.RowDefinitions > < StackPanel x:Name ="TitlePanel" Grid . Row ="0" Margin ="12,17,0,28" UseLayoutRounding ="True" HorizontalAlignment ="Left" > < TextBox Grid . RowSpan ="2" Height ="72" Margin ="0,0,0,0" Name ="textBox1" Text ="" Width ="288" /> </ StackPanel > < Grid x:Name ="ContentPanel" Grid . Row ="1" Margin ="12,0,12,0" > < ListBox x:Name ="Results" Height ="Auto" HorizontalAlignment ="Left" Margin ="4,3,0,0" VerticalAlignment ="Top" Width ="423" > < ListBox.ItemTemplate > < DataTemplate > < StackPanel Orientation ="Horizontal" Height ="100" Margin ="0,10,0,0" > < Image Source ="{Binding PictureURL}" Width ="80" Height ="100" Stretch ="Fill" DataContext ="{Binding}" HorizontalAlignment ="Left" VerticalAlignment ="Center" Margin ="0,0,10,0" /> < StackPanel Orientation ="Vertical" Height ="100" VerticalAlignment ="Top" > < StackPanel Orientation ="Horizontal" Height ="Auto" VerticalAlignment ="Top" > < TextBlock Width ="320" FontSize ="18" Text ="{Binding Name}" TextWrapping ="Wrap" VerticalAlignment ="Top" /> </ StackPanel > < StackPanel Orientation ="Horizontal" Height ="60" > < TextBlock Width ="320" FontSize ="32" Text ="{Binding PriceFormatted}" /> </ StackPanel > </ StackPanel > </ StackPanel > </ DataTemplate > </ ListBox.ItemTemplate > </ ListBox > </ Grid > < Button Content ="" Height ="72" Name ="button1" Width ="160" Margin ="288,17,8,28" Click ="button1_Click" /> </ Grid > </ controls:PivotItem > </ controls:Pivot > </ phone:PhoneApplicationPage > * This source code was highlighted with Source Code Highlighter .
  40. < phone:PhoneApplicationPage x:Class ="ozon.MainPage" xmlns ="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x ="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:phone ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" xmlns:shell ="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" xmlns:d ="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc ="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:controls ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls" mc:Ignorable ="d" d:DesignWidth ="480" d:DesignHeight ="768" FontFamily ="{StaticResource PhoneFontFamilyNormal}" FontSize ="{StaticResource PhoneFontSizeNormal}" Foreground ="{StaticResource PhoneForegroundBrush}" SupportedOrientations ="Portrait" Orientation ="Portrait" shell:SystemTray . IsVisible ="True" > < controls:Pivot > < controls:Pivot.Title > < TextBlock > OZON.RU </ TextBlock > </ controls:Pivot.Title > < controls:PivotItem Header ="" Foreground ="Black" > < Grid x:Name ="LayoutRoot" Background ="Transparent" > < Grid.RowDefinitions > < RowDefinition Height ="Auto" /> < RowDefinition Height ="*" /> </ Grid.RowDefinitions > < StackPanel x:Name ="TitlePanel" Grid . Row ="0" Margin ="12,17,0,28" UseLayoutRounding ="True" HorizontalAlignment ="Left" > < TextBox Grid . RowSpan ="2" Height ="72" Margin ="0,0,0,0" Name ="textBox1" Text ="" Width ="288" /> </ StackPanel > < Grid x:Name ="ContentPanel" Grid . Row ="1" Margin ="12,0,12,0" > < ListBox x:Name ="Results" Height ="Auto" HorizontalAlignment ="Left" Margin ="4,3,0,0" VerticalAlignment ="Top" Width ="423" > < ListBox.ItemTemplate > < DataTemplate > < StackPanel Orientation ="Horizontal" Height ="100" Margin ="0,10,0,0" > < Image Source ="{Binding PictureURL}" Width ="80" Height ="100" Stretch ="Fill" DataContext ="{Binding}" HorizontalAlignment ="Left" VerticalAlignment ="Center" Margin ="0,0,10,0" /> < StackPanel Orientation ="Vertical" Height ="100" VerticalAlignment ="Top" > < StackPanel Orientation ="Horizontal" Height ="Auto" VerticalAlignment ="Top" > < TextBlock Width ="320" FontSize ="18" Text ="{Binding Name}" TextWrapping ="Wrap" VerticalAlignment ="Top" /> </ StackPanel > < StackPanel Orientation ="Horizontal" Height ="60" > < TextBlock Width ="320" FontSize ="32" Text ="{Binding PriceFormatted}" /> </ StackPanel > </ StackPanel > </ StackPanel > </ DataTemplate > </ ListBox.ItemTemplate > </ ListBox > </ Grid > < Button Content ="" Height ="72" Name ="button1" Width ="160" Margin ="288,17,8,28" Click ="button1_Click" /> </ Grid > </ controls:PivotItem > </ controls:Pivot > </ phone:PhoneApplicationPage > * This source code was highlighted with Source Code Highlighter .
  41. < phone:PhoneApplicationPage x:Class ="ozon.MainPage" xmlns ="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x ="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:phone ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" xmlns:shell ="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" xmlns:d ="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc ="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:controls ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls" mc:Ignorable ="d" d:DesignWidth ="480" d:DesignHeight ="768" FontFamily ="{StaticResource PhoneFontFamilyNormal}" FontSize ="{StaticResource PhoneFontSizeNormal}" Foreground ="{StaticResource PhoneForegroundBrush}" SupportedOrientations ="Portrait" Orientation ="Portrait" shell:SystemTray . IsVisible ="True" > < controls:Pivot > < controls:Pivot.Title > < TextBlock > OZON.RU </ TextBlock > </ controls:Pivot.Title > < controls:PivotItem Header ="" Foreground ="Black" > < Grid x:Name ="LayoutRoot" Background ="Transparent" > < Grid.RowDefinitions > < RowDefinition Height ="Auto" /> < RowDefinition Height ="*" /> </ Grid.RowDefinitions > < StackPanel x:Name ="TitlePanel" Grid . Row ="0" Margin ="12,17,0,28" UseLayoutRounding ="True" HorizontalAlignment ="Left" > < TextBox Grid . RowSpan ="2" Height ="72" Margin ="0,0,0,0" Name ="textBox1" Text ="" Width ="288" /> </ StackPanel > < Grid x:Name ="ContentPanel" Grid . Row ="1" Margin ="12,0,12,0" > < ListBox x:Name ="Results" Height ="Auto" HorizontalAlignment ="Left" Margin ="4,3,0,0" VerticalAlignment ="Top" Width ="423" > < ListBox.ItemTemplate > < DataTemplate > < StackPanel Orientation ="Horizontal" Height ="100" Margin ="0,10,0,0" > < Image Source ="{Binding PictureURL}" Width ="80" Height ="100" Stretch ="Fill" DataContext ="{Binding}" HorizontalAlignment ="Left" VerticalAlignment ="Center" Margin ="0,0,10,0" /> < StackPanel Orientation ="Vertical" Height ="100" VerticalAlignment ="Top" > < StackPanel Orientation ="Horizontal" Height ="Auto" VerticalAlignment ="Top" > < TextBlock Width ="320" FontSize ="18" Text ="{Binding Name}" TextWrapping ="Wrap" VerticalAlignment ="Top" /> </ StackPanel > < StackPanel Orientation ="Horizontal" Height ="60" > < TextBlock Width ="320" FontSize ="32" Text ="{Binding PriceFormatted}" /> </ StackPanel > </ StackPanel > </ StackPanel > </ DataTemplate > </ ListBox.ItemTemplate > </ ListBox > </ Grid > < Button Content ="" Height ="72" Name ="button1" Width ="160" Margin ="288,17,8,28" Click ="button1_Click" /> </ Grid > </ controls:PivotItem > </ controls:Pivot > </ phone:PhoneApplicationPage > * This source code was highlighted with Source Code Highlighter .
  42. < phone:PhoneApplicationPage x:Class ="ozon.MainPage" xmlns ="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x ="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:phone ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" xmlns:shell ="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" xmlns:d ="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc ="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:controls ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls" mc:Ignorable ="d" d:DesignWidth ="480" d:DesignHeight ="768" FontFamily ="{StaticResource PhoneFontFamilyNormal}" FontSize ="{StaticResource PhoneFontSizeNormal}" Foreground ="{StaticResource PhoneForegroundBrush}" SupportedOrientations ="Portrait" Orientation ="Portrait" shell:SystemTray . IsVisible ="True" > < controls:Pivot > < controls:Pivot.Title > < TextBlock > OZON.RU </ TextBlock > </ controls:Pivot.Title > < controls:PivotItem Header ="" Foreground ="Black" > < Grid x:Name ="LayoutRoot" Background ="Transparent" > < Grid.RowDefinitions > < RowDefinition Height ="Auto" /> < RowDefinition Height ="*" /> </ Grid.RowDefinitions > < StackPanel x:Name ="TitlePanel" Grid . Row ="0" Margin ="12,17,0,28" UseLayoutRounding ="True" HorizontalAlignment ="Left" > < TextBox Grid . RowSpan ="2" Height ="72" Margin ="0,0,0,0" Name ="textBox1" Text ="" Width ="288" /> </ StackPanel > < Grid x:Name ="ContentPanel" Grid . Row ="1" Margin ="12,0,12,0" > < ListBox x:Name ="Results" Height ="Auto" HorizontalAlignment ="Left" Margin ="4,3,0,0" VerticalAlignment ="Top" Width ="423" > < ListBox.ItemTemplate > < DataTemplate > < StackPanel Orientation ="Horizontal" Height ="100" Margin ="0,10,0,0" > < Image Source ="{Binding PictureURL}" Width ="80" Height ="100" Stretch ="Fill" DataContext ="{Binding}" HorizontalAlignment ="Left" VerticalAlignment ="Center" Margin ="0,0,10,0" /> < StackPanel Orientation ="Vertical" Height ="100" VerticalAlignment ="Top" > < StackPanel Orientation ="Horizontal" Height ="Auto" VerticalAlignment ="Top" > < TextBlock Width ="320" FontSize ="18" Text ="{Binding Name}" TextWrapping ="Wrap" VerticalAlignment ="Top" /> </ StackPanel > < StackPanel Orientation ="Horizontal" Height ="60" > < TextBlock Width ="320" FontSize ="32" Text ="{Binding PriceFormatted}" /> </ StackPanel > </ StackPanel > </ StackPanel > </ DataTemplate > </ ListBox.ItemTemplate > </ ListBox > </ Grid > < Button Content ="" Height ="72" Name ="button1" Width ="160" Margin ="288,17,8,28" Click ="button1_Click" /> </ Grid > </ controls:PivotItem > </ controls:Pivot > </ phone:PhoneApplicationPage > * This source code was highlighted with Source Code Highlighter .
  43. < phone:PhoneApplicationPage x:Class ="ozon.MainPage" xmlns ="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x ="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:phone ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" xmlns:shell ="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" xmlns:d ="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc ="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:controls ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls" mc:Ignorable ="d" d:DesignWidth ="480" d:DesignHeight ="768" FontFamily ="{StaticResource PhoneFontFamilyNormal}" FontSize ="{StaticResource PhoneFontSizeNormal}" Foreground ="{StaticResource PhoneForegroundBrush}" SupportedOrientations ="Portrait" Orientation ="Portrait" shell:SystemTray . IsVisible ="True" > < controls:Pivot > < controls:Pivot.Title > < TextBlock > OZON.RU </ TextBlock > </ controls:Pivot.Title > < controls:PivotItem Header ="" Foreground ="Black" > < Grid x:Name ="LayoutRoot" Background ="Transparent" > < Grid.RowDefinitions > < RowDefinition Height ="Auto" /> < RowDefinition Height ="*" /> </ Grid.RowDefinitions > < StackPanel x:Name ="TitlePanel" Grid . Row ="0" Margin ="12,17,0,28" UseLayoutRounding ="True" HorizontalAlignment ="Left" > < TextBox Grid . RowSpan ="2" Height ="72" Margin ="0,0,0,0" Name ="textBox1" Text ="" Width ="288" /> </ StackPanel > < Grid x:Name ="ContentPanel" Grid . Row ="1" Margin ="12,0,12,0" > < ListBox x:Name ="Results" Height ="Auto" HorizontalAlignment ="Left" Margin ="4,3,0,0" VerticalAlignment ="Top" Width ="423" > < ListBox.ItemTemplate > < DataTemplate > < StackPanel Orientation ="Horizontal" Height ="100" Margin ="0,10,0,0" > < Image Source ="{Binding PictureURL}" Width ="80" Height ="100" Stretch ="Fill" DataContext ="{Binding}" HorizontalAlignment ="Left" VerticalAlignment ="Center" Margin ="0,0,10,0" /> < StackPanel Orientation ="Vertical" Height ="100" VerticalAlignment ="Top" > < StackPanel Orientation ="Horizontal" Height ="Auto" VerticalAlignment ="Top" > < TextBlock Width ="320" FontSize ="18" Text ="{Binding Name}" TextWrapping ="Wrap" VerticalAlignment ="Top" /> </ StackPanel > < StackPanel Orientation ="Horizontal" Height ="60" > < TextBlock Width ="320" FontSize ="32" Text ="{Binding PriceFormatted}" /> </ StackPanel > </ StackPanel > </ StackPanel > </ DataTemplate > </ ListBox.ItemTemplate > </ ListBox > </ Grid > < Button Content ="" Height ="72" Name ="button1" Width ="160" Margin ="288,17,8,28" Click ="button1_Click" /> </ Grid > </ controls:PivotItem > </ controls:Pivot > </ phone:PhoneApplicationPage > * This source code was highlighted with Source Code Highlighter .
  44. < phone:PhoneApplicationPage x:Class ="ozon.MainPage" xmlns ="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x ="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:phone ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" xmlns:shell ="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" xmlns:d ="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc ="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:controls ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls" mc:Ignorable ="d" d:DesignWidth ="480" d:DesignHeight ="768" FontFamily ="{StaticResource PhoneFontFamilyNormal}" FontSize ="{StaticResource PhoneFontSizeNormal}" Foreground ="{StaticResource PhoneForegroundBrush}" SupportedOrientations ="Portrait" Orientation ="Portrait" shell:SystemTray . IsVisible ="True" > < controls:Pivot > < controls:Pivot.Title > < TextBlock > OZON.RU </ TextBlock > </ controls:Pivot.Title > < controls:PivotItem Header ="" Foreground ="Black" > < Grid x:Name ="LayoutRoot" Background ="Transparent" > < Grid.RowDefinitions > < RowDefinition Height ="Auto" /> < RowDefinition Height ="*" /> </ Grid.RowDefinitions > < StackPanel x:Name ="TitlePanel" Grid . Row ="0" Margin ="12,17,0,28" UseLayoutRounding ="True" HorizontalAlignment ="Left" > < TextBox Grid . RowSpan ="2" Height ="72" Margin ="0,0,0,0" Name ="textBox1" Text ="" Width ="288" /> </ StackPanel > < Grid x:Name ="ContentPanel" Grid . Row ="1" Margin ="12,0,12,0" > < ListBox x:Name ="Results" Height ="Auto" HorizontalAlignment ="Left" Margin ="4,3,0,0" VerticalAlignment ="Top" Width ="423" > < ListBox.ItemTemplate > < DataTemplate > < StackPanel Orientation ="Horizontal" Height ="100" Margin ="0,10,0,0" > < Image Source ="{Binding PictureURL}" Width ="80" Height ="100" Stretch ="Fill" DataContext ="{Binding}" HorizontalAlignment ="Left" VerticalAlignment ="Center" Margin ="0,0,10,0" /> < StackPanel Orientation ="Vertical" Height ="100" VerticalAlignment ="Top" > < StackPanel Orientation ="Horizontal" Height ="Auto" VerticalAlignment ="Top" > < TextBlock Width ="320" FontSize ="18" Text ="{Binding Name}" TextWrapping ="Wrap" VerticalAlignment ="Top" /> </ StackPanel > < StackPanel Orientation ="Horizontal" Height ="60" > < TextBlock Width ="320" FontSize ="32" Text ="{Binding PriceFormatted}" /> </ StackPanel > </ StackPanel > </ StackPanel > </ DataTemplate > </ ListBox.ItemTemplate > </ ListBox > </ Grid > < Button Content ="" Height ="72" Name ="button1" Width ="160" Margin ="288,17,8,28" Click ="button1_Click" /> </ Grid > </ controls:PivotItem > </ controls:Pivot > </ phone:PhoneApplicationPage > * This source code was highlighted with Source Code Highlighter .
  45. < phone:PhoneApplicationPage x:Class ="ozon.MainPage" xmlns ="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x ="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:phone ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" xmlns:shell ="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" xmlns:d ="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc ="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:controls ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls" mc:Ignorable ="d" d:DesignWidth ="480" d:DesignHeight ="768" FontFamily ="{StaticResource PhoneFontFamilyNormal}" FontSize ="{StaticResource PhoneFontSizeNormal}" Foreground ="{StaticResource PhoneForegroundBrush}" SupportedOrientations ="Portrait" Orientation ="Portrait" shell:SystemTray . IsVisible ="True" > < controls:Pivot > < controls:Pivot.Title > < TextBlock > OZON.RU </ TextBlock > </ controls:Pivot.Title > < controls:PivotItem Header ="" Foreground ="Black" > < Grid x:Name ="LayoutRoot" Background ="Transparent" > < Grid.RowDefinitions > < RowDefinition Height ="Auto" /> < RowDefinition Height ="*" /> </ Grid.RowDefinitions > < StackPanel x:Name ="TitlePanel" Grid . Row ="0" Margin ="12,17,0,28" UseLayoutRounding ="True" HorizontalAlignment ="Left" > < TextBox Grid . RowSpan ="2" Height ="72" Margin ="0,0,0,0" Name ="textBox1" Text ="" Width ="288" /> </ StackPanel > < Grid x:Name ="ContentPanel" Grid . Row ="1" Margin ="12,0,12,0" > < ListBox x:Name ="Results" Height ="Auto" HorizontalAlignment ="Left" Margin ="4,3,0,0" VerticalAlignment ="Top" Width ="423" > < ListBox.ItemTemplate > < DataTemplate > < StackPanel Orientation ="Horizontal" Height ="100" Margin ="0,10,0,0" > < Image Source ="{Binding PictureURL}" Width ="80" Height ="100" Stretch ="Fill" DataContext ="{Binding}" HorizontalAlignment ="Left" VerticalAlignment ="Center" Margin ="0,0,10,0" /> < StackPanel Orientation ="Vertical" Height ="100" VerticalAlignment ="Top" > < StackPanel Orientation ="Horizontal" Height ="Auto" VerticalAlignment ="Top" > < TextBlock Width ="320" FontSize ="18" Text ="{Binding Name}" TextWrapping ="Wrap" VerticalAlignment ="Top" /> </ StackPanel > < StackPanel Orientation ="Horizontal" Height ="60" > < TextBlock Width ="320" FontSize ="32" Text ="{Binding PriceFormatted}" /> </ StackPanel > </ StackPanel > </ StackPanel > </ DataTemplate > </ ListBox.ItemTemplate > </ ListBox > </ Grid > < Button Content ="" Height ="72" Name ="button1" Width ="160" Margin ="288,17,8,28" Click ="button1_Click" /> </ Grid > </ controls:PivotItem > </ controls:Pivot > </ phone:PhoneApplicationPage > * This source code was highlighted with Source Code Highlighter .
  46. < phone:PhoneApplicationPage x:Class ="ozon.MainPage" xmlns ="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x ="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:phone ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" xmlns:shell ="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" xmlns:d ="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc ="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:controls ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls" mc:Ignorable ="d" d:DesignWidth ="480" d:DesignHeight ="768" FontFamily ="{StaticResource PhoneFontFamilyNormal}" FontSize ="{StaticResource PhoneFontSizeNormal}" Foreground ="{StaticResource PhoneForegroundBrush}" SupportedOrientations ="Portrait" Orientation ="Portrait" shell:SystemTray . IsVisible ="True" > < controls:Pivot > < controls:Pivot.Title > < TextBlock > OZON.RU </ TextBlock > </ controls:Pivot.Title > < controls:PivotItem Header ="" Foreground ="Black" > < Grid x:Name ="LayoutRoot" Background ="Transparent" > < Grid.RowDefinitions > < RowDefinition Height ="Auto" /> < RowDefinition Height ="*" /> </ Grid.RowDefinitions > < StackPanel x:Name ="TitlePanel" Grid . Row ="0" Margin ="12,17,0,28" UseLayoutRounding ="True" HorizontalAlignment ="Left" > < TextBox Grid . RowSpan ="2" Height ="72" Margin ="0,0,0,0" Name ="textBox1" Text ="" Width ="288" /> </ StackPanel > < Grid x:Name ="ContentPanel" Grid . Row ="1" Margin ="12,0,12,0" > < ListBox x:Name ="Results" Height ="Auto" HorizontalAlignment ="Left" Margin ="4,3,0,0" VerticalAlignment ="Top" Width ="423" > < ListBox.ItemTemplate > < DataTemplate > < StackPanel Orientation ="Horizontal" Height ="100" Margin ="0,10,0,0" > < Image Source ="{Binding PictureURL}" Width ="80" Height ="100" Stretch ="Fill" DataContext ="{Binding}" HorizontalAlignment ="Left" VerticalAlignment ="Center" Margin ="0,0,10,0" /> < StackPanel Orientation ="Vertical" Height ="100" VerticalAlignment ="Top" > < StackPanel Orientation ="Horizontal" Height ="Auto" VerticalAlignment ="Top" > < TextBlock Width ="320" FontSize ="18" Text ="{Binding Name}" TextWrapping ="Wrap" VerticalAlignment ="Top" /> </ StackPanel > < StackPanel Orientation ="Horizontal" Height ="60" > < TextBlock Width ="320" FontSize ="32" Text ="{Binding PriceFormatted}" /> </ StackPanel > </ StackPanel > </ StackPanel > </ DataTemplate > </ ListBox.ItemTemplate > </ ListBox > </ Grid > < Button Content ="" Height ="72" Name ="button1" Width ="160" Margin ="288,17,8,28" Click ="button1_Click" /> </ Grid > </ controls:PivotItem > </ controls:Pivot > </ phone:PhoneApplicationPage > * This source code was highlighted with Source Code Highlighter .
  47. < phone:PhoneApplicationPage x:Class ="ozon.MainPage" xmlns ="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x ="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:phone ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" xmlns:shell ="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" xmlns:d ="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc ="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:controls ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls" mc:Ignorable ="d" d:DesignWidth ="480" d:DesignHeight ="768" FontFamily ="{StaticResource PhoneFontFamilyNormal}" FontSize ="{StaticResource PhoneFontSizeNormal}" Foreground ="{StaticResource PhoneForegroundBrush}" SupportedOrientations ="Portrait" Orientation ="Portrait" shell:SystemTray . IsVisible ="True" > < controls:Pivot > < controls:Pivot.Title > < TextBlock > OZON.RU </ TextBlock > </ controls:Pivot.Title > < controls:PivotItem Header ="" Foreground ="Black" > < Grid x:Name ="LayoutRoot" Background ="Transparent" > < Grid.RowDefinitions > < RowDefinition Height ="Auto" /> < RowDefinition Height ="*" /> </ Grid.RowDefinitions > < StackPanel x:Name ="TitlePanel" Grid . Row ="0" Margin ="12,17,0,28" UseLayoutRounding ="True" HorizontalAlignment ="Left" > < TextBox Grid . RowSpan ="2" Height ="72" Margin ="0,0,0,0" Name ="textBox1" Text ="" Width ="288" /> </ StackPanel > < Grid x:Name ="ContentPanel" Grid . Row ="1" Margin ="12,0,12,0" > < ListBox x:Name ="Results" Height ="Auto" HorizontalAlignment ="Left" Margin ="4,3,0,0" VerticalAlignment ="Top" Width ="423" > < ListBox.ItemTemplate > < DataTemplate > < StackPanel Orientation ="Horizontal" Height ="100" Margin ="0,10,0,0" > < Image Source ="{Binding PictureURL}" Width ="80" Height ="100" Stretch ="Fill" DataContext ="{Binding}" HorizontalAlignment ="Left" VerticalAlignment ="Center" Margin ="0,0,10,0" /> < StackPanel Orientation ="Vertical" Height ="100" VerticalAlignment ="Top" > < StackPanel Orientation ="Horizontal" Height ="Auto" VerticalAlignment ="Top" > < TextBlock Width ="320" FontSize ="18" Text ="{Binding Name}" TextWrapping ="Wrap" VerticalAlignment ="Top" /> </ StackPanel > < StackPanel Orientation ="Horizontal" Height ="60" > < TextBlock Width ="320" FontSize ="32" Text ="{Binding PriceFormatted}" /> </ StackPanel > </ StackPanel > </ StackPanel > </ DataTemplate > </ ListBox.ItemTemplate > </ ListBox > </ Grid > < Button Content ="" Height ="72" Name ="button1" Width ="160" Margin ="288,17,8,28" Click ="button1_Click" /> </ Grid > </ controls:PivotItem > </ controls:Pivot > </ phone:PhoneApplicationPage > * This source code was highlighted with Source Code Highlighter .
  48. < phone:PhoneApplicationPage x:Class ="ozon.MainPage" xmlns ="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x ="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:phone ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" xmlns:shell ="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" xmlns:d ="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc ="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:controls ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls" mc:Ignorable ="d" d:DesignWidth ="480" d:DesignHeight ="768" FontFamily ="{StaticResource PhoneFontFamilyNormal}" FontSize ="{StaticResource PhoneFontSizeNormal}" Foreground ="{StaticResource PhoneForegroundBrush}" SupportedOrientations ="Portrait" Orientation ="Portrait" shell:SystemTray . IsVisible ="True" > < controls:Pivot > < controls:Pivot.Title > < TextBlock > OZON.RU </ TextBlock > </ controls:Pivot.Title > < controls:PivotItem Header ="" Foreground ="Black" > < Grid x:Name ="LayoutRoot" Background ="Transparent" > < Grid.RowDefinitions > < RowDefinition Height ="Auto" /> < RowDefinition Height ="*" /> </ Grid.RowDefinitions > < StackPanel x:Name ="TitlePanel" Grid . Row ="0" Margin ="12,17,0,28" UseLayoutRounding ="True" HorizontalAlignment ="Left" > < TextBox Grid . RowSpan ="2" Height ="72" Margin ="0,0,0,0" Name ="textBox1" Text ="" Width ="288" /> </ StackPanel > < Grid x:Name ="ContentPanel" Grid . Row ="1" Margin ="12,0,12,0" > < ListBox x:Name ="Results" Height ="Auto" HorizontalAlignment ="Left" Margin ="4,3,0,0" VerticalAlignment ="Top" Width ="423" > < ListBox.ItemTemplate > < DataTemplate > < StackPanel Orientation ="Horizontal" Height ="100" Margin ="0,10,0,0" > < Image Source ="{Binding PictureURL}" Width ="80" Height ="100" Stretch ="Fill" DataContext ="{Binding}" HorizontalAlignment ="Left" VerticalAlignment ="Center" Margin ="0,0,10,0" /> < StackPanel Orientation ="Vertical" Height ="100" VerticalAlignment ="Top" > < StackPanel Orientation ="Horizontal" Height ="Auto" VerticalAlignment ="Top" > < TextBlock Width ="320" FontSize ="18" Text ="{Binding Name}" TextWrapping ="Wrap" VerticalAlignment ="Top" /> </ StackPanel > < StackPanel Orientation ="Horizontal" Height ="60" > < TextBlock Width ="320" FontSize ="32" Text ="{Binding PriceFormatted}" /> </ StackPanel > </ StackPanel > </ StackPanel > </ DataTemplate > </ ListBox.ItemTemplate > </ ListBox > </ Grid > < Button Content ="" Height ="72" Name ="button1" Width ="160" Margin ="288,17,8,28" Click ="button1_Click" /> </ Grid > </ controls:PivotItem > </ controls:Pivot > </ phone:PhoneApplicationPage > * This source code was highlighted with Source Code Highlighter .
  49. < phone:PhoneApplicationPage x:Class ="ozon.MainPage" xmlns ="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x ="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:phone ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" xmlns:shell ="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" xmlns:d ="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc ="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:controls ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls" mc:Ignorable ="d" d:DesignWidth ="480" d:DesignHeight ="768" FontFamily ="{StaticResource PhoneFontFamilyNormal}" FontSize ="{StaticResource PhoneFontSizeNormal}" Foreground ="{StaticResource PhoneForegroundBrush}" SupportedOrientations ="Portrait" Orientation ="Portrait" shell:SystemTray . IsVisible ="True" > < controls:Pivot > < controls:Pivot.Title > < TextBlock > OZON.RU </ TextBlock > </ controls:Pivot.Title > < controls:PivotItem Header ="" Foreground ="Black" > < Grid x:Name ="LayoutRoot" Background ="Transparent" > < Grid.RowDefinitions > < RowDefinition Height ="Auto" /> < RowDefinition Height ="*" /> </ Grid.RowDefinitions > < StackPanel x:Name ="TitlePanel" Grid . Row ="0" Margin ="12,17,0,28" UseLayoutRounding ="True" HorizontalAlignment ="Left" > < TextBox Grid . RowSpan ="2" Height ="72" Margin ="0,0,0,0" Name ="textBox1" Text ="" Width ="288" /> </ StackPanel > < Grid x:Name ="ContentPanel" Grid . Row ="1" Margin ="12,0,12,0" > < ListBox x:Name ="Results" Height ="Auto" HorizontalAlignment ="Left" Margin ="4,3,0,0" VerticalAlignment ="Top" Width ="423" > < ListBox.ItemTemplate > < DataTemplate > < StackPanel Orientation ="Horizontal" Height ="100" Margin ="0,10,0,0" > < Image Source ="{Binding PictureURL}" Width ="80" Height ="100" Stretch ="Fill" DataContext ="{Binding}" HorizontalAlignment ="Left" VerticalAlignment ="Center" Margin ="0,0,10,0" /> < StackPanel Orientation ="Vertical" Height ="100" VerticalAlignment ="Top" > < StackPanel Orientation ="Horizontal" Height ="Auto" VerticalAlignment ="Top" > < TextBlock Width ="320" FontSize ="18" Text ="{Binding Name}" TextWrapping ="Wrap" VerticalAlignment ="Top" /> </ StackPanel > < StackPanel Orientation ="Horizontal" Height ="60" > < TextBlock Width ="320" FontSize ="32" Text ="{Binding PriceFormatted}" /> </ StackPanel > </ StackPanel > </ StackPanel > </ DataTemplate > </ ListBox.ItemTemplate > </ ListBox > </ Grid > < Button Content ="" Height ="72" Name ="button1" Width ="160" Margin ="288,17,8,28" Click ="button1_Click" /> </ Grid > </ controls:PivotItem > </ controls:Pivot > </ phone:PhoneApplicationPage > * This source code was highlighted with Source Code Highlighter .
  50. < phone:PhoneApplicationPage x:Class ="ozon.MainPage" xmlns ="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x ="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:phone ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" xmlns:shell ="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" xmlns:d ="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc ="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:controls ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls" mc:Ignorable ="d" d:DesignWidth ="480" d:DesignHeight ="768" FontFamily ="{StaticResource PhoneFontFamilyNormal}" FontSize ="{StaticResource PhoneFontSizeNormal}" Foreground ="{StaticResource PhoneForegroundBrush}" SupportedOrientations ="Portrait" Orientation ="Portrait" shell:SystemTray . IsVisible ="True" > < controls:Pivot > < controls:Pivot.Title > < TextBlock > OZON.RU </ TextBlock > </ controls:Pivot.Title > < controls:PivotItem Header ="" Foreground ="Black" > < Grid x:Name ="LayoutRoot" Background ="Transparent" > < Grid.RowDefinitions > < RowDefinition Height ="Auto" /> < RowDefinition Height ="*" /> </ Grid.RowDefinitions > < StackPanel x:Name ="TitlePanel" Grid . Row ="0" Margin ="12,17,0,28" UseLayoutRounding ="True" HorizontalAlignment ="Left" > < TextBox Grid . RowSpan ="2" Height ="72" Margin ="0,0,0,0" Name ="textBox1" Text ="" Width ="288" /> </ StackPanel > < Grid x:Name ="ContentPanel" Grid . Row ="1" Margin ="12,0,12,0" > < ListBox x:Name ="Results" Height ="Auto" HorizontalAlignment ="Left" Margin ="4,3,0,0" VerticalAlignment ="Top" Width ="423" > < ListBox.ItemTemplate > < DataTemplate > < StackPanel Orientation ="Horizontal" Height ="100" Margin ="0,10,0,0" > < Image Source ="{Binding PictureURL}" Width ="80" Height ="100" Stretch ="Fill" DataContext ="{Binding}" HorizontalAlignment ="Left" VerticalAlignment ="Center" Margin ="0,0,10,0" /> < StackPanel Orientation ="Vertical" Height ="100" VerticalAlignment ="Top" > < StackPanel Orientation ="Horizontal" Height ="Auto" VerticalAlignment ="Top" > < TextBlock Width ="320" FontSize ="18" Text ="{Binding Name}" TextWrapping ="Wrap" VerticalAlignment ="Top" /> </ StackPanel > < StackPanel Orientation ="Horizontal" Height ="60" > < TextBlock Width ="320" FontSize ="32" Text ="{Binding PriceFormatted}" /> </ StackPanel > </ StackPanel > </ StackPanel > </ DataTemplate > </ ListBox.ItemTemplate > </ ListBox > </ Grid > < Button Content ="" Height ="72" Name ="button1" Width ="160" Margin ="288,17,8,28" Click ="button1_Click" /> </ Grid > </ controls:PivotItem > </ controls:Pivot > </ phone:PhoneApplicationPage > * This source code was highlighted with Source Code Highlighter .
  51. < phone:PhoneApplicationPage x:Class ="ozon.MainPage" xmlns ="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x ="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:phone ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" xmlns:shell ="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" xmlns:d ="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc ="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:controls ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls" mc:Ignorable ="d" d:DesignWidth ="480" d:DesignHeight ="768" FontFamily ="{StaticResource PhoneFontFamilyNormal}" FontSize ="{StaticResource PhoneFontSizeNormal}" Foreground ="{StaticResource PhoneForegroundBrush}" SupportedOrientations ="Portrait" Orientation ="Portrait" shell:SystemTray . IsVisible ="True" > < controls:Pivot > < controls:Pivot.Title > < TextBlock > OZON.RU </ TextBlock > </ controls:Pivot.Title > < controls:PivotItem Header ="" Foreground ="Black" > < Grid x:Name ="LayoutRoot" Background ="Transparent" > < Grid.RowDefinitions > < RowDefinition Height ="Auto" /> < RowDefinition Height ="*" /> </ Grid.RowDefinitions > < StackPanel x:Name ="TitlePanel" Grid . Row ="0" Margin ="12,17,0,28" UseLayoutRounding ="True" HorizontalAlignment ="Left" > < TextBox Grid . RowSpan ="2" Height ="72" Margin ="0,0,0,0" Name ="textBox1" Text ="" Width ="288" /> </ StackPanel > < Grid x:Name ="ContentPanel" Grid . Row ="1" Margin ="12,0,12,0" > < ListBox x:Name ="Results" Height ="Auto" HorizontalAlignment ="Left" Margin ="4,3,0,0" VerticalAlignment ="Top" Width ="423" > < ListBox.ItemTemplate > < DataTemplate > < StackPanel Orientation ="Horizontal" Height ="100" Margin ="0,10,0,0" > < Image Source ="{Binding PictureURL}" Width ="80" Height ="100" Stretch ="Fill" DataContext ="{Binding}" HorizontalAlignment ="Left" VerticalAlignment ="Center" Margin ="0,0,10,0" /> < StackPanel Orientation ="Vertical" Height ="100" VerticalAlignment ="Top" > < StackPanel Orientation ="Horizontal" Height ="Auto" VerticalAlignment ="Top" > < TextBlock Width ="320" FontSize ="18" Text ="{Binding Name}" TextWrapping ="Wrap" VerticalAlignment ="Top" /> </ StackPanel > < StackPanel Orientation ="Horizontal" Height ="60" > < TextBlock Width ="320" FontSize ="32" Text ="{Binding PriceFormatted}" /> </ StackPanel > </ StackPanel > </ StackPanel > </ DataTemplate > </ ListBox.ItemTemplate > </ ListBox > </ Grid > < Button Content ="" Height ="72" Name ="button1" Width ="160" Margin ="288,17,8,28" Click ="button1_Click" /> </ Grid > </ controls:PivotItem > </ controls:Pivot > </ phone:PhoneApplicationPage > * This source code was highlighted with Source Code Highlighter .
  52. < phone:PhoneApplicationPage x:Class ="ozon.MainPage" xmlns ="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x ="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:phone ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" xmlns:shell ="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" xmlns:d ="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc ="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:controls ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls" mc:Ignorable ="d" d:DesignWidth ="480" d:DesignHeight ="768" FontFamily ="{StaticResource PhoneFontFamilyNormal}" FontSize ="{StaticResource PhoneFontSizeNormal}" Foreground ="{StaticResource PhoneForegroundBrush}" SupportedOrientations ="Portrait" Orientation ="Portrait" shell:SystemTray . IsVisible ="True" > < controls:Pivot > < controls:Pivot.Title > < TextBlock > OZON.RU </ TextBlock > </ controls:Pivot.Title > < controls:PivotItem Header ="" Foreground ="Black" > < Grid x:Name ="LayoutRoot" Background ="Transparent" > < Grid.RowDefinitions > < RowDefinition Height ="Auto" /> < RowDefinition Height ="*" /> </ Grid.RowDefinitions > < StackPanel x:Name ="TitlePanel" Grid . Row ="0" Margin ="12,17,0,28" UseLayoutRounding ="True" HorizontalAlignment ="Left" > < TextBox Grid . RowSpan ="2" Height ="72" Margin ="0,0,0,0" Name ="textBox1" Text ="" Width ="288" /> </ StackPanel > < Grid x:Name ="ContentPanel" Grid . Row ="1" Margin ="12,0,12,0" > < ListBox x:Name ="Results" Height ="Auto" HorizontalAlignment ="Left" Margin ="4,3,0,0" VerticalAlignment ="Top" Width ="423" > < ListBox.ItemTemplate > < DataTemplate > < StackPanel Orientation ="Horizontal" Height ="100" Margin ="0,10,0,0" > < Image Source ="{Binding PictureURL}" Width ="80" Height ="100" Stretch ="Fill" DataContext ="{Binding}" HorizontalAlignment ="Left" VerticalAlignment ="Center" Margin ="0,0,10,0" /> < StackPanel Orientation ="Vertical" Height ="100" VerticalAlignment ="Top" > < StackPanel Orientation ="Horizontal" Height ="Auto" VerticalAlignment ="Top" > < TextBlock Width ="320" FontSize ="18" Text ="{Binding Name}" TextWrapping ="Wrap" VerticalAlignment ="Top" /> </ StackPanel > < StackPanel Orientation ="Horizontal" Height ="60" > < TextBlock Width ="320" FontSize ="32" Text ="{Binding PriceFormatted}" /> </ StackPanel > </ StackPanel > </ StackPanel > </ DataTemplate > </ ListBox.ItemTemplate > </ ListBox > </ Grid > < Button Content ="" Height ="72" Name ="button1" Width ="160" Margin ="288,17,8,28" Click ="button1_Click" /> </ Grid > </ controls:PivotItem > </ controls:Pivot > </ phone:PhoneApplicationPage > * This source code was highlighted with Source Code Highlighter .
  53. < phone:PhoneApplicationPage x:Class ="ozon.MainPage" xmlns ="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x ="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:phone ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" xmlns:shell ="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" xmlns:d ="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc ="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:controls ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls" mc:Ignorable ="d" d:DesignWidth ="480" d:DesignHeight ="768" FontFamily ="{StaticResource PhoneFontFamilyNormal}" FontSize ="{StaticResource PhoneFontSizeNormal}" Foreground ="{StaticResource PhoneForegroundBrush}" SupportedOrientations ="Portrait" Orientation ="Portrait" shell:SystemTray . IsVisible ="True" > < controls:Pivot > < controls:Pivot.Title > < TextBlock > OZON.RU </ TextBlock > </ controls:Pivot.Title > < controls:PivotItem Header ="" Foreground ="Black" > < Grid x:Name ="LayoutRoot" Background ="Transparent" > < Grid.RowDefinitions > < RowDefinition Height ="Auto" /> < RowDefinition Height ="*" /> </ Grid.RowDefinitions > < StackPanel x:Name ="TitlePanel" Grid . Row ="0" Margin ="12,17,0,28" UseLayoutRounding ="True" HorizontalAlignment ="Left" > < TextBox Grid . RowSpan ="2" Height ="72" Margin ="0,0,0,0" Name ="textBox1" Text ="" Width ="288" /> </ StackPanel > < Grid x:Name ="ContentPanel" Grid . Row ="1" Margin ="12,0,12,0" > < ListBox x:Name ="Results" Height ="Auto" HorizontalAlignment ="Left" Margin ="4,3,0,0" VerticalAlignment ="Top" Width ="423" > < ListBox.ItemTemplate > < DataTemplate > < StackPanel Orientation ="Horizontal" Height ="100" Margin ="0,10,0,0" > < Image Source ="{Binding PictureURL}" Width ="80" Height ="100" Stretch ="Fill" DataContext ="{Binding}" HorizontalAlignment ="Left" VerticalAlignment ="Center" Margin ="0,0,10,0" /> < StackPanel Orientation ="Vertical" Height ="100" VerticalAlignment ="Top" > < StackPanel Orientation ="Horizontal" Height ="Auto" VerticalAlignment ="Top" > < TextBlock Width ="320" FontSize ="18" Text ="{Binding Name}" TextWrapping ="Wrap" VerticalAlignment ="Top" /> </ StackPanel > < StackPanel Orientation ="Horizontal" Height ="60" > < TextBlock Width ="320" FontSize ="32" Text ="{Binding PriceFormatted}" /> </ StackPanel > </ StackPanel > </ StackPanel > </ DataTemplate > </ ListBox.ItemTemplate > </ ListBox > </ Grid > < Button Content ="" Height ="72" Name ="button1" Width ="160" Margin ="288,17,8,28" Click ="button1_Click" /> </ Grid > </ controls:PivotItem > </ controls:Pivot > </ phone:PhoneApplicationPage > * This source code was highlighted with Source Code Highlighter .
  54. < phone:PhoneApplicationPage x:Class ="ozon.MainPage" xmlns ="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x ="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:phone ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" xmlns:shell ="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" xmlns:d ="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc ="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:controls ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls" mc:Ignorable ="d" d:DesignWidth ="480" d:DesignHeight ="768" FontFamily ="{StaticResource PhoneFontFamilyNormal}" FontSize ="{StaticResource PhoneFontSizeNormal}" Foreground ="{StaticResource PhoneForegroundBrush}" SupportedOrientations ="Portrait" Orientation ="Portrait" shell:SystemTray . IsVisible ="True" > < controls:Pivot > < controls:Pivot.Title > < TextBlock > OZON.RU </ TextBlock > </ controls:Pivot.Title > < controls:PivotItem Header ="" Foreground ="Black" > < Grid x:Name ="LayoutRoot" Background ="Transparent" > < Grid.RowDefinitions > < RowDefinition Height ="Auto" /> < RowDefinition Height ="*" /> </ Grid.RowDefinitions > < StackPanel x:Name ="TitlePanel" Grid . Row ="0" Margin ="12,17,0,28" UseLayoutRounding ="True" HorizontalAlignment ="Left" > < TextBox Grid . RowSpan ="2" Height ="72" Margin ="0,0,0,0" Name ="textBox1" Text ="" Width ="288" /> </ StackPanel > < Grid x:Name ="ContentPanel" Grid . Row ="1" Margin ="12,0,12,0" > < ListBox x:Name ="Results" Height ="Auto" HorizontalAlignment ="Left" Margin ="4,3,0,0" VerticalAlignment ="Top" Width ="423" > < ListBox.ItemTemplate > < DataTemplate > < StackPanel Orientation ="Horizontal" Height ="100" Margin ="0,10,0,0" > < Image Source ="{Binding PictureURL}" Width ="80" Height ="100" Stretch ="Fill" DataContext ="{Binding}" HorizontalAlignment ="Left" VerticalAlignment ="Center" Margin ="0,0,10,0" /> < StackPanel Orientation ="Vertical" Height ="100" VerticalAlignment ="Top" > < StackPanel Orientation ="Horizontal" Height ="Auto" VerticalAlignment ="Top" > < TextBlock Width ="320" FontSize ="18" Text ="{Binding Name}" TextWrapping ="Wrap" VerticalAlignment ="Top" /> </ StackPanel > < StackPanel Orientation ="Horizontal" Height ="60" > < TextBlock Width ="320" FontSize ="32" Text ="{Binding PriceFormatted}" /> </ StackPanel > </ StackPanel > </ StackPanel > </ DataTemplate > </ ListBox.ItemTemplate > </ ListBox > </ Grid > < Button Content ="" Height ="72" Name ="button1" Width ="160" Margin ="288,17,8,28" Click ="button1_Click" /> </ Grid > </ controls:PivotItem > </ controls:Pivot > </ phone:PhoneApplicationPage > * This source code was highlighted with Source Code Highlighter .
  55. < phone:PhoneApplicationPage x:Class ="ozon.MainPage" xmlns ="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x ="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:phone ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" xmlns:shell ="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" xmlns:d ="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc ="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:controls ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls" mc:Ignorable ="d" d:DesignWidth ="480" d:DesignHeight ="768" FontFamily ="{StaticResource PhoneFontFamilyNormal}" FontSize ="{StaticResource PhoneFontSizeNormal}" Foreground ="{StaticResource PhoneForegroundBrush}" SupportedOrientations ="Portrait" Orientation ="Portrait" shell:SystemTray . IsVisible ="True" > < controls:Pivot > < controls:Pivot.Title > < TextBlock > OZON.RU </ TextBlock > </ controls:Pivot.Title > < controls:PivotItem Header ="" Foreground ="Black" > < Grid x:Name ="LayoutRoot" Background ="Transparent" > < Grid.RowDefinitions > < RowDefinition Height ="Auto" /> < RowDefinition Height ="*" /> </ Grid.RowDefinitions > < StackPanel x:Name ="TitlePanel" Grid . Row ="0" Margin ="12,17,0,28" UseLayoutRounding ="True" HorizontalAlignment ="Left" > < TextBox Grid . RowSpan ="2" Height ="72" Margin ="0,0,0,0" Name ="textBox1" Text ="" Width ="288" /> </ StackPanel > < Grid x:Name ="ContentPanel" Grid . Row ="1" Margin ="12,0,12,0" > < ListBox x:Name ="Results" Height ="Auto" HorizontalAlignment ="Left" Margin ="4,3,0,0" VerticalAlignment ="Top" Width ="423" > < ListBox.ItemTemplate > < DataTemplate > < StackPanel Orientation ="Horizontal" Height ="100" Margin ="0,10,0,0" > < Image Source ="{Binding PictureURL}" Width ="80" Height ="100" Stretch ="Fill" DataContext ="{Binding}" HorizontalAlignment ="Left" VerticalAlignment ="Center" Margin ="0,0,10,0" /> < StackPanel Orientation ="Vertical" Height ="100" VerticalAlignment ="Top" > < StackPanel Orientation ="Horizontal" Height ="Auto" VerticalAlignment ="Top" > < TextBlock Width ="320" FontSize ="18" Text ="{Binding Name}" TextWrapping ="Wrap" VerticalAlignment ="Top" /> </ StackPanel > < StackPanel Orientation ="Horizontal" Height ="60" > < TextBlock Width ="320" FontSize ="32" Text ="{Binding PriceFormatted}" /> </ StackPanel > </ StackPanel > </ StackPanel > </ DataTemplate > </ ListBox.ItemTemplate > </ ListBox > </ Grid > < Button Content ="" Height ="72" Name ="button1" Width ="160" Margin ="288,17,8,28" Click ="button1_Click" /> </ Grid > </ controls:PivotItem > </ controls:Pivot > </ phone:PhoneApplicationPage > * This source code was highlighted with Source Code Highlighter .
< phone:PhoneApplicationPage x:Class ="ozon.MainPage" xmlns ="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x ="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:phone ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" xmlns:shell ="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" xmlns:d ="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc ="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:controls ="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls" mc:Ignorable ="d" d:DesignWidth ="480" d:DesignHeight ="768" FontFamily ="{StaticResource PhoneFontFamilyNormal}" FontSize ="{StaticResource PhoneFontSizeNormal}" Foreground ="{StaticResource PhoneForegroundBrush}" SupportedOrientations ="Portrait" Orientation ="Portrait" shell:SystemTray . IsVisible ="True" > < controls:Pivot > < controls:Pivot.Title > < TextBlock > OZON.RU </ TextBlock > </ controls:Pivot.Title > < controls:PivotItem Header ="" Foreground ="Black" > < Grid x:Name ="LayoutRoot" Background ="Transparent" > < Grid.RowDefinitions > < RowDefinition Height ="Auto" /> < RowDefinition Height ="*" /> </ Grid.RowDefinitions > < StackPanel x:Name ="TitlePanel" Grid . Row ="0" Margin ="12,17,0,28" UseLayoutRounding ="True" HorizontalAlignment ="Left" > < TextBox Grid . RowSpan ="2" Height ="72" Margin ="0,0,0,0" Name ="textBox1" Text ="" Width ="288" /> </ StackPanel > < Grid x:Name ="ContentPanel" Grid . Row ="1" Margin ="12,0,12,0" > < ListBox x:Name ="Results" Height ="Auto" HorizontalAlignment ="Left" Margin ="4,3,0,0" VerticalAlignment ="Top" Width ="423" > < ListBox.ItemTemplate > < DataTemplate > < StackPanel Orientation ="Horizontal" Height ="100" Margin ="0,10,0,0" > < Image Source ="{Binding PictureURL}" Width ="80" Height ="100" Stretch ="Fill" DataContext ="{Binding}" HorizontalAlignment ="Left" VerticalAlignment ="Center" Margin ="0,0,10,0" /> < StackPanel Orientation ="Vertical" Height ="100" VerticalAlignment ="Top" > < StackPanel Orientation ="Horizontal" Height ="Auto" VerticalAlignment ="Top" > < TextBlock Width ="320" FontSize ="18" Text ="{Binding Name}" TextWrapping ="Wrap" VerticalAlignment ="Top" /> </ StackPanel > < StackPanel Orientation ="Horizontal" Height ="60" > < TextBlock Width ="320" FontSize ="32" Text ="{Binding PriceFormatted}" /> </ StackPanel > </ StackPanel > </ StackPanel > </ DataTemplate > </ ListBox.ItemTemplate > </ ListBox > </ Grid > < Button Content ="" Height ="72" Name ="button1" Width ="160" Margin ="288,17,8,28" Click ="button1_Click" /> </ Grid > </ controls:PivotItem > </ controls:Pivot > </ phone:PhoneApplicationPage > * This source code was highlighted with Source Code Highlighter .

In order for this markup to work properly, do not forget to connect the necessary libraries (Windows Phone Controls). You can also immediately add several more libraries, such as System.Net (we will use it to access the WebClient class), as well as System.Xml.Linq to access the XDocument class.
We will not go deep into the markup, here’s the principle is clear: Place everything on the Pivot element (then suddenly you want to expand the application to several pages), give the main page the title “Search”. Under this disgrace we place TextBox and Button, by clicking on which search will be carried out. Well, we will all output to the usual ListBox, albeit a bit modified for a more pleasant viewing of the results.

So, in the end, we have something like this:

image

3. The markup we received, now you need to attach data to it. To begin, we will write the class OzonItem, which will be a data container about a single search result.
  1. using System;
  2. using System.Collections. Generic ;
  3. using System.Linq;
  4. using System.Text;
  5. namespace ozon
  6. {
  7. public class OzonItem
  8. {
  9. public int ID { get ; set ; }
  10. public string Name { get ; set ; }
  11. public string PictureURL { get ; set ; }
  12. public int isAvailable { get ; set ; }
  13. public string Price { get ; set ; }
  14. public string PriceFormatted { get ; set ; }
  15. public OzonItem ( int ID, string Name, string PictureURL, int isAvailable, string Price)
  16. {
  17. this .ID = ID;
  18. this .Name = Name;
  19. this .PictureURL = PictureURL;
  20. this .isAvailable = isAvailable;
  21. this .Price = Price;
  22. this .PriceFormatted = double .Parse (Price) .ToString () + "rub." ;
  23. }
  24. public override string ToString ()
  25. {
  26. string info = "" ;
  27. info + = this .GetType (). ToString () + "\ n" ;
  28. info + = "ID:" + this .ID + "\ n" ;
  29. info + = "Name:" + this .Name + "\ n" ;
  30. info + = "PictureURL:" + this .PictureURL + "\ n" ;
  31. info + = "isAvailable:" + this .isAvailable + "\ n" ;
  32. info + = "Price:" + this .Price + "\ n" ;
  33. return info;
  34. }
  35. }
  36. }
* This source code was highlighted with Source Code Highlighter .

As can be seen from the code, we will store the ID, Picture, Name, Availability and Price. Also immediately add a field to store the formatted date.

4. Application logic. When you start, we get a page with TextBox, where we enter a search query. Then click the “Search” button and get the results from Ozon.ru.

Actually, here is the page class code.

  1. public partial class MainPage: PhoneApplicationPage
  2. {
  3. // Constructor
  4. public MainPage ()
  5. {
  6. Initializecomponent ();
  7. }
  8. private void button1_Click ( object sender, RoutedEventArgs e)
  9. {
  10. WebClient data = new WebClient ();
  11. data.DownloadStringCompleted + = new DownloadStringCompletedEventHandler (OnDownloadItemsCompleted);
  12. data.DownloadStringAsync ( new Uri ( "http://www.ozon.ru/webservice/webservice.asmx/SearchWebService?searchText=" + textBox1.Text + "& searchContext =" ));
  13. }
  14. private void OnDownloadItemsCompleted ( object sender, DownloadStringCompletedEventArgs e)
  15. {
  16. if (e.Error! = null )
  17. {
  18. // throws NotFound
  19. throw e.Error;
  20. }
  21. XDocument xml = XDocument .Parse (e.Result);
  22. // results from search
  23. List <OzonItem> results = new List <OzonItem> ();
  24. IEnumerable < XElement > list = xml.Descendants ( "SearchItems" );
  25. if (list! = null )
  26. {
  27. foreach ( XElement node in list)
  28. {
  29. results.Add ( new OzonItem (
  30. int .Parse (node.Element ( "ID" ) .Value),
  31. node.Element ( "Name" ) .Value,
  32. node.Element ( "Picture" ) .Value.Replace ( "/ small" , "" ) .Replace ( ".gif" , ".jpg" ),
  33. int .Parse (node.Element ( "ItemAvailabilityID" ) .Value),
  34. node.Element ( "Price" ) .Value
  35. ))
  36. }
  37. }
  38. this .Results.ItemsSource = results;
  39. }
  40. }
* This source code was highlighted with Source Code Highlighter .


Here, from interesting things you can note the process of loading XML. Those who have already used Silverlight in their applications know that all requests in any services need to be done asynchronously in the background, which we are doing here. The button1_Click method is a handler for pressing the “Search” button. When you click the XML, it starts downloading, and at the end, the OnDownloadItemsCompleted function is executed (this can be seen from the delegate to data.DownloadStringCompleted). After the jump, I thought to use the XMLDocument class, but it was not in the System.Xml space. So I decided to use the XDocument class. What are we doing next? We decrypt the resulting string from Ozon.ru, select the SearchItems tag, then go over the array of these elements, recording them in the List collection. As a result, we have all the results in a typed collection, which we attach to the ListBox as a data source.

Here is a screen with an example of the application:
image

If you have any questions or additions, then I will be happy to hear.

Source: https://habr.com/ru/post/111354/


All Articles