I need to add a button to the GroupHeader that will pass through the ID of the Resource pressed to the event.
I have added a button with :
I have added a button with :
<local:OrientedGroupHeaderContentTemplateSelector.VerticalResourceTemplate>
<DataTemplate>
<Border Width="160" Margin="5,0">
<StackPanel Orientation="Vertical">
<TextBlock Foreground="{StaticResource GroupHeaderForeground}" FontSize="12" Text="{Binding Name.DisplayName}" TextWrapping="Wrap" />
<Button Content="Details" Height="23" Name="SummaryPopupCommand" Width="75" Command="{Binding Path=SummaryPopupCommand, Source={StaticResource ViewModel}}" />
</StackPanel>
</Border>
</DataTemplate>
</local:OrientedGroupHeaderContentTemplateSelector.VerticalResourceTemplate>
First of all the button is always disabled and I don't know how to attach the event or pass the ID, can someone please help?