C# 클래스 System.Windows.Controls.ContentPresenter

Displays the content of a ContentControl.
Typically, you the ContentPresenter directly within the ControlTemplate of a ContentControl to mark where the content should be displayed. Every type derived from ContentControl should have a ContentPrenter in its ControlTemplate (although it may not necessarily be a TemplatePart). The ContentPresenter in the ControlTemplate should use a TemplateBinding to associate ContentControl.Content with ContentPresenter.Content (and an other relevant properties like FontSize, VeriticalAlignment, etc.).
상속: FrameworkElement
파일 보기 프로젝트 열기: shana/moon 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
ContentProperty DependencyProperty
ContentTemplateProperty DependencyProperty

Private Properties

프로퍼티 타입 설명
ClearRoot void
GetDefaultTemplate System.Windows.Controls.UIElement
InvokeLoaded void
OnContentPropertyChanged void
OnContentTemplatePropertyChanged void

공개 메소드들

메소드 설명
ContentPresenter ( ) : Mono

Initializes a new instance of the ContentPresenter class.

비공개 메소드들

메소드 설명
ClearRoot ( ) : void
GetDefaultTemplate ( ) : System.Windows.Controls.UIElement
InvokeLoaded ( ) : void
OnContentPropertyChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

ContentProperty property changed handler.

OnContentTemplatePropertyChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

ContentTemplateProperty property changed handler.

메소드 상세

ContentPresenter() 공개 메소드

Initializes a new instance of the ContentPresenter class.
public ContentPresenter ( ) : Mono
리턴 Mono

프로퍼티 상세

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

Identifies the Content dependency property.
public static DependencyProperty ContentProperty
리턴 DependencyProperty

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

Identifies the ContentTemplate dependency property.
public static DependencyProperty ContentTemplateProperty
리턴 DependencyProperty