title: How to LiveBind Firemonkey TListbox that has a Custom Style?
body: <p>Following the EMB example "Custom List" found in "RAD Studio\12.0\Samples\FireMonkey\CustomListBox"</p>
  
  <p>It demonstrated by code how to have Items customized on the ListBox.</p>
  
  <p>Inserting one Item on the TListBox by code:</p>
  
  <pre><code>  // create custom item
    Item := TListBoxItem.Create(nil);
    Item.Parent := ListBox1;
    Item.StyleLookup := 'CustomItem';
    Item.Text := 'item ' + IntToStr(Item.Index); // set filename
    if Odd(Item.Index) then
      Item.ItemData.Bitmap := Image1.Bitmap // set thumbnail
    else
      Item.ItemData.Bitmap := Image2.Bitmap; // set thumbnail
    Item.StylesData['resolution'] := '1024x768 px'; // set size
    Item.StylesData['depth'] := '32 bit';
    Item.StylesData['visible'] := true; // set Checkbox value
  </code></pre>
  
  <p>I want to do the same using LiveBinding exclusively.</p>
  
  <p>I could success show the style and bind some of the items:</p>
  
  <p><img src="https://i.stack.imgur.com/qgzdI.png" alt="TListBox with Customized Items"></p>
  
  <p>And some of the LiveBindings (using a prototype):</p>
  
  <p><img src="https://i.stack.imgur.com/jLrYa.png" alt="LiveBinding"></p>
  
  <p>And this is a piece of the custom style from the delphi example:</p>
  
  <p><img src="https://i.stack.imgur.com/rwlew.png" alt="Custom Style"></p>
  
  <p>My questions:</p>
  
  <ol>
  <li>How can I access the other 3 defined items to fill up with data?</li>
  <li>How can I get the event from the Button and CheckBox (both going to same event handler)</li>
  <li>How can I make that works in a frame? There is no working StyleBook component at design time</li>
  </ol>
  
  <p>Bonus question :)</p>
  
  <p>Is it possible to have all above working with a StyleBook exclusive for this kind of need? (a StyleBook that holds all and only TListBoxItems Sytles?) , so no messing with the StyleBook that is the form´s defined.</p>