title: WPF DataGrid User Control with Enum Property
body: <p>I have a WPF DataGrid UserControl with enum property.</p>
  
  <pre><code>    public List&lt;myEnum&gt; dataList = new List&lt;myEnum&gt;();
      public enum myEnum
      {
  
          Info,
          Error,
          Warning,
          Debug,
          Success
      }
  </code></pre>
  
  <p>I want to expose this property to the MainWindow where the usercontrol will be hosted. So that I can access it in code like..</p>
  
  <pre><code>        dataGrid1.dataList.Add(logDataGrid1.myEnum.Info);
          dataGrid1.dataList.Add(logDataGrid1.myEnum.Warning);
          dataGrid1.dataList.Add(logDataGrid1.myEnum.Success);
  </code></pre>
  
  <p>Please advise. Or whether any alternative solution for this available?</p>