ModelHitTestFilterCallback Delegate

A callback delegate that can be assigned to the ModelFilter property of a transacted task.

Namespace:  Microsoft.Windows.Design.Interaction
Assembly:  Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)

Syntax

'Declaration
Public Delegate Function ModelHitTestFilterCallback ( _
    potentialHitTestTarget As ModelItem _
) As HitTestFilterBehavior
public delegate HitTestFilterBehavior ModelHitTestFilterCallback(
    ModelItem potentialHitTestTarget
)
public delegate HitTestFilterBehavior ModelHitTestFilterCallback(
    ModelItem^ potentialHitTestTarget
)
type ModelHitTestFilterCallback = 
    delegate of 
        potentialHitTestTarget:ModelItem -> HitTestFilterBehavior
JScript does not support delegates.

Parameters

Return Value

Type: System.Windows.Media.HitTestFilterBehavior
The filter behavior for this filter.

Remarks

If ModelHitTestFilterCallback is set, hit testing of items on the designer will be filtered through this callback. This allows you to ignore areas of the designer during drag and other transacted operations.

See Also

Reference

Microsoft.Windows.Design.Interaction Namespace

Other Resources

WPF Designer Extensibility