Skip to content

AutoDataTemplateBindingHook class

Defined in

Namespace: ReactiveUI.Reactive Assembly: ReactiveUI.Wpf.Reactive.dll Full name: ReactiveUI.Reactive.AutoDataTemplateBindingHook Modifiers: public

Summary

View source

        AutoDataTemplateBindingHook is a binding hook that checks ItemsControls
        that don't have DataTemplates, and assigns a default DataTemplate that
        loads the View associated with each ViewModel.

Applies to

net10.0-windows7.0, net10.0-windows10.0.19041, net10.0-windows10.0.19041, net10.0-windows10.0.19041, net9.0-windows7.0, net9.0-windows10.0.19041, net9.0-windows10.0.19041, net8.0-windows7.0, net8.0-windows10.0.19041, net8.0-windows10.0.19041, net462, net481

Class hierarchy
classDiagram
class AutoDataTemplateBindingHook
class IPropertyBindingHook {
    <>
}
IPropertyBindingHook <|.. AutoDataTemplateBindingHook

Implements: IPropertyBindingHook

Remarks

The default template hosts each item in a ViewModelViewHost, which finds the view through the generated view lookup and the view locator's Map registrations. For view models whose view is registered only with the service locator, also register AutoDataTemplateBindingHookUnsafe.

Constructors

NameSummary
.ctor

Properties

NameSummary
static DefaultItemTemplateGets the default item template.

Methods

NameSummary
ExecuteHookCalled as a binding is set up, before it is wired, and can refuse the binding.
Inherited members