C# Класс Open.Core.UI.Controls.ContentContainer

A flexible content container that can safely work with bound UIElements or DataTemplates.
Наследование: System.Windows.Controls.UserControl
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
ClearContentElement ( ) : void
OnChanged ( ) : void
OnDataContextChanged ( ) : void

Описание методов

ContentContainer() публичный Метод

Constructor.
public ContentContainer ( ) : System.Windows
Результат System.Windows

CreateViewModel() публичный Метод

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
Результат IContentContainer