This is a migrated thread and some comments may be shown as answers.

Tile - Tap Event Handler

2 Answers 41 Views
TileList
This is a migrated thread and some comments may be shown as answers.
Saher
Top achievements
Rank 1
Saher asked on 16 Jul 2013, 06:30 PM
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 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 18 Jul 2013, 12:01 PM
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 >>
0
Saher
Top achievements
Rank 1
answered on 18 Jul 2013, 04:41 PM
Hello Maya,

Just noticed that, it happens to all controls.

thanks
Tags
TileList
Asked by
Saher
Top achievements
Rank 1
Answers by
Maya
Telerik team
Saher
Top achievements
Rank 1
Share this question
or