C# Class Caliburn.Micro.ViewModelBinder

Binds a view to a view model.
Show file Open project: dbuksbaum/Learning-Caliburn.Micro Class Usage Examples

Public Properties

Property Type Description
ApplyConventionsByDefault bool
Bind Action
BindActions Type>.Action
BindProperties Type>.Action
ConventionsAppliedProperty System.Windows.DependencyProperty

Public Methods

Method Description
ShouldApplyConventions ( FrameworkElement view ) : bool

Determines whether a view should have conventions applied to it.

Method Details

ShouldApplyConventions() public static method

Determines whether a view should have conventions applied to it.
public static ShouldApplyConventions ( FrameworkElement view ) : bool
view System.Windows.FrameworkElement The view to check.
return bool

Property Details

ApplyConventionsByDefault public static property

Gets or sets a value indicating whether to apply conventions by default.
public static bool ApplyConventionsByDefault
return bool

Bind public static property

Binds the specified viewModel to the view.
Passes the the view model, view and creation context (or null for default) to use in applying binding.
public static Action Bind
return Action

BindActions public static property

Attaches instances of ActionMessage to the view's controls based on the provided methods.
Parameters include the named elements to search through and the type of view model to determine conventions for.
public static Action,Type> BindActions
return Type>.Action

BindProperties public static property

Creates data bindings on the view's controls based on the provided properties.
Parameters include named Elements to search through and the type of view model to determine conventions for.
public static Action,Type> BindProperties
return Type>.Action

ConventionsAppliedProperty public static property

Indicates whether or not the conventions have alread been applied to the view.
public static DependencyProperty,System.Windows ConventionsAppliedProperty
return System.Windows.DependencyProperty