title: DisplayFormat with CultureInfo DateTime
body: <p>I'm trying to get set the DisplayFormat of a public property to the current cultureinfo datetime format. The class will be used for Silverlight Datagrid.</p>
  
  <pre><code>    [DisplayFormat(DataFormatString=CultureInfo.CurrentCulture.DateTimeFormat.ShortDatePattern.ToString())]
      public DateTime createDate { get; set; }
  </code></pre>
  
  <p>It says, only that the argument can only be constant and typeof parameter...</p>
  
  <p>Any ideas?</p>
  
  <p>UPDATE, I tried Lukazoid solution but the Silverlight datagrid ignores the data annotations. The datagrid colums are added in codebehind because of localization.</p>
  
  <p>The column looks like this:</p>
  
  <pre><code>        DataGridTextColumn tcCreateDate = new DataGridTextColumn();
          tcCreateDate.Header = SilverlightApplication.Resources.ContentGrid.dgCreateDate;
          tcCreateDate.Binding = new Binding("createDate");
  </code></pre>