title: Reference click method from another source file in XAML?
body: <p>I have a button with a click method assigned to it. I'd like to move that method to another CS file so I may reuse it in other places. Is it possible in XAML to reference a method, click method, from a CS source file outside of the Pages source file?</p>
  
  <p><code>&lt;Button x:Name="TheRedButton" Click="DoNotPressTheRedButton_Click" /&gt;</code></p>
  
  <p>I want to locate <code>DoNotPressTheRedButton_Click</code> in another source file.</p>
  
  <p><code>ButtonMethods.cs</code></p>
  
  <p>and then use it in my Page from XAML</p>
  
  <p><code>MyPage.xaml</code></p>
  
  <p>What do I need to write in XAML in order to do this?</p>
  
  <p>I thought I need:</p>
  
  <p><code>xmlns:helpermethods="using:CoreProject.HelperMethods"</code></p>
  
  <p>then,</p>
  
  <p><code>&lt;Button x:Name="TheRedButton" Click="helpermethods:ButtonMethods.DoNotPressTheRedButton_Click" /&gt;</code></p>
  
  <p>But I'm getting compiler errors... CS1002 and CS1513. So obviously it's not the right syntax. Is this even possible?</p>