C# Class Open.Core.Common.ViewTemplate

Represents the template of a view, along with it's supporting View-Model.
Inheritance: ModelBase, IViewTemplate
Afficher le fichier Open project: philcockfield/Open.TestHarness.SL Class Usage Examples

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
OnDisposed ( ) : void

Private Methods

Méthode Description
CreateStretchedContentStyle ( ) : System.Windows.Style

Method Details

ApplyTo() public méthode

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.
Résultat void

ApplyTo() public méthode

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.
Résultat void

OnDisposed() protected méthode

protected OnDisposed ( ) : void
Résultat void

ViewTemplate() public méthode

Constructor.
public ViewTemplate ( ) : System
Résultat System

ViewTemplate() public méthode

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).
Résultat System