title: NativeScript advanced binding in xml
body: <p>I'm trying to archive a way to use binding from xml in a way to be able to:
  swap textField hint via xml binding to get value from an array using dropdown selected index. For example: <code>$parents['listView'].unit[$parents['listView'].index_reference_types]</code></p>
  
  <p>where unit is an array which has unit text for hint.</p>
  
  <pre><code>&lt;GridLayout row="0" rows="*,*"&gt;
      &lt;dd:DropDown cssClass="dropDownGrid" id="dropDown" items="{{ $parents['listView'].types }}" selectedIndex="{{ $parents['listView'].types, index_types }}"/&gt;
  &lt;/GridLayout&gt;
  &lt;GridLayout col="1" columns="*" rows="*"&gt;
      &lt;TextField hint="{{ unit }}" minWidth="50" textAlignment="center" isEnabled="true" keyboardType="number" text="{{ $parents['listView'].hours, hours }}" /&gt;
  &lt;/GridLayout&gt;
  </code></pre>
  
  <p>What makes this harder is a listview itemTemplate full of individual dropDown lists, inputfields and so on.</p>
  
  <p>How can I make inside listview template being views change like on dropDown selection to fire event  (this way I could refresh the listview to get correct values) or how can I set those {{ unit }}'s from array based on the selection of dropDown list. Well basically both are same where firing an event from drop down is better, but not working like outside listview ones are.</p>