Added few buttons on expander header...Buttons are not clickable...
I have done like below...Created a DataTemplate
<DataTemplate x:Key="ExpanderHeaderTemplate"><StackPanel Orientation="Horizontal"><TextBlock Text="Schedule" Background="{StaticResource CRPortalTheme_Search_HeaderRow}" FontSize="14" FontFamily="Arial" FontWeight="Bold"/><StackPanel Orientation="Horizontal" Margin="510 0 2 0"><StackPanel Orientation="Horizontal" Margin="0 0 20 0" ><CheckBox Content="Custom" Margin="0 5 10 0" IsEnabled="False" Foreground="Black" IsChecked="{Binding Path=IsCustomSchedule}"/><Button HorizontalAlignment="Left" VerticalAlignment="Center" Height="22" Width="25" Margin="0 0 10 0" Command="{Binding CopyScheduleCommand}" ToolTip="Copy Schedule"><Button.Content><Image Source="../../Common/Images/copy.ico" Stretch="Fill"/></Button.Content></Button><Button HorizontalAlignment="Left" VerticalAlignment="Center" Height="22" Width="25" Command="{Binding PasteScheduleCommand}" ToolTip="Paste Schedule" ><Button.Content><Image Source="../../Common/Images/paste.ico" Stretch="Fill"/></Button.Content></Button></StackPanel><Button HorizontalAlignment="Left" Height="22" Width="70" Content="Generate" Margin="0 0 10 0" Command="{Binding GenerateScheduleCommand}" /></StackPanel></StackPanel></DataTemplate>
Using above DataTemplate like below
<Expander HeaderTemplate="{DynamicResource ExpanderHeaderTemplate}"
Copy/paste/Generate buttons are not Clickable. When I click on these buttons, it invokes the expander's expand/collapse events.
Any Idea ?
Thanks
Ashish Dhyani