Silverlightを使用した最初のWindows Phone 7シリーズアプリを体験してください

あなたへの挨拶、Habrasociety。

このトピックでは、アプリケーションの例を使用して、Windows Phone 7で最初のアプリケーションを作成する方法を説明します。



要するに。 .NETでは、私は初心者のプログラマであるため、最適化されていないコードを厳密に判断する価値はないとすぐに言わなければなりません。 最近、Windows Phone 7シリーズプラットフォームに興味があり、そのための簡単なアプリケーションを作成しようと決めました-Ozon.ruを検索



ストアのウェブサイトをざっと見て、サイト検索を操作するためのXMLインターフェースを見つけました。 ここにあります:

www.ozon.ru/webservice/webservice.asmx/SearchWebService?searchText=test&searchContext=



検索パラメーターは、GETパラメーターsearchTextに含まれています。



1.では、始めましょう。 まず、Visual Studio 2010でWindows Phoneアプリケーションプロジェクトを作成する必要があります(この開発環境を使用します)。







ozonプロジェクトと呼びましょう。 その結果、マークアップ付きのデフォルトページを取得します。



画像



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 .



  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 .





このマークアップが正常に機能するために、必要なライブラリ(Windows Phoneコントロール)を接続することを忘れないでください。 System.Net(WebClientクラスにアクセスするために使用します)やXDocumentクラスにアクセスするためのSystem.Xml.Linqなど、いくつかのライブラリをすぐに追加することもできます。

マークアップに深く入りません。ここではすべてが明確です。すべてをPivot要素に配置し(突然、アプリケーションを複数のページに展開したい場合)、メインページに「検索」というタイトルを付けます。 この不名誉の下で、クリックして検索を実行するTextBoxとButtonを配置します。 さて、結果をより快適に表示するためにわずかに変更しましたが、すべて通常のListBoxに出力します。



したがって、最終的には次のようなものがあります。



画像



3.マークアップを取得しました。次に、データを添付する必要があります。 まず、OzonItemクラスを作成します。このクラスは、1つの検索結果に関するデータのコンテナーになります。





  1. システムを使用して ;
  2. System.Collections を使用します。 ジェネリック
  3. System.Linq を使用します。
  4. using System.Text;
  5. 名前空間オゾン
  6. {
  7. パブリック クラス OzonItem
  8. {
  9. パブリック int ID { get ; セット ; }
  10. パブリック ストリング Name { get ; セット ; }
  11. パブリック ストリング PictureURL { get ; セット ; }
  12. public int isAvailable { get ; セット ; }
  13. パブリック ストリング Price { get ; セット ; }
  14. パブリック 文字列 PriceFormatted { get ; セット ; }
  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. パブリック オーバーライド 文字列 ToString()
  25. {
  26. 文字列情報= "" ;
  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. 情報を返す ;
  34. }
  35. }
  36. }
*このソースコードは、 ソースコードハイライターで強調表示されました。


コードからわかるように、ID、写真、名前、在庫状況、価格を保存します。 また、書式設定された日付を保存するフィールドをすぐに追加します。



4.アプリケーションのロジック。 起動時に、検索クエリを入力するTextBoxを含むページを取得します。 次に、「検索」ボタンをクリックして、Ozon.ruから結果を取得します。



実際、ページクラスコードは次のとおりです。







  1. パブリック 部分 クラス MainPage:PhoneApplicationPage
  2. {
  3. //コンストラクター
  4. パブリック MainPage()
  5. {
  6. InitializeComponent();
  7. }
  8. private void button1_Click( オブジェクト送信者、RoutedEventArgs e)
  9. {
  10. WebClientデータ= 新しい 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( オブジェクト送信者、DownloadStringCompletedEventArgs e)
  15. {
  16. if (e.Error!= null
  17. {
  18. // NotFoundをスローします
  19. throw e.Error;
  20. }
  21. XDocument xml = XDocument .Parse(e.Result);
  22. //検索の結果
  23. List <OzonItem> results = new List <OzonItem>();
  24. IEnumerable < XElement > list = xml.Descendants( "SearchItems" );
  25. if (list!= null
  26. {
  27. foreach (リスト内の XElementノード)
  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. }
*このソースコードは、 ソースコードハイライターで強調表示されました。




ここで興味深いのは、XMLの読み込みプロセスです。 アプリケーションで既にSilverlightを使用している人は、サービス内のすべての要求はバックグラウンドで非同期に実行する必要があることを知っています。これがここで行われていることです。 button1_Clickメソッドは、[検索]ボタンをクリックするためのハンドラーです。 XMLをクリックすると、ダウンロードが開始され、最後にOnDownloadItemsCompleted関数が実行されます(これは、data.DownloadStringCompletedに転送されるデリゲートから確認できます)。 ジャンプの後、XMLDocumentクラスを使用することを考えましたが、System.Xmlスペースにはありませんでした。 そこで、XDocumentクラスを使用することにしました。 次に何をしますか? Ozon.ruから受信した文字列を解析し、「SearchItems」タグを使用して選択を行ってから、これらの要素の配列を調べて、同時にListコレクションに書き込みます。 その結果、すべての結果は型付きコレクションに格納され、データソースとしてListBoxにアタッチされます。



以下に、アプリケーションの例を示す画面を示します。

画像



ご質問や追加がありましたら、お気軽にご連絡ください。



All Articles