Class DisableMouseRightButtonDoubleClickBehavior
Implements a behavior where right mouse button double click has no effect
Behavior<FrameworkElement>.AssociatedObject
Behavior.CreateInstanceCore()
Behavior.Detach()
Behavior.AssociatedType
Namespace: Sartorius.SAF.Presentation.Controls.Behaviors
Assembly: Sartorius.SAF.Presentation.Controls.dll
Syntax
public class DisableMouseRightButtonDoubleClickBehavior : Behavior<FrameworkElement>, IAnimatable, IAttachedObject
Examples
This example illustrates how to use the DisableMouseRightButtonDoubleClickBehavior to disable double click,
<SAF:DataGrid xmlns:b="http://schemas.microsoft.com/xaml/behaviors"
ItemsSource="{Binding Items}"
SelectedItem="{Binding SelectedItem}"
AutoGenerateColumns="True">
<b:Interaction.Behaviors>
<SAF:DisableMouseRightButtonDoubleClickBehavior />
</b:Interaction.Behaviors>
</SAF:DataGrid>
Methods
View SourceOnAttached()
Called after the behavior is attached to an AssociatedObject.
Declaration
protected override void OnAttached()
Overrides
Microsoft.Xaml.Behaviors.Behavior.OnAttached()
Remarks
Override this to hook up functionality to the AssociatedObject.
OnDetaching()
Called when the behavior is being detached from its AssociatedObject, but before it has actually occurred.
Declaration
protected override void OnDetaching()
Overrides
Microsoft.Xaml.Behaviors.Behavior.OnDetaching()
Remarks
Override this to unhook functionality from the AssociatedObject.
OnLoaded(object, EventArgs)
Called when the Microsoft.Xaml.Behaviors.Behavior.AssociatedObject is loaded.
Declaration
protected virtual void OnLoaded(object sender, EventArgs args)
Parameters
| Type | Name | Description |
|---|---|---|
| object | sender | The sender. |
| EventArgs | args | The EventArgs. |
Implements
Microsoft.Xaml.Behaviors.IAttachedObject