title: define Picked Files from File picker as Listview datasource in windows 8
body: <p>I am trying to Set files picked using filepiker as List view datasource. 
  In Windows 8 using Javascript.</p>
  
  <p><strong>HTML:</strong></p>
  
  <pre><code>&lt;div id="smallListIconTextTemplate" data-win-control="WinJS.Binding.Template"&gt;
      &lt;div class="smallListIconTextItem"&gt;
          &lt;img src="#" class="smallListIconTextItem-Image" data-win-bind="src: picture" /&gt;
          &lt;div class="smallListIconTextItem-Detail"&gt;
              &lt;h3 data-win-bind="innerText: title"&gt;&lt;/h3&gt;
              &lt;h6 data-win-bind="innerText: text"&gt;&lt;/h6&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  
  &lt;div id="listView_Id" data-win-control="WinJS.UI.ListView" data-win-options="{
                      itemDataSource: FileData.itemList.dataSource,
                      itemTemplate: select('#smallListIconTextTemplate'),}"&gt;
  </code></pre>
  
  <p><strong>JS:</strong></p>
  
  <pre><code>var dataArray = new Array();
  var openPicker = new Windows.Storage.Pickers.FileOpenPicker();                
  openPicker.viewMode = Windows.Storage.Pickers.PickerViewMode.list;                
  openPicker.fileTypeFilter.replaceAll([".epub"]);          
  var file;
  openPicker.pickMultipleFilesAsync().then(function (files) 
  {        
      if (files.size &gt; 0) 
      {            
          for (var i = 0; i &lt; files.size; i++) 
          {         
         dataArray.push({                    
              title: files[i].displayName,                    
              text: "Author",                    
              picture: "/images/BookImage.jpg"                
          });                
              var dataList = new WinJS.Binding.List(dataArray);                
              var publicMembers = 
              {                    
                  itemList: dataList                
              };                
              WinJS.Namespace.define("FileData", publicMembers);
  </code></pre>
  
  <p>I have array with file data. But unable to get in ListView</p>