C# 클래스 Yuhan.WPF.Controls.AdornedControl

A content control that allows an adorner for the content to be defined in XAML.
상속: System.Windows.Controls.ContentControl
파일 보기 프로젝트 열기: hansuky/Yuhan 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
AdornedTemplatePartNameProperty System.Windows.DependencyProperty
AdornerContentProperty System.Windows.DependencyProperty
AdornerOffsetXProperty System.Windows.DependencyProperty
AdornerOffsetYProperty System.Windows.DependencyProperty
CloseAdornerTimeOutProperty System.Windows.DependencyProperty
FadeInAdornerCommand System.Windows.Input.RoutedCommand
FadeInTimeProperty System.Windows.DependencyProperty
FadeOutAdornerCommand System.Windows.Input.RoutedCommand
FadeOutTimeProperty System.Windows.DependencyProperty
HideAdornerCommand System.Windows.Input.RoutedCommand
HorizontalAdornerPlacementProperty System.Windows.DependencyProperty
IsAdornerVisibleProperty System.Windows.DependencyProperty
IsMouseOverShowEnabledProperty System.Windows.DependencyProperty
ShowAdornerCommand System.Windows.Input.RoutedCommand
VerticalAdornerPlacementProperty System.Windows.DependencyProperty

공개 메소드들

메소드 설명
FadeInAdorner ( ) : void

Fade the adorner in and make it visible.

FadeOutAdorner ( ) : void

Fade the adorner out and make it visible.

FindNamedChild ( FrameworkElement rootElement, string childName ) : FrameworkElement

Finds a child element in the visual tree that has the specified name. Returns null if no child with that name exists.

HideAdorner ( ) : void

Hide the adorner.

OnApplyTemplate ( ) : void

Called to build the visual tree.

ShowAdorner ( ) : void

Show the adorner.

보호된 메소드들

메소드 설명
OnMouseEnter ( System.Windows.Input.MouseEventArgs e ) : void

Called when the mouse cursor enters the area of the adorned control.

OnMouseLeave ( System.Windows.Input.MouseEventArgs e ) : void

Called when the mouse cursor leaves the area of the adorned control.

비공개 메소드들

메소드 설명
AdornedControl ( ) : System

Static constructor to register command bindings.

AdornedControl_DataContextChanged ( object sender, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Event raised when the DataContext of the adorned control changes.

AdornerContent_PropertyChanged ( DependencyObject o, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Event raised when the value of AdornerContent has changed.

CloseAdornerTimeOut_PropertyChanged ( DependencyObject o, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Event raised when the CloseAdornerTimeOut property has change.

FadeInAdornerCommand_Executed ( object target, System.Windows.Input.ExecutedRoutedEventArgs e ) : void

Event raised when the FadeIn command is executed.

FadeOutAdornerCommand_Executed ( object target, System.Windows.Input.ExecutedRoutedEventArgs e ) : void

Event raised when the FadeOut command is executed.

HideAdornerCommand_Executed ( object target, System.Windows.Input.ExecutedRoutedEventArgs e ) : void

Event raised when the Hide command is executed.

HideAdornerInternal ( ) : void

Internal method to hide the adorner.

IsAdornerVisible_PropertyChanged ( DependencyObject o, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Event raised when the value of IsAdornerVisible has changed.

IsMouseOverShowEnabled_PropertyChanged ( DependencyObject o, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Event raised when the IsMouseOverShowEnabled property has changed.

MouseEnterLogic ( ) : void

Shared mouse enter code.

MouseLeaveLogic ( ) : void

Shared mouse leave code.

ShowAdornerCommand_Executed ( object target, System.Windows.Input.ExecutedRoutedEventArgs e ) : void

Event raised when the Show command is executed.

ShowAdornerInternal ( ) : void

Internal method to show the adorner.

ShowOrHideAdornerInternal ( ) : void

Internal method to show or hide the adorner based on the value of IsAdornerVisible.

UpdateAdornerDataContext ( ) : void

Update the DataContext of the adorner from the adorned control.

adornerContent_MouseEnter ( object sender, System.Windows.Input.MouseEventArgs e ) : void

Event raised when the mouse cursor enters the area of the adorner.

adornerContent_MouseLeave ( object sender, System.Windows.Input.MouseEventArgs e ) : void

Event raised when the mouse cursor leaves the area of the adorner.

closeAdornerTimer_Tick ( object sender, EventArgs e ) : void

Called when the close adorner time-out has ellapsed, the mouse has moved away from the adorned control and the adorner and it is time to close the adorner.

fadeInAnimation_Completed ( object sender, EventArgs e ) : void

Event raised when the fade in animation has completed.

fadeOutAnimation_Completed ( object sender, EventArgs e ) : void

Event raised when the fade-out animation has completed.

메소드 상세

FadeInAdorner() 공개 메소드

Fade the adorner in and make it visible.
public FadeInAdorner ( ) : void
리턴 void

FadeOutAdorner() 공개 메소드

Fade the adorner out and make it visible.
public FadeOutAdorner ( ) : void
리턴 void

FindNamedChild() 공개 정적인 메소드

Finds a child element in the visual tree that has the specified name. Returns null if no child with that name exists.
public static FindNamedChild ( FrameworkElement rootElement, string childName ) : FrameworkElement
rootElement System.Windows.FrameworkElement
childName string
리턴 System.Windows.FrameworkElement

HideAdorner() 공개 메소드

Hide the adorner.
public HideAdorner ( ) : void
리턴 void

OnApplyTemplate() 공개 메소드

Called to build the visual tree.
public OnApplyTemplate ( ) : void
리턴 void

OnMouseEnter() 보호된 메소드

Called when the mouse cursor enters the area of the adorned control.
protected OnMouseEnter ( System.Windows.Input.MouseEventArgs e ) : void
e System.Windows.Input.MouseEventArgs
리턴 void

OnMouseLeave() 보호된 메소드

Called when the mouse cursor leaves the area of the adorned control.
protected OnMouseLeave ( System.Windows.Input.MouseEventArgs e ) : void
e System.Windows.Input.MouseEventArgs
리턴 void

ShowAdorner() 공개 메소드

Show the adorner.
public ShowAdorner ( ) : void
리턴 void

프로퍼티 상세

AdornedTemplatePartNameProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows AdornedTemplatePartNameProperty
리턴 System.Windows.DependencyProperty

AdornerContentProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows AdornerContentProperty
리턴 System.Windows.DependencyProperty

AdornerOffsetXProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows AdornerOffsetXProperty
리턴 System.Windows.DependencyProperty

AdornerOffsetYProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows AdornerOffsetYProperty
리턴 System.Windows.DependencyProperty

CloseAdornerTimeOutProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows CloseAdornerTimeOutProperty
리턴 System.Windows.DependencyProperty

FadeInAdornerCommand 공개적으로 정적으로 프로퍼티

public static RoutedCommand,System.Windows.Input FadeInAdornerCommand
리턴 System.Windows.Input.RoutedCommand

FadeInTimeProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows FadeInTimeProperty
리턴 System.Windows.DependencyProperty

FadeOutAdornerCommand 공개적으로 정적으로 프로퍼티

public static RoutedCommand,System.Windows.Input FadeOutAdornerCommand
리턴 System.Windows.Input.RoutedCommand

FadeOutTimeProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows FadeOutTimeProperty
리턴 System.Windows.DependencyProperty

HideAdornerCommand 공개적으로 정적으로 프로퍼티

public static RoutedCommand,System.Windows.Input HideAdornerCommand
리턴 System.Windows.Input.RoutedCommand

HorizontalAdornerPlacementProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows HorizontalAdornerPlacementProperty
리턴 System.Windows.DependencyProperty

IsAdornerVisibleProperty 공개적으로 정적으로 프로퍼티

Dependency properties.
public static DependencyProperty,System.Windows IsAdornerVisibleProperty
리턴 System.Windows.DependencyProperty

IsMouseOverShowEnabledProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows IsMouseOverShowEnabledProperty
리턴 System.Windows.DependencyProperty

ShowAdornerCommand 공개적으로 정적으로 프로퍼티

Commands.
public static RoutedCommand,System.Windows.Input ShowAdornerCommand
리턴 System.Windows.Input.RoutedCommand

VerticalAdornerPlacementProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows VerticalAdornerPlacementProperty
리턴 System.Windows.DependencyProperty