C# Class Open.Core.Common.ViewTemplate

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

Public Methods

Method 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.

Protected Methods

Method Description
OnDisposed ( ) : void

Private Methods

Method Description
CreateStretchedContentStyle ( ) : System.Windows.Style

Method Details

ApplyTo() public method

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.
return void

ApplyTo() public method

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.
return void

OnDisposed() protected method

protected OnDisposed ( ) : void
return void

ViewTemplate() public method

Constructor.
public ViewTemplate ( ) : System
return System

ViewTemplate() public method

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).
return System