C# 클래스 Open.Core.Common.ViewTemplate

Represents the template of a view, along with it's supporting View-Model.
상속: ModelBase, IViewTemplate
파일 보기 프로젝트 열기: philcockfield/Open.TestHarness.SL 1 사용 예제들

공개 메소드들

메소드 설명
ApplyTo ( ContentControl control ) : void

Applies this template, and view-model, to the given ContentControl (with stretched content).

ApplyTo ( ContentControl control, bool stretchContent ) : void

Applies this template, and view-model, to the given ContentControl.

ViewTemplate ( ) : System

Constructor.

ViewTemplate ( System.Windows.DataTemplate template, INotifyPropertyChanged viewModel ) : System

Constructor.

보호된 메소드들

메소드 설명
OnDisposed ( ) : void

비공개 메소드들

메소드 설명
CreateStretchedContentStyle ( ) : System.Windows.Style

메소드 상세

ApplyTo() 공개 메소드

Applies this template, and view-model, to the given ContentControl (with stretched content).
public ApplyTo ( ContentControl control ) : void
control System.Windows.Controls.ContentControl The control to apply this to.
리턴 void

ApplyTo() 공개 메소드

Applies this template, and view-model, to the given ContentControl.
public ApplyTo ( ContentControl control, bool stretchContent ) : void
control System.Windows.Controls.ContentControl The control to apply this to.
stretchContent bool Flag indicating if the content-alignment should be set to stretch.
리턴 void

OnDisposed() 보호된 메소드

protected OnDisposed ( ) : void
리턴 void

ViewTemplate() 공개 메소드

Constructor.
public ViewTemplate ( ) : System
리턴 System

ViewTemplate() 공개 메소드

Constructor.
public ViewTemplate ( System.Windows.DataTemplate template, INotifyPropertyChanged viewModel ) : System
template System.Windows.DataTemplate The XAML template.
viewModel INotifyPropertyChanged The view-model (the logical representation of the view).
리턴 System