C# Класс Open.Core.Common.ViewTemplate

Represents the template of a view, along with it's supporting View-Model.
Наследование: ModelBase, IViewTemplate
Показать файл Открыть проект Примеры использования класса

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

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