C# Class Open.Core.UI.Controls.ContentContainer

A flexible content container that can safely work with bound UIElements or DataTemplates.
Inheritance: System.Windows.Controls.UserControl
Datei anzeigen Open project: philcockfield/Open.TestHarness.SL Class Usage Examples

Public Methods

Method Description
ContentContainer ( ) : System.Windows

Constructor.

CreateViewModel ( ) : IContentContainer

Creates a fresh view-model and assigns it to the ViewModel property.

Typically the a view-model is bound to this property, and so for performance reasons a default view-model is not created. This method allows a "View First" usage of the control.

Private Methods

Method Description
ClearContentElement ( ) : void
OnChanged ( ) : void
OnDataContextChanged ( ) : void

Method Details

ContentContainer() public method

Constructor.
public ContentContainer ( ) : System.Windows
return System.Windows

CreateViewModel() public method

Creates a fresh view-model and assigns it to the ViewModel property.
Typically the a view-model is bound to this property, and so for performance reasons a default view-model is not created. This method allows a "View First" usage of the control.
public CreateViewModel ( ) : IContentContainer
return IContentContainer