{"id":163837,"date":"2012-12-25T13:25:03","date_gmt":"2012-12-25T09:25:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=163837"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=163837","title":{"rendered":"<span class=\"post_title\">\u0420\u0430\u0437\u0431\u0438\u0440\u0430\u0435\u043c\u0441\u044f \u0441 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u043e\u0439 Windows 8 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043d\u0430 XAML\/\u0421#, \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u044f \u043f\u0440\u043e\u0441\u0442\u043e\u0439 RSS Reader. \u0427.2<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t<img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/8d1\/c17\/fbb\/8d1c17fbb9477b9165bca81028305c7d.png\"\/><br \/>  \u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u043c \u0440\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u043e\u0439 RSS Reader. \u041d\u0430\u0447\u0430\u043b\u043e \u0431\u044b\u043b\u043e \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u043e \u0432 \u0441\u0442\u0430\u0442\u044c\u0435 <a href=\"http:\/\/habrahabr.ru\/company\/microsoft\/blog\/163711\/\">\u0420\u0430\u0437\u0431\u0438\u0440\u0430\u0435\u043c\u0441\u044f \u0441 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u043e\u0439 Windows 8 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043d\u0430 XAML\/\u0421#, \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u044f \u043f\u0440\u043e\u0441\u0442\u043e\u0439 RSS Reader. \u0427.1<\/a>, \u0433\u0434\u0435 \u043c\u044b \u0441\u043e\u0437\u0434\u0430\u043b\u0438 \u043f\u0440\u043e\u0435\u043a\u0442 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 RSS \u0438 \u043d\u0430\u0447\u0430\u043b\u0438 \u0434\u0435\u043b\u0430\u0442\u044c \u043a\u0440\u0430\u0441\u0438\u0432\u043e. \u0412 \u044d\u0442\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u043c\u044b \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u043a\u0440\u0430\u0441\u043e\u0442\u044b \u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0432 \u043d\u0430\u0448\u0443 \u0447\u0438\u0442\u0430\u043b\u043a\u0443.<a name=\"habracut\"><\/a><\/p>\n<h2>\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u043c \u0434\u0435\u043b\u0430\u0442\u044c \u043a\u0440\u0430\u0441\u0438\u0432\u043e<\/h2>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0443 \u043d\u0430\u0441 \u043a\u0430\u0440\u0441\u0438\u0432\u044b\u0435 \u043f\u043b\u0438\u0442\u043a\u0438 \u0440\u0430\u0437\u043d\u044b\u0445 \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u0432, \u043f\u0440\u0438\u0447\u0451\u043c, \u043c\u044b \u043c\u043e\u0436\u0435\u043c, \u043f\u0440\u0438 \u0436\u0435\u043b\u0430\u043d\u0438\u0438 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0437\u0430\u043c\u043e\u0441\u0442\u0438\u0442\u044c \u043f\u043e \u0440\u0430\u0437\u043d\u043e\u043c\u0443 \u0433\u0440\u0443\u043f\u043f\u044b. \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0435\u043c. \u0411\u043b\u043e\u0433 \u0421\u0442\u0430\u0441\u0430 \u041f\u0430\u0432\u043b\u043e\u0432\u0430 \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u0441 \u043f\u043b\u0438\u0442\u043a\u0430\u043c\u0438 \u0440\u0430\u0437\u043d\u044b\u0445 \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u0432, \u0430 \u0434\u043b\u044f \u0411\u043b\u043e\u0433\u0430 \u0421\u0435\u0440\u0433\u0435\u044f \u041f\u0443\u0433\u0430\u0447\u0451\u0432\u0430 \u2013 \u043d\u0435 \u0431\u0443\u0434\u0435\u043c \u0431\u0430\u043b\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0442\u0430\u043a\u0438\u043c \u0440\u0430\u0437\u043d\u043e\u043e\u0431\u0440\u0430\u0437\u0438\u0435\u043c.<\/p>\n<p>  \u041a\u0430\u043a \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c? \u0412\u0441\u0451 \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442\u043e. \u041b\u043e\u0433\u0438\u043a\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u0440\u0430\u0437\u043c\u0435\u0440\u044b \u043f\u043b\u0438\u0442\u043e\u043a \u0432\u0441\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430 \u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 PrepareContainerForItemOverride \u043a\u043b\u0430\u0441\u0441\u0430 VariableSizeGridView, \u0442\u0430\u043a \u0447\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0442\u0443\u0434\u0430 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0432\u0443\u044e\u0449\u0443\u044e \u043b\u043e\u0433\u0438\u043a\u0443.<\/p>\n<p>  \u0427\u0442\u043e\u0431\u044b \u043e\u0442\u043b\u0438\u0447\u0438\u0442\u044c \u0433\u0440\u0443\u043f\u043f\u044b, \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c UniqueID, \u0434\u043b\u044f \u0433\u0440\u0443\u043f\u043f\u044b \u043e\u043d \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 URL \u043d\u0430 RSS. \u0414\u043e\u0431\u0430\u0432\u0438\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043a\u043e\u0434 \u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u044e&nbsp; PrepareContainerForItemOverride:<\/p>\n<pre><code class=\"cs\">int group = -1;  if (dataItem.Group.UniqueId.Contains(&quot;stas&quot;)) {     group = 1; }<\/code><\/pre>\n<p>  \u0410 \u0442\u0435\u043f\u0435\u0440\u044c \u0438\u0437\u043c\u0435\u043d\u0438\u043c \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0442\u043e\u0433\u043e, \u0434\u043b\u044f \u043a\u0430\u043a\u043e\u0439 \u0433\u0440\u0443\u043f\u043f\u044b \u043e\u043d\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442. \u0434\u043e\u0431\u0430\u0432\u0438\u0432 \u0443\u0441\u043b\u043e\u0432\u0438\u0435.<\/p>\n<pre><code class=\"cs\">if (group &gt; 0) {      if (index == 2)     {         colVal = 2;         rowVal = 4;     }      if (index == 5)     {         colVal = 4;         rowVal = 4;     } }<\/code><\/pre>\n<p>  \u0417\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u043a\u0430\u043a \u0442\u0435\u043f\u0435\u0440\u044c \u044d\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442.<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/367\/e8b\/ffb\/367e8bffb4bf3a01d6e17ccbd847501c.png\"\/><\/p>\n<p>  \u041f\u043e\u0441\u0442\u0430\u0432\u0438\u043c \u0441\u0435\u0431\u0435 \u0435\u0449\u0451 \u0431\u043e\u043b\u0435\u0435 \u0441\u043b\u043e\u0436\u043d\u0443\u044e \u0437\u0430\u0434\u0430\u0447\u0443. \u0410 \u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u0443 \u043d\u0430\u0441 \u0434\u043b\u044f \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432\u043e\u043e\u0431\u0449\u0435 \u0440\u0430\u0437\u043d\u044b\u0435 \u0448\u0430\u0431\u043b\u043e\u043d\u044b \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f? \u042d\u0442\u043e \u0442\u0430\u043a\u0436\u0435 \u0440\u0435\u0448\u0430\u0435\u043c\u0430\u044f \u0437\u0430\u0434\u0430\u0447\u0430. \u041d\u0430\u043c \u043f\u043e\u044f\u0442\u044c \u043f\u0440\u0438\u0434\u0451\u0442\u0441\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0432\u043e\u0439 \u043a\u043b\u0430\u0441\u0441, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u043b\u043e\u0433\u0438\u043a\u0443, \u043d\u043e \u0442\u0435\u043f\u0435\u0440\u044c \u043e\u043d \u0431\u0443\u0434\u0435\u0442 \u0443\u0436\u0435 \u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043e\u0442 DataTemplateSelector.<\/p>\n<p>  \u0418\u0442\u0430\u043a, \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0432 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043d\u043e\u0432\u044b\u0439 \u043a\u043b\u0430\u0441\u0441 \u0441 \u0438\u043c\u0435\u043d\u0435\u043c MyDataTemplateSelector, \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c, \u0447\u0442\u043e \u043e\u043d \u043d\u0430\u0441\u043b\u0435\u0434\u0443\u0442\u0441\u044f \u043e\u0442 DataTemplateSelector. \u0414\u043e\u0431\u0430\u0432\u044f\u043b\u044f\u0435\u043c \u0432 using \u0434\u0438\u0440\u0435\u043a\u0442\u0438\u0432\u044b:<\/p>\n<pre><code class=\"cs\">using Windows.UI.Xaml; using Windows.UI.Xaml.Controls;<\/code><\/pre>\n<p>  \u0418 \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u044e&nbsp; SelectTemplateCore. \u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<\/p>\n<pre><code class=\"cs\">using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls;  namespace MyReader {     class MyDataTemplateSelector : DataTemplateSelector     {         protected override DataTemplate SelectTemplateCore(object item, DependencyObject container)         {             return base.SelectTemplateCore(item, container);         }     } } <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0443\u0436\u043d\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0432 XAML \u0444\u0430\u0439\u043b\u0435 \u0442\u0435 \u0448\u0430\u0431\u043b\u043e\u043d\u044b \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0432\u044b\u0431\u0438\u0440\u0430\u0442\u044c. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043e\u0442\u0440\u043a\u044b\u0432\u0430\u0435\u043c GroupedItemsPage.xaml \u0438 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043a \u0440\u0435\u0441\u0443\u0440\u0441\u0430\u043c \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b, \u0433\u0434\u0435 \u0443 \u043d\u0430\u0441 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d \u0448\u0430\u0431\u043b\u043e\u043d CustomItemTemplate:<\/p>\n<pre><code class=\"html\">&lt;DataTemplate x:Key=&quot;CustomItemTemplate&quot;&gt;   &lt;Grid HorizontalAlignment=&quot;Left&quot;&gt;     &lt;Border Background=&quot;{StaticResource ListViewItemPlaceholderBackgroundThemeBrush}&quot;&gt;         &lt;Image Source=&quot;{Binding Image}&quot; Stretch=&quot;UniformToFill&quot;                 AutomationProperties.Name=&quot;{Binding Title}&quot;\/&gt;     &lt;\/Border&gt;     &lt;StackPanel Background=&quot;{StaticResource ListViewItemOverlayBackgroundThemeBrush}&quot;                  VerticalAlignment=&quot;Bottom&quot;&gt;          &lt;TextBlock Text=&quot;{Binding Title}&quot; Foreground=&quot;{StaticResource ListViewItemOverlayForegroundThemeBrush}&quot;                       Height=&quot;90&quot; Margin=&quot;15,0,15,0&quot; FontSize=&quot;30&quot; \/&gt;     &lt;\/StackPanel&gt;   &lt;\/Grid&gt; &lt;\/DataTemplate&gt;<\/code><\/pre>\n<p>  \u041e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043c \u0435\u0449\u0451 \u043e\u0434\u0438\u043d \u0448\u0430\u0431\u043b\u043e\u043d \u0441 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f\u043c\u0438 \u2013 \u0438\u0437\u043c\u0435\u043d\u0438\u043c \u0432\u044b\u0440\u0430\u0432\u0430\u043d\u0438\u0432\u0430\u0438\u044f:<\/p>\n<pre><code class=\"html\">&lt;DataTemplate x:Key=&quot;CustomItemTemplate2&quot;&gt;     &lt;Grid HorizontalAlignment=&quot;Right&quot;&gt;         &lt;Border Background=&quot;{StaticResource ListViewItemPlaceholderBackgroundThemeBrush}&quot;&gt;             &lt;Image Source=&quot;{Binding Image}&quot; Stretch=&quot;UniformToFill&quot;                      AutomationProperties.Name=&quot;{Binding Title}&quot;\/&gt;         &lt;\/Border&gt;         &lt;StackPanel Background=&quot;{StaticResource ListViewItemOverlayBackgroundThemeBrush}&quot; VerticalAlignment=&quot;Top&quot;&gt;             &lt;TextBlock Text=&quot;{Binding Title}&quot; Foreground=&quot;{StaticResource ListViewItemOverlayForegroundThemeBrush}&quot;                          Height=&quot;90&quot; Margin=&quot;15,0,15,0&quot; FontSize=&quot;30&quot; \/&gt;         &lt;\/StackPanel&gt;     &lt;\/Grid&gt; &lt;\/DataTemplate&gt;<\/code><\/pre>\n<p>  \u0412\u0435\u0440\u043d\u0451\u043c\u0441\u044f \u0442\u0435\u043f\u0435\u0440\u044c \u043a \u043d\u0430\u0448\u0435\u043c\u0443 \u043a\u043b\u0430\u0441\u0441\u0443 MyDataTemplateSelector \u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u043a\u043e\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442, \u043a\u0430\u043a\u043e\u0439 \u0448\u0430\u0431\u043b\u043e\u043d \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c, \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0442\u043e\u0433\u043e, \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u043a\u0430\u043a\u043e\u0439 \u0433\u0440\u0443\u043f\u043f\u044b \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442\u0441\u044f:<\/p>\n<pre><code class=\"cs\">using MyReader.Data; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls;  namespace MyReader {     class MyDataTemplateSelector : DataTemplateSelector     {          public DataTemplate Template1 { get; set; }         public DataTemplate Template2 { get; set; }          protected override DataTemplate SelectTemplateCore(object item, DependencyObject container)         {             RSSDataItem dataItem = item as RSSDataItem;                          if (dataItem.Group.UniqueId.Contains(&quot;stas&quot;))             {                 return Template1;             }             else                 return Template2;         }     } } <\/code><\/pre>\n<p>  \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c\u0441\u044f \u043a GroupedItemsPage.xaml \u0438 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043a \u0440\u0435\u0441\u0443\u0440\u0441\u0430\u043c \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b, \u0433\u0434\u0435 \u0443 \u043d\u0430\u0441 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u044b \u0448\u0430\u0431\u043b\u043e\u043d\u044b \u0438 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u043c \u043d\u0430\u0448 \u0441\u0435\u043b\u0435\u043a\u0442\u043e\u0440:<\/p>\n<pre><code class=\"html\">&lt;local:MyDataTemplateSelector x:Key=&quot;MyDataSelector&quot;                                Template1=&quot;{StaticResource CustomItemTemplate}&quot;                                Template2=&quot;{StaticResource CustomItemTemplate2}&quot;\/&gt;<\/code><\/pre>\n<p>\u0418 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0441\u0435\u043b\u0435\u043a\u0442\u043e\u0440 \u0432 \u0432\u043c\u0435\u0441\u0442\u043e \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u0448\u0430\u0431\u043b\u043e\u043d\u0430 \u0434\u043b\u044f Item \u0434\u043b\u044f local:VariableSizeGridView:<\/p>\n<pre><code class=\"html\">local:VariableSizeGridView             x:Name=&quot;itemGridView&quot;             AutomationProperties.AutomationId=&quot;ItemGridView&quot;             AutomationProperties.Name=&quot;Grouped Items&quot;             Grid.RowSpan=&quot;2&quot;             Padding=&quot;116,137,40,46&quot;             ItemsSource=&quot;{Binding Source={StaticResource groupedItemsViewSource}}&quot;             ItemTemplateSelector=&quot;{StaticResource MyDataSelector}&quot;              SelectionMode=&quot;None&quot;             IsSwipeEnabled=&quot;false&quot;             IsItemClickEnabled=&quot;True&quot;             ItemClick=&quot;ItemView_ItemClick&quot;&gt;<\/code><\/pre>\n<p>  \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u0447\u0442\u043e\u0431\u044b \u0443\u0431\u0435\u0434\u0438\u0442\u044c\u0441\u044f, \u0447\u0442\u043e \u0432\u0441\u0451 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u043a\u0430\u043a \u0437\u0430\u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u043e.<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/8d1\/c17\/fbb\/8d1c17fbb9477b9165bca81028305c7d.png\"\/><\/p>\n<p>  \u041e\u0442\u043b\u0438\u0447\u043d\u043e, \u0432\u0441\u0451 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0442\u0430\u043a, \u043a\u0430\u043a \u0438 \u0437\u0430\u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u043e, \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043a \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 \u0436\u0438\u0432\u044b\u043c\u0438 \u043f\u043b\u0438\u0442\u043a\u0430\u043c\u0438.<\/p>\n<p>  \u041d\u043e, \u043f\u0435\u0440\u0435\u0434 \u0442\u0435\u043c, \u043a\u0430\u043a \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043a \u0436\u0438\u0432\u044b\u043c \u043f\u043b\u0438\u0442\u043a\u0430\u043c, \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0438\u0437\u043c\u0435\u043d\u0438\u043c \u0441\u0442\u0438\u043b\u044c \u0442\u0435\u043a\u0441\u0442\u0430 \u043f\u043e\u0434\u043f\u0438\u0441\u0438 \u043d\u0430 \u043f\u043b\u0438\u0442\u043a\u0430\u0445 \u0433\u0440\u0443\u043f\u043f\u044b.<\/p>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0432\u0435 \u0441\u0442\u0438\u043b\u044f BasicTextStyle \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u043d\u0430\u043c \u0441\u0442\u0438\u043b\u0438 \u0438 \u0440\u0430\u0437\u043c\u0435\u0441\u0442\u0438\u043c \u0438\u0445 \u0432 \u0440\u0435\u0441\u0443\u0440\u0441\u0430\u0445 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b GroupedItemsPage.xaml:<\/p>\n<pre><code class=\"html\">&lt;Style x:Key=&quot;ExtendedTextStyle&quot; TargetType=&quot;TextBlock&quot; BasedOn=&quot;{StaticResource BasicTextStyle}&quot;&gt;    &lt;Setter Property=&quot;LineHeight&quot; Value=&quot;40&quot;\/&gt;    &lt;Setter Property=&quot;LineStackingStrategy&quot; Value=&quot;BlockLineHeight&quot;\/&gt;    &lt;!-- Properly align text along its baseline --&gt;    &lt;Setter Property=&quot;RenderTransform&quot;&gt;       &lt;Setter.Value&gt;          &lt;TranslateTransform X=&quot;-1&quot; Y=&quot;4&quot;\/&gt;        &lt;\/Setter.Value&gt;     &lt;\/Setter&gt; &lt;\/Style&gt;  &lt;Style x:Key=&quot;ExtendedTitleTextStyle&quot; TargetType=&quot;TextBlock&quot; BasedOn=&quot;{StaticResource ExtendedTextStyle}&quot;&gt;      &lt;Setter Property=&quot;FontWeight&quot; Value=&quot;SemiBold&quot;\/&gt; &lt;\/Style&gt;<\/code><\/pre>\n<p>  \u0418 \u043d\u0430\u043b\u043e\u0436\u0438\u043c \u044d\u0442\u043e\u0442 \u0441\u0442\u0438\u043b\u044c \u043d\u0430 \u0442\u0435\u043a\u0441\u0442 \u0432 \u043d\u0430\u0448\u0438\u0445 \u0448\u0430\u0431\u043b\u043e\u043d\u0430\u0445::<\/p>\n<pre><code class=\"html\">&lt;DataTemplate x:Key=&quot;CustomItemTemplate&quot;&gt;     &lt;Grid HorizontalAlignment=&quot;Left&quot;&gt;         &lt;Border Background=&quot;{StaticResource ListViewItemPlaceholderBackgroundThemeBrush}&quot;&gt;             &lt;Image Source=&quot;{Binding Image}&quot; Stretch=&quot;UniformToFill&quot;                     AutomationProperties.Name=&quot;{Binding Title}&quot;\/&gt;         &lt;\/Border&gt;         &lt;StackPanel Background=&quot;{StaticResource ListViewItemOverlayBackgroundThemeBrush}&quot; VerticalAlignment=&quot;Bottom&quot;&gt;             &lt;TextBlock Text=&quot;{Binding Title}&quot; Foreground=&quot;{StaticResource ListViewItemOverlayForegroundThemeBrush}&quot;                          Style=&quot;{StaticResource ExtendedTitleTextStyle}&quot; Height=&quot;90&quot; Margin=&quot;15,0,15,0&quot; FontSize=&quot;30&quot; \/&gt;         &lt;\/StackPanel&gt;     &lt;\/Grid&gt; &lt;\/DataTemplate&gt;  &lt;DataTemplate x:Key=&quot;CustomItemTemplate2&quot;&gt;     &lt;Grid HorizontalAlignment=&quot;Right&quot;&gt;         &lt;Border Background=&quot;{StaticResource ListViewItemPlaceholderBackgroundThemeBrush}&quot;&gt;             &lt;Image Source=&quot;{Binding Image}&quot; Stretch=&quot;UniformToFill&quot;                     AutomationProperties.Name=&quot;{Binding Title}&quot;\/&gt;         &lt;\/Border&gt;         &lt;StackPanel Background=&quot;{StaticResource ListViewItemOverlayBackgroundThemeBrush}&quot; VerticalAlignment=&quot;Top&quot;&gt;             &lt;TextBlock Text=&quot;{Binding Title}&quot; Foreground=&quot;{StaticResource ListViewItemOverlayForegroundThemeBrush}&quot;                          Style=&quot;{StaticResource ExtendedTitleTextStyle}&quot; Height=&quot;90&quot; Margin=&quot;15,0,15,0&quot; FontSize=&quot;30&quot; \/&gt;         &lt;\/StackPanel&gt;     &lt;\/Grid&gt; &lt;\/DataTemplate&gt;<\/code><\/pre>\n<p>  \u0417\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u043a\u0430\u043a \u0442\u0435\u043f\u0435\u0440\u044c \u0432\u044b\u0433\u043b\u044f\u0434\u044f\u0442 \u043f\u043e\u0434\u043f\u0438\u0441\u0438 \u043d\u0430 \u0441\u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u044b\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u0445.<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/caf\/4c9\/3bf\/caf4c93bf1b8aca97b1ff894a0cd8a4c.png\"\/><\/p>\n<p>  \u0412\u0441\u0451 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u043b\u0443\u0447\u0448\u0435. \u0415\u0441\u043b\u0438 \u0435\u0441\u0442\u044c \u0436\u0435\u043b\u0430\u043d\u0438\u0435, \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0438\u0433\u0440\u0430\u0442\u044c\u0441\u044f \u0441\u043e \u0441\u0442\u0438\u043b\u044f\u043c\u0438, \u0434\u043e\u0431\u0438\u0432\u0430\u044f\u0441\u044c \u0436\u0435\u043b\u0430\u0435\u043c\u043e\u0433\u043e \u044d\u0444\u0444\u0435\u043a\u0442\u0430.<\/p>\n<h2>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0436\u0438\u0432\u044b\u0435 \u043f\u043b\u0438\u0442\u043a\u0438<\/h2>\n<p>  \u041f\u0440\u0438\u0448\u043b\u043e \u0432\u0440\u0435\u043c\u044f \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0436\u0438\u0432\u044b\u0435 \u043f\u043b\u0438\u0442\u043a\u0438. \u0422\u0430\u043a \u043a\u0430\u043a \u043f\u043e\u043a\u0430 \u0443 \u043d\u0435\u0441 \u043d\u0435\u0442 \u0441\u0435\u0440\u0432\u0438\u0441\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043b\u0435\u0434\u0438\u0442 \u0437\u0430 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u044f\u043c\u0438, \u043d\u0430\u0448\u0438 \u043f\u043b\u0438\u0442\u043a\u0438 \u0431\u0443\u0434\u0443\u0442 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u0432 \u043c\u043e\u043c\u0435\u043d\u0442 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f RSS, \u0447\u0442\u043e\u0431\u044b \u0440\u0430\u0434\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0432\u043f\u043b\u043e\u0442\u044c \u0434\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0433\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f.<\/p>\n<p>  \u041f\u0435\u0440\u0435\u0439\u0434\u0451\u043c \u0432 \u0444\u0430\u0439\u043b RSSDataSource.cs \u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0432 \u043a\u043b\u0430\u0441\u0441 RSSDataSource \u043c\u0435\u0442\u043e\u0434 UpdateTile:<\/p>\n<pre><code class=\"cs\">public static void UpdateTile() {     var news = RSSDataSource.AllGroups[0].Items.ToList();                 var xml = new XmlDocument();     xml.LoadXml(         string.Format(             @&quot;&lt;?xml version=&quot;&quot;1.0&quot;&quot; encoding=&quot;&quot;utf-8&quot;&quot; ?&gt;     &lt;tile&gt;         &lt;visual branding=&quot;&quot;none&quot;&quot;&gt;             &lt;binding template=&quot;&quot;TileSquarePeekImageAndText03&quot;&quot;&gt;                 &lt;image id=&quot;&quot;1&quot;&quot; src=&quot;&quot;ms-appx:\/\/\/Assets\/Logo.png&quot;&quot; alt=&quot;&quot;alt text&quot;&quot;\/&gt;                 &lt;text id=&quot;&quot;1&quot;&quot;&gt;{0}&lt;\/text&gt;                 &lt;text id=&quot;&quot;2&quot;&quot;&gt;{1}&lt;\/text&gt;                 &lt;text id=&quot;&quot;3&quot;&quot;&gt;{2}&lt;\/text&gt;                 &lt;text id=&quot;&quot;4&quot;&quot;&gt;{3}&lt;\/text&gt;             &lt;\/binding&gt;             &lt;binding template=&quot;&quot;TileWidePeekImageAndText02&quot;&quot;&gt;                                         &lt;image id=&quot;&quot;1&quot;&quot; src=&quot;&quot;ms-appx:\/\/\/Assets\/Habr_WideLogo.png&quot;&quot; alt=&quot;&quot;alt text&quot;&quot;\/&gt;                 &lt;text id=&quot;&quot;1&quot;&quot;&gt;{0}&lt;\/text&gt;                 &lt;text id=&quot;&quot;2&quot;&quot;&gt;{1}&lt;\/text&gt;                 &lt;text id=&quot;&quot;3&quot;&quot;&gt;{2}&lt;\/text&gt;                 &lt;text id=&quot;&quot;4&quot;&quot;&gt;{3}&lt;\/text&gt;             &lt;\/binding&gt;           &lt;\/visual&gt;     &lt;\/tile&gt;&quot;,             news.Count &gt; 0 ? System.Net.WebUtility.HtmlEncode(news[0].Title) : &quot;&quot;,             news.Count &gt; 1 ? System.Net.WebUtility.HtmlEncode(news[1].Title) : &quot;&quot;,             news.Count &gt; 2 ? System.Net.WebUtility.HtmlEncode(news[2].Title) : &quot;&quot;,             news.Count &gt; 3 ? System.Net.WebUtility.HtmlEncode(news[3].Title) : &quot;&quot;));     TileUpdateManager.CreateTileUpdaterForApplication().Update(new TileNotification(xml)); }<\/code><\/pre>\n<p>  \u041d\u0435 \u0437\u0430\u0431\u0443\u0434\u0442\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 \u0431\u043b\u043e\u043a using \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0434\u0438\u0440\u0435\u043a\u0442\u0438\u0432\u044b:<\/p>\n<pre><code class=\"cs\">using Windows.Data.Xml.Dom; using Windows.UI.Notifications; <\/code><\/pre>\n<p>  \u0417\u0434\u0435\u0441\u044c \u043c\u044b \u0441\u043e\u0437\u0434\u0430\u0451\u043c XML \u0434\u043b\u044f \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u043b\u0438\u0442\u043e\u043a, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043e\u0434\u043d\u0438 \u0438\u0437 \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u0432, \u0438 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u043c \u0441\u0430\u043c\u0438 \u043f\u043b\u0438\u0442\u043a\u0438. \u041a\u043e\u0434 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043f\u0440\u043e\u0437\u0440\u0430\u0447\u0435\u043d. \u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u044d\u0442\u043e \u043f\u0440\u0438\u043c\u0435\u0440, \u0442\u043e \u044f \u0432\u0441\u0435\u0433\u0434\u0430 \u0431\u0435\u0440\u0443 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0435\u0440\u0432\u044b\u0439 RSS \u043f\u043e\u0442\u043e\u043a.<\/p>\n<p>  \u0427\u0442\u043e\u0431\u044b \u044d\u0442\u043e \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e, \u043d\u0430\u0434\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432\u044b\u0437\u043e\u0432 \u044d\u0442\u043e\u0433\u043e \u043c\u0435\u0442\u043e\u0434\u0430 \u0432 \u043b\u044e\u0431\u043e\u0435 \u043c\u0435\u0441\u0442\u043e, \u0433\u0434\u0435 \u0443\u0436\u0435 \u0434\u043e\u0441\u0442\u043f\u0435\u043d RSS. \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u043c await \u043a \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c\u044b\u043c \u043c\u0435\u0442\u043e\u0434\u0430\u043c AddGroupForFeedAsync \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 RSS \u0438 \u0442\u043e\u0433\u0434\u0430 \u0441\u043c\u043e\u0436\u0435\u043c \u0441\u043f\u043e\u043a\u043e\u0439\u043d\u043e \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c \u043d\u0430\u0448\u0443 \u0444\u0443\u043d\u043a\u0446\u0438\u044e, \u043f\u043e\u0441\u043b\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0444\u0438\u0434\u0430. <\/p>\n<p>  \u041f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043a \u043c\u0435\u0442\u043e\u0434\u0443 LoadState \u0432 \u0444\u0430\u0439\u043b\u0435 GroupedItemsPage.xaml.cs, \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043a \u043d\u0435\u043c\u0443 async, \u043a \u043c\u0435\u0442\u043e\u0434\u0430\u043c AddGroupForFeedAsync \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432\u044b\u0437\u043e\u0432 UpdateTile::<\/p>\n<pre><code class=\"cs\">protected async override void LoadState(Object navigationParameter, Dictionary&lt;String, Object&gt; pageState) {    this.DefaultViewModel[&quot;Groups&quot;] = RSSDataSource.AllGroups;     await RSSDataSource.AddGroupForFeedAsync(&quot;http:\/\/blogs.msdn.com\/b\/stasus\/rss.aspx&quot;);    RSSDataSource.UpdateTile();    RSSDataSource.AddGroupForFeedAsync(&quot;http:\/\/www.spugachev.com\/feed&quot;); }<\/code><\/pre>\n<p>  \u042f \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u043e\u0442\u0441\u0442\u0430\u0432\u0438\u043b \u043e\u0434\u0438\u043d \u0432\u044b\u0437\u043e\u0432 \u0431\u0435\u0437 await \u2013 \u043f\u043e\u0437\u0436\u0435 \u2013 \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u043a\u0430\u043a \u044d\u0442\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442, \u043f\u0440\u0438 \u0441\u0442\u0430\u0440\u0442\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f.<\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043a \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044e \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 WideLogo. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0441\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u0444\u0430\u0439\u043b Habr_WideLogo.scale-100.png \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u043c 310 \u043d\u0430 150, \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0435\u0433\u043e \u0432 \u043f\u0430\u043f\u043a\u0443 Asset \u043f\u0440\u043e\u0435\u043a\u0442\u0430. \u0414\u0430\u043b\u0435\u0435 \u0434\u0432\u043e\u0439\u043d\u044b\u043c \u0449\u0435\u043b\u0447\u043a\u043e\u043c \u043f\u043e \u0444\u0430\u0439\u043b\u0443 Package.appxmanifest \u043e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 \u0435\u0433\u043e \u0432\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u044b\u0439 \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440 \u0438 \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 WideLogo \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435:<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/32c\/07b\/e7d\/32c07be7d80d61f5e1efade5fc8dba23.png\"\/><\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u044b \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0433\u043e\u0442\u043e\u0432\u044b \u043a \u0437\u0430\u043f\u0443\u0441\u043a\u0443 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. \u0417\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 \u0435\u0433\u043e, \u043f\u043e\u0442\u043e\u043c \u0437\u0430\u043a\u0440\u043e\u0439\u0442\u0435. \u041f\u0435\u0440\u0435\u0439\u0434\u0438\u0442\u0435 \u043d\u0430 \u0441\u0442\u0430\u0440\u0442\u043e\u0432\u044b\u0439 \u044d\u043a\u0440\u0430\u043d \u0438 \u0443\u0431\u0435\u0434\u0438\u0442\u0435\u0441\u044c, \u0447\u0442\u043e \u0436\u0438\u0432\u044b\u0435 \u043f\u043b\u0438\u0442\u043a\u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442, \u043f\u0440\u0438\u0447\u0451\u043c, \u043a\u0430\u043a \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043d\u044b\u0435, \u0442\u0430\u043a \u0438 \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u044b\u0435!<\/p>\n<p>  \u041f\u0440\u0438\u0448\u043b\u043e \u0432\u0440\u0435\u043c\u044f \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442 \u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442\u044b. \u041d\u0430\u0447\u043d\u0451\u043c \u0441 \u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442\u0430 Share. \u0420\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u043c \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u0434\u0430\u043d\u043d\u044b\u0445. \u041f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0431\u0443\u0434\u0435\u043c \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u043f\u043e\u0441\u0442\u0430 RSS, \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0434\u0430\u043d\u043d\u044b\u0445.<\/p>\n<p>  \u041f\u0435\u0440\u0435\u0439\u0434\u0451\u043c \u043a \u043a\u043e\u0434\u0443 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b ItemDetailPage.xaml.cs. \u0414\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u0434\u0430\u043d\u043d\u044b\u0435, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441\u043e\u0431\u044b\u0442\u0438\u0435 DataRequested \u0434\u043b\u044f DataTransferManager. \u0418\u0442\u0430\u043a, \u043d\u0430\u0447\u043d\u0451\u043c.<\/p>\n<h2>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442 Share<\/h2>\n<p>  \u0417\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u0435\u043c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u0441\u043e\u0431\u044b\u0442\u0438\u044f DataRequested \u0432 NavigateTo \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b (\u0438 \u043e\u0442\u043f\u0438\u0448\u0435\u043c\u0441\u044f \u043e\u0442 \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u0432 NavigateFrom), \u0438 \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u043c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u0438\u043c \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043f\u043e\u0441\u0442\u0430 \u0438 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443:<\/p>\n<pre><code class=\"cs\">protected override void OnNavigatedTo(NavigationEventArgs e)         {             base.OnNavigatedTo(e);             DataTransferManager.GetForCurrentView().DataRequested += Share_DataRequested;         }          protected override void OnNavigatedFrom(NavigationEventArgs e)         {             base.OnNavigatedFrom(e);             DataTransferManager.GetForCurrentView().DataRequested -= Share_DataRequested;         }          private void Share_DataRequested(DataTransferManager sender, DataRequestedEventArgs args)         {             var selectedItem = (RSSDataItem)this.flipView.SelectedItem;              args.Request.Data.Properties.Title = selectedItem.Title;             args.Request.Data.Properties.Description = selectedItem.Content;             args.Request.Data.SetText(selectedItem.Content);                     }<\/code><\/pre>\n<p>  \u0417\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0435\u0439\u0434\u0438\u0442\u0435 \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u043f\u043e\u0441\u0442\u0430 \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435, \u0447\u0442\u043e \u0442\u0435\u043f\u0435\u0440\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043c\u043e\u0436\u0435\u0442 \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u0434\u0440\u0443\u0433\u0438\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f.<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/ddf\/20e\/e40\/ddf20ee40d753c60f4218eea58ba994b.png\"\/><\/p>\n<p>  \u041d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043b\u044f \u0440\u0430\u0441\u0448\u0430\u0440\u0438\u0432\u0430\u043d\u0438\u044f. \u042d\u0442\u043e \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0430 \u043f\u043e\u0441\u0442\u0430, URI \u043f\u043e\u0441\u0442\u0430 \u0438 \u0442.\u0434. \u041f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e \u043c\u043e\u0434\u0438\u0444\u0446\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u0434 \u043c\u0435\u0442\u043e\u0434\u0430 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u043d\u0438\u044f \u0444\u0438\u0434\u0430, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0441\u043e\u043f\u0443\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u043a\u043b\u0430\u0441\u0441\u044b, \u0447\u0442\u043e\u0431\u044b \u0431\u044b\u043b\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u0434\u0430\u043d\u043d\u044b\u0445. \u0411\u043e\u043b\u044c\u0448\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u2013 \u0441 \u0431\u043e\u043b\u044c\u0448\u0438\u043c \u043a\u043e\u043b\u0447\u0438\u0447\u0435\u0441\u0442\u0432\u043e\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f!<\/p>\n<p>  \u0412\u043d\u0435\u0437\u0430\u043f\u043d\u043e \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u0443\u0432\u0448\u0435\u0435 \u0436\u0435\u043b\u0430\u043d\u0438\u0435 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043f\u0440\u043e DataTemplateSelector \u0441\u0434\u0435\u043b\u0430\u043b\u043e \u0441\u0442\u0430\u0442\u044c\u044e \u0443\u0436\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0431\u043e\u043b\u044c\u0448\u043e\u0439. \u041f\u043e\u044d\u0442\u043e\u043c\u0443, \u043f\u0440\u0438\u0434\u0451\u0442\u0441\u044f \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0442\u0440\u0435\u0442\u044c\u044e \u0447\u0430\u0441\u0442\u044c. \u0412 \u043d\u0435\u0451 \u043f\u0435\u0440\u0435\u043d\u0435\u0441\u0451\u043c \u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442 \u043f\u043e\u0438\u0441\u043a\u0430 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438, \u0435\u0441\u043b\u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f \u2014 \u043f\u0430\u0440\u0430\u043b\u043b\u0430\u043a\u0441 \u0431\u044d\u043a\u0433\u0440\u0430\u0443\u043d\u0434\u0430 \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u0435 \u0432\u0435\u0449\u0438, \u0430 \u0435\u0441\u043b\u0438 \u043d\u0435 \u043f\u043e\u043c\u0435\u0441\u0442\u0438\u0442\u0441\u044f \u2014 \u0441\u0434\u0435\u043b\u0430\u044e \u0435\u0449\u0451 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0447\u0430\u0441\u0442\u0435\u0439.<\/p>\n<p>  \u0422\u0435\u043a\u0443\u0449\u0438\u0439 \u043a\u043e\u0434 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043c\u043e\u0436\u043d\u043e \u0441\u043a\u0430\u0447\u0430\u0442\u044c \u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0435: <a href=\"http:\/\/sdrv.ms\/12CeOGk\">sdrv.ms\/12CeOGk<\/a>    \t   \t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/company\/microsoft\/blog\/163837\/\"> http:\/\/habrahabr.ru\/company\/microsoft\/blog\/163837\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t<img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/8d1\/c17\/fbb\/8d1c17fbb9477b9165bca81028305c7d.png\"\/><br \/>  \u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u043c \u0440\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u043e\u0439 RSS Reader. \u041d\u0430\u0447\u0430\u043b\u043e \u0431\u044b\u043b\u043e \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u043e \u0432 \u0441\u0442\u0430\u0442\u044c\u0435 <a href=\"http:\/\/habrahabr.ru\/company\/microsoft\/blog\/163711\/\">\u0420\u0430\u0437\u0431\u0438\u0440\u0430\u0435\u043c\u0441\u044f \u0441 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u043e\u0439 Windows 8 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043d\u0430 XAML\/\u0421#, \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u044f \u043f\u0440\u043e\u0441\u0442\u043e\u0439 RSS Reader. \u0427.1<\/a>, \u0433\u0434\u0435 \u043c\u044b \u0441\u043e\u0437\u0434\u0430\u043b\u0438 \u043f\u0440\u043e\u0435\u043a\u0442 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 RSS \u0438 \u043d\u0430\u0447\u0430\u043b\u0438 \u0434\u0435\u043b\u0430\u0442\u044c \u043a\u0440\u0430\u0441\u0438\u0432\u043e. \u0412 \u044d\u0442\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u043c\u044b \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u043a\u0440\u0430\u0441\u043e\u0442\u044b \u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0432 \u043d\u0430\u0448\u0443 \u0447\u0438\u0442\u0430\u043b\u043a\u0443.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-163837","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/163837","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=163837"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/163837\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=163837"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=163837"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=163837"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}