title: How to access App.Current properties in Windows Universal Apps
body: <p>I am trying to bind to <code>App.Current.XYZ</code> properties in my View, however this doesn't seem to be possible, here's an example of what I have:</p>
  
  <pre><code>sealed partial class App : Application
  {
      public MyClassType MyClass { get; private set; }
  
      ...
  </code></pre>
  
  <p>And here is the View:</p>
  
  <pre><code>&lt;Page ... 
      DataContext="{Binding MyClass, Source={x:Static Application.Current}}"&gt;
  </code></pre>
  
  <p>So, this isn't possible because <code>x:Static</code> is no longer supported in Windows Universal (or WinRT), so I have tried exposing the application property through a property in the <strong>code-behind</strong>, like this:</p>
  
  <pre><code>public MyClassType MyClass
  {
      get
      {
          return Application.Current.MyClass;
      }
  }
  </code></pre>
  
  <p>This doesn't work either! There is no intellisense for <code>MyClass</code>, it's completely missing. I have also tried <code>App.Current</code> and still no luck.</p>
  
  <p>Any ideas why my property is not visible through <code>Application.Current.</code>? Or if there is any way I can bind to this property directly through XAML?</p>