Hi,
I'm trying to make the most of conventions in WP8. Specifically I wanted to use that of Hyperlinkbutton. It perfectly works when I use it inside a container like a Grid:
```
<Grid x:Name="LayoutRoot">
<HyperlinkButton x:Name="DoAction" Content="Action">
</Grid>
```
However, if I do the same inside a DataTemplate of a Listbox, it ignores the convention and the method of the ViewModel is not raised:
```
<ListBox x:Name="Items">
<ListBox.ItemTemplate>
<DataTemplate>
<HyperlinkButton x:Name="DoAction" Content="Action">
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
```
Then, I have to attach manually an action if i want the binding to work: cal:Message.Attach="DoAction".
Do you know what's going on?
Comments: If I remember correct: Conventions are not applied in an ItemTemplate. With an ItemTemplate you override the default behaviour of Caliburn.Micro, so there will not be any Conventions applied.
I'm trying to make the most of conventions in WP8. Specifically I wanted to use that of Hyperlinkbutton. It perfectly works when I use it inside a container like a Grid:
```
<Grid x:Name="LayoutRoot">
<HyperlinkButton x:Name="DoAction" Content="Action">
</Grid>
```
However, if I do the same inside a DataTemplate of a Listbox, it ignores the convention and the method of the ViewModel is not raised:
```
<ListBox x:Name="Items">
<ListBox.ItemTemplate>
<DataTemplate>
<HyperlinkButton x:Name="DoAction" Content="Action">
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
```
Then, I have to attach manually an action if i want the binding to work: cal:Message.Attach="DoAction".
Do you know what's going on?
Comments: If I remember correct: Conventions are not applied in an ItemTemplate. With an ItemTemplate you override the default behaviour of Caliburn.Micro, so there will not be any Conventions applied.