This is a migrated thread and some comments may be shown as answers.
TileViewItem events
2 Answers 20 Views
This is a migrated thread and some comments may be shown as answers.
Trude
Top achievements
Rank 2
Trude asked on 21 Jun 2011, 08:30 AM
I have a databound tileview with a custom itemcontainerstyle (contenttemplate):
<telerik:RadTileView Grid.Row="1" x:Name="TileView1" ItemContainerStyle="{StaticResource RadTileViewItemStyle1}"
                                  IsSelectionEnabled="True" SelectionMode="Single" MaximizeMode="Zero"
                                  Loaded="TileView1_Loaded" PreviewTileSelectionChanged="TileView1_PreviewTileSelectionChanged">
    <telerik:RadTileView.ItemTemplate>
        <DataTemplate>
            <TextBlock Text="{Binding name}"/>
        </DataTemplate>
    </telerik:RadTileView.ItemTemplate>
    <telerik:RadTileView.ContentTemplate>
        <DataTemplate>
            <TextBlock Text="{Binding description}"/>
        </DataTemplate>
     </telerik:RadTileView.ContentTemplate>
</telerik:RadTileView>

How can I subscribe to events from the individual TileViewItems in this scenario; for example MouseEnter/MouseLeave?

2 Answers, 1 is accepted

Sort by
0
Accepted
Zarko
Telerik team
answered on 21 Jun 2011, 01:10 PM
Hello Jorn,
In your case you'll have to wait until the RadTileView generate the containers of the items and manually subscribe for their events in code behind.
For further references could you please examine the attached project and if you have more questions feel free to ask.

Regards,
Zarko
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Trude
Top achievements
Rank 2
answered on 21 Jun 2011, 01:37 PM
I suspected that I had to go this route, but thanks for the attached project; it will save me some time!
Asked by
Trude
Top achievements
Rank 2
Answers by
Zarko
Telerik team
Trude
Top achievements
Rank 2
Share this question
or