C# Class Catel.LogAnalyzer.Behaviors.DropFileBehavior

This is an Attached Behavior and is intended for use with XAML objects to enable binding a drag and drop event to an ICommand.
Afficher le fichier Open project: Catel/Catel.LogAnalyzer

Méthodes publiques

Méthode Description
SetCommand ( this inUiElement, ICommand inCommand ) : void

The setter. This sets the value of the PreviewDropCommandProperty Dependency Property. It is expected that you use this only in XAML This appears in XAML with the "Set" stripped off. XAML usage:

Private Methods

Méthode Description
CommandPropertyChangedCallBack ( DependencyObject inDependencyObject, System.Windows.DependencyPropertyChangedEventArgs inEventArgs ) : void

The OnCommandChanged method. This event handles the initial binding and future binding changes to the bound ICommand

GetCommand ( UIElement inUiElement ) : ICommand

Gets the PreviewDropCommand assigned to the PreviewDropCommandProperty DependencyProperty. As this is only needed by this class, it is private.

UIElement_Drop ( object sender, System.Windows.DragEventArgs e ) : void

Method Details

SetCommand() public static méthode

The setter. This sets the value of the PreviewDropCommandProperty Dependency Property. It is expected that you use this only in XAML This appears in XAML with the "Set" stripped off. XAML usage:
public static SetCommand ( this inUiElement, ICommand inCommand ) : void
inUiElement this A UIElement object. In XAML this is automatically passed /// in, so you don't have to enter anything in XAML.
inCommand ICommand An object that implements ICommand.
Résultat void