DataGrid ColumnHeader MouseOver

Jun 13, 2009 at 6:27 PM
The MouseOver setter works in that it displays the colored background...However my context menu does not open. How do you get a context menu to display on the IsMouseOver event in the columnheader?
  <Style x:Key="RouteColumnHeaderStyle" TargetType="{x:Type tk:DataGridColumnHeader}">
        <Setter Property="HorizontalContentAlignment" Value="Center" />        
        <Style.Triggers> 	       
            <DataTrigger Binding="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type CommonControls:CheckpointsGrid}}, Path=CanSupportDivert}" Value="Visible" >
                <Setter Property="ContextMenu" Value="{StaticResource routingColumnHeaderMenu}" />
            </DataTrigger>
            <DataTrigger Binding="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type CommonControls:CheckpointsGrid}}, Path=CanSupportDivert}" Value="Collapsed" >
                <Setter Property="ContextMenu" Value="{StaticResource adhocRoutingColumnHeaderMenu}" />
            </DataTrigger>
            <Trigger Property="IsMouseOver" Value="true" >
                <Setter Property="ContextMenu.IsOpen" Value="true" />
                <Setter Property="Background" Value="Red" />
                <Setter Property="BorderBrush" Value="Black" />
            </Trigger>           
        </Style.Triggers>
    </Style>