title: RIA services/DataForm: How to use ReadOnly & Description attributes together
body: <p>I have several cases where I have a property that I want to declare readonly, but also give some explanation of how it is calculated/set using the [Display(Description="")] attribute. I would like to do this in the metadata, if possible, rather than override in the dataform itself.</p>
  
  <p>Here's an example:</p>
  
  <pre><code>    [Display(Description = "Total number of travel hours, calculated as total hrs worked - actual working hrs this month")]
      public decimal TravelHours
      {
          get
          {  
              return this.TotalHrsWorked - this.ActualWorkedHours;
          }
      }
  </code></pre>
  
  <p><strong>This won't show the description as a <a href="http://msdn.microsoft.com/en-us/library/system.windows.controls.descriptionviewer%28VS.95%29.aspx" rel="nofollow noreferrer">DescriptionViewer</a> when I bind to this property in a DataForm &amp; DataField.</strong></p>
  
  <p>It seems like when I set the [ReadOnly] attribute it hides the DescriptionViewer, and even setting DescriptionViewerVisibility=Visible in the dataform xaml still doesn't change it. Also, any calculated properties  (no setter) seem to have this attribute enforced by default. It's kind of annoying, because these are the ones I really want to show the descriptionviewer for.</p>
  
  <p>The only way around it I have found so far is to make the property not readonly and add a dummy setter (for calculated properties). That seems like a kludge. </p>
  
  <p><strong>Is there any way to show the dataform/datafield descriptionviewer on readonly properties?</strong></p>