C# 클래스 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.
파일 보기 프로젝트 열기: Catel/Catel.LogAnalyzer

공개 메소드들

메소드 설명
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:

비공개 메소드들

메소드 설명
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

메소드 상세

SetCommand() 공개 정적인 메소드

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.
리턴 void