I'm new to Silverlight/XAML/C# and havn't figured out all the concepts yet. I'm using the Accordion control together with some templates, the XAML looks like this:
<layoutToolkit:Accordion x:Name="MatchesAccordion" SelectionMode="ZeroOrMore" Width="Auto" SizeChanged="MatchesAccordion_SizeChanged">
<layoutToolkit:Accordion.HeaderTemplate>
<DataTemplate>
<TextBox Text="{Binding Path=Title}" TextWrapping="Wrap" />
</DataTemplate>
</layoutToolkit:Accordion.HeaderTemplate>
<layoutToolkit:Accordion.ContentTemplate>
<DataTemplate>
<TextBox x:Name="ContentTextBox" Text="{Binding Path=Description}" TextWrapping="Wrap" VerticalAlignment="Stretch" IsReadOnly="True"/>
</DataTemplate>
</layoutToolkit:Accordion.ContentTemplate>
</layoutToolkit:Accordion>
This works well. But how would I go about connecting to an event (SizeChanged) on the Accordion.Content object?