Tile - Tap Event Handler

3 posts, 0 answers
  1. Saher
    Saher avatar
    20 posts
    Member since:
    Jul 2013

    Posted 16 Jul 2013 Link to this post

    I am trying to add tap event handler to a tile but I get XamlParseException. The description can also be viewed in StackOverflow on link below:
    Question on StackOverflow

     have the following in my main xaml:
    <telerik:Tile TileType="Single" Width="Auto" Background="#FF559B55" Tap="Tile_Tap">

    And the following in code behind:

    private void Tile_Tap(object sender, GestureEventArgs e)
            {
                myFunction(); 
            }
    I get the following exception on call of InitializeComponent() method:
    System.Windows.Markup.XamlParseException occurred
      Message=Failed to assign to property 'System.Windows.UIElement.Tap'. [Line: 36 Position: 97]
    line 36 position 97 is basically in xaml file where Tap = is defined.

    Your help is appreciated,
    Thanks
  2. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 18 Jul 2013 Link to this post

    Hello Saher,

    This event is not telerik's and it is provided by the Framework. And actually, it might be considered as a bug in it.
    You will get exactly the same behavior if you do the following:

    <TextBlock Tap="TextBlock_Tap" />
     

    Regards,
    Maya
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. DevCraft banner
  4. Saher
    Saher avatar
    20 posts
    Member since:
    Jul 2013

    Posted 18 Jul 2013 Link to this post

    Hello Maya,

    Just noticed that, it happens to all controls.

    thanks
Back to Top