title: Get Backgroundcolor of themed TListView
body: <p>Since XE2, there are several themes that can be used for your application. E.g. <em>Carbon</em> that changes the background color of the TListView to <em>gray</em> besides other things.</p>
  
  <p>Is there any way to get this color?<br>
  TListView.Color returns <em>white</em> altough the background is some kind of <em>gray</em>.</p>
  
  <p>I tried using StyleServices.GetElementDetails with a snippet like this:</p>
  
  <pre><code>     var   lColor: TColor;
             lDetails: TThemedElementDetails;
  
       if StyleServices.Enabled then
       begin
          lDetails := StyleServices.GetElementDetails(tlListviewRoot);
          StyleServices.GetElementColor(lDetails, ecFillColor, lColor);
       end;
  </code></pre>
  
  <p>But <code>GetElementColor</code>fails and returns <em>false</em>. Am I using the wrong parameter? Or is my approach just wrong.</p>
  
  <p>The possible parameters can be found here:<br>
  <a href="http://docwiki.embarcadero.com/Libraries/XE3/de/Vcl.Themes.TThemedListview" rel="nofollow noreferrer">TThemedListView</a><br>
  <a href="http://docwiki.embarcadero.com/Libraries/XE2/de/Vcl.Themes.TElementColor" rel="nofollow noreferrer">TElementColor</a></p>
  
  <p>Thank you.
  <br><br></p>
  
  <p>P.S.: I also read <a href="https://stackoverflow.com/questions/10094396/delphi-xe2-styles-painting">this post</a> but the answer didn't help me so far.</p>