title: How to add back-code to an event of a datatemplate's control that is located in a separate xaml file (with no .cs file related)?
body: <p>Usually, when I build my UWP applications, I put all my <code>DataTemplate</code> styles in a separate "Styles.xaml" file, to which the general <code>ResourceDictionary</code> in App.xaml is linked to through merging them.</p>
  
  <p>A standard way that all professional developers use.</p>
  
  <p>This time, however, I need to add a function to a certain event in a xaml control inside a DataTemplate, but I know the way of doing it only when the <code>DataTemplate</code> itself is defined inline (i.e. in the <code>ItemTemplate</code> property).</p>
  
  <p>How can I, then, add some back-code to this event?</p>
  
  <p>-> <em>Please note that I already know data-binding an event to a function in a ViewModel and I already use it</em>... this time I'm talking about adding some back-code that is not related to (i.e. contained in) the 'model' itself.</p>
  
  <p>Thank you for your attention.</p>
  
  <p>Best regards.</p>