C# 클래스 withSIX.Core.Presentation.Wpf.Extensions.TextBlockTrimmedTooltip

Attached property provider which adds the read-only attached property TextBlockService.IsTextTrimmed to the framework's TextBlock control.
파일 보기 프로젝트 열기: SIXNetworks/withSIX.Desktop

공개 프로퍼티들

프로퍼티 타입 설명
AutomaticToolTipEnabledProperty System.Windows.DependencyProperty
IsTextTrimmedKey System.Windows.DependencyPropertyKey
IsTextTrimmedProperty System.Windows.DependencyProperty

공개 메소드들

메소드 설명
OnTextBlockSizeChanged ( object sender, System.Windows.SizeChangedEventArgs e ) : void

Event handler for TextBlock's SizeChanged routed event. Triggers evaluation of the IsTextTrimmed attached property.

SetAutomaticToolTipEnabled ( DependencyObject element, bool value ) : void

Sets the current effective value of the AutomaticToolTipEnabled attached property.

비공개 메소드들

메소드 설명
CalculateIsTextTrimmed ( System.Windows.Controls.TextBlock textBlock ) : bool

Determines whether or not the text in textBlock is currently being trimmed due to width or height constraints.

Does not work properly when TextWrapping is set to WrapWithOverflow.

GetAutomaticToolTipEnabled ( DependencyObject element ) : bool
GetIsTextTrimmed ( System.Windows.Controls.TextBlock target ) : bool
SetIsTextTrimmed ( System.Windows.Controls.TextBlock target, bool value ) : void

Sets the instance value of read-only dependency property IsTextTrimmed.

TextBlockTrimmedTooltip ( ) : System

메소드 상세

OnTextBlockSizeChanged() 공개 정적인 메소드

Event handler for TextBlock's SizeChanged routed event. Triggers evaluation of the IsTextTrimmed attached property.
public static OnTextBlockSizeChanged ( object sender, System.Windows.SizeChangedEventArgs e ) : void
sender object Object where the event handler is attached
e System.Windows.SizeChangedEventArgs Event data
리턴 void

SetAutomaticToolTipEnabled() 공개 정적인 메소드

Sets the current effective value of the AutomaticToolTipEnabled attached property.
public static SetAutomaticToolTipEnabled ( DependencyObject element, bool value ) : void
element System.Windows.DependencyObject
value bool true to enable the automatic ToolTip; otherwise false
리턴 void

프로퍼티 상세

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

Identifier associated with the attached property AutomaticToolTipEnabled.
public static DependencyProperty,System.Windows AutomaticToolTipEnabledProperty
리턴 System.Windows.DependencyProperty

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

Key returned upon registering the read-only attached property IsTextTrimmed.
public static DependencyPropertyKey,System.Windows IsTextTrimmedKey
리턴 System.Windows.DependencyPropertyKey

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

Identifier associated with the read-only attached property IsTextTrimmed.
public static DependencyProperty,System.Windows IsTextTrimmedProperty
리턴 System.Windows.DependencyProperty