このトピックでは、アプリケーションの例を使用して、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 .
< 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 .
< 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 .
< 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 .
< 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 .
< 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 .
< 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 .
< 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 .
< 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 .
< 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 .
< 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 .
< 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 .
< 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 .
< 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 .
< 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 .
< 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 .
< 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 .
< 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 .
< 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 .
< 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 .
< 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 .
< 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 .
< 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 .
< 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 .
< 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 .
< 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 .
< 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 .
< 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 .
< 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つの検索結果に関するデータのコンテナーになります。
*このソースコードは、 ソースコードハイライターで強調表示されました。
- システムを使用して ;
- System.Collections を使用します。 ジェネリック
- System.Linq を使用します。
- using System.Text;
- 名前空間オゾン
- {
- パブリック クラス OzonItem
- {
- パブリック int ID { get ; セット ; }
- パブリック ストリング Name { get ; セット ; }
- パブリック ストリング PictureURL { get ; セット ; }
- public int isAvailable { get ; セット ; }
- パブリック ストリング Price { get ; セット ; }
- パブリック 文字列 PriceFormatted { get ; セット ; }
- public OzonItem( int ID、 string Name、 string PictureURL、 int isAvailable、 string Price)
- {
- this .ID = ID;
- this .Name = Name;
- this .PictureURL = PictureURL;
- this .isAvailable = isAvailable;
- this .Price = Price;
- this .PriceFormatted = double .Parse(Price).ToString()+ "rub。" ;
- }
- パブリック オーバーライド 文字列 ToString()
- {
- 文字列情報= "" ;
- info + = this .GetType()。ToString()+ "\ n" ;
- info + = "ID:" + this .ID + "\ n" ;
- info + = "Name:" + this .Name + "\ n" ;
- info + = "PictureURL:" + this .PictureURL + "\ n" ;
- info + = "isAvailable:" + this .isAvailable + "\ n" ;
- info + = "Price:" + this .Price + "\ n" ;
- 情報を返す ;
- }
- }
- }
コードからわかるように、ID、写真、名前、在庫状況、価格を保存します。 また、書式設定された日付を保存するフィールドをすぐに追加します。
4.アプリケーションのロジック。 起動時に、検索クエリを入力するTextBoxを含むページを取得します。 次に、「検索」ボタンをクリックして、Ozon.ruから結果を取得します。
実際、ページクラスコードは次のとおりです。
*このソースコードは、 ソースコードハイライターで強調表示されました。
- パブリック 部分 クラス MainPage:PhoneApplicationPage
- {
- //コンストラクター
- パブリック MainPage()
- {
- InitializeComponent();
- }
- private void button1_Click( オブジェクト送信者、RoutedEventArgs e)
- {
- WebClientデータ= 新しい WebClient();
- data.DownloadStringCompleted + = new DownloadStringCompletedEventHandler(OnDownloadItemsCompleted);
- data.DownloadStringAsync( new Uri ( "http://www.ozon.ru/webservice/webservice.asmx/SearchWebService?searchText=" + textBox1.Text + "&searchContext =" ));
- }
- private void OnDownloadItemsCompleted( オブジェクト送信者、DownloadStringCompletedEventArgs e)
- {
- if (e.Error!= null )
- {
- // NotFoundをスローします
- throw e.Error;
- }
- XDocument xml = XDocument .Parse(e.Result);
- //検索の結果
- List <OzonItem> results = new List <OzonItem>();
- IEnumerable < XElement > list = xml.Descendants( "SearchItems" );
- if (list!= null )
- {
- foreach (リスト内の XElementノード)
- {
- results.Add( new OzonItem(
- int .Parse(node.Element( "ID" ).Value)、
- node.Element( "Name" ).Value、
- node.Element( "Picture" ).Value.Replace( "/ small" 、 "" ).Replace( ".gif" 、 ".jpg" )、
- int .Parse(node.Element( "ItemAvailabilityID" ) .Value )、
- node.Element( "Price" ).Value
- ));
- }
- }
- this .Results.ItemsSource = results;
- }
- }
ここで興味深いのは、XMLの読み込みプロセスです。 アプリケーションで既にSilverlightを使用している人は、サービス内のすべての要求はバックグラウンドで非同期に実行する必要があることを知っています。これがここで行われていることです。 button1_Clickメソッドは、[検索]ボタンをクリックするためのハンドラーです。 XMLをクリックすると、ダウンロードが開始され、最後にOnDownloadItemsCompleted関数が実行されます(これは、data.DownloadStringCompletedに転送されるデリゲートから確認できます)。 ジャンプの後、XMLDocumentクラスを使用することを考えましたが、System.Xmlスペースにはありませんでした。 そこで、XDocumentクラスを使用することにしました。 次に何をしますか? Ozon.ruから受信した文字列を解析し、「SearchItems」タグを使用して選択を行ってから、これらの要素の配列を調べて、同時にListコレクションに書き込みます。 その結果、すべての結果は型付きコレクションに格納され、データソースとしてListBoxにアタッチされます。
以下に、アプリケーションの例を示す画面を示します。

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