title: Firemonkey ListBox Item with image
body: <p>i made a Firemonkey custom ListBox Item, designed with a stylebook.
  When i try to insert ListBox items, everything works fine (insert text etc.) except to change the picture in the ListBox Item.</p>
  
  <p>I followed this tutorial on: <a href="http://www.experts-exchange.com/Programming/Languages/Pascal/Delphi/Components/A_10054-Implementing-a-ListView-in-Firemonkey.html" rel="nofollow">http://www.experts-exchange.com</a>.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>procedure TForm2.Button1Click(Sender: TObject);
  var
      i         : Integer;
      LBItem    : TListBoxItem;
      ItemImage : Timage;
  begin
      ListBox1.BeginUpdate;
      ListBox1.Items.Clear;
      try
          for i := 0 to 9 do begin
  
              LBItem := TListBoxItem.Create(nil);
              LBItem.Parent := ListBox1;
              LBItem.StyleLookup := 'rowLayout';
              LBItem.StylesData['textName'] := 'Some text...';
              LBItem.StylesData['textFormat'] := 'Some more text...';
  
              ItemImage := LBItem.FindStyleResource('picture') as TImage;
              if Assigned(ItemImage) then
                  LBItem.ItemData.Bitmap.LoadFromFile('D:\MyTestPicture.jpg');
          end;
      finally
          ListBox1.EndUpdate;
      end;
  end;
  </code></pre>
  
  <p>"rowLayout" is my layout in the stylebook, i made for the ListBox Item.
  "textName" and "textFormat" are some TText, which i placed in the ListBox Item.
  "picture" is the TImage in my ListBox Item.</p>
  
  <p>What is going wrong with my code?
  I am working with Delphi XE4.</p>
  
  <p>Thanks for your help and best regards,
  Holger </p>