Binding event handler from App.xaml template RRS feed

  • Question

  • I'm trying to bind event handlers (e.g Tap,Imageloaded...etc) in a template i have in my App.xaml , how can i achieve this...if not possible what is the alternative to this ( MVVM way please).
    Monday, June 23, 2014 12:50 PM


  • You should ensure that the controls that you're binding to exist first. They may not be there when App.xaml starts. Try creating them in the page where they are instantiated.

    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.

    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.

    Tuesday, June 24, 2014 12:30 PM