title: Datacontext into ListView --- Windows Store Aplication
body: <p>in my Application i have a datacontext into page, but, i want to move this datacontext to ListView, because i need to create more datacontext.</p>
  
  <p>I tried to assign a name to call the DataContext grid, but doesn't work...</p>
  
  <pre><code>&lt;Page
  x:Class="Food_UsuarioWin8.Pages.HUB"
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:local="using:Food_UsuarioWin8.Pages"
  xmlns:vmSegments="using:Food_UsuarioWin8.ViewModels"
  xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  mc:Ignorable="d"&gt;
  
   &lt;/Page.Resources&gt;
  &lt;Page.DataContext&gt;
      &lt;vmSegments:ViewModelSegments x:Name="DataContextSegments"/&gt;
  &lt;/Page.DataContext&gt;
  
   &lt;ListView x:Name="ListViewSegments" Grid.Row="1" Margin="0" DataContext="{StaticResource DataContextSegments}" ItemContainerStyle="{StaticResource ListViewSItemtyleECFood}" &gt;
    &lt;Viewbox&gt;
    &lt;/Viewbox&gt;
   &lt;/ListView&gt;
  </code></pre>