TransitioningContentControl.OnApplyTemplate() method¶
Defined in
Type: TransitioningContentControl
Namespace: ReactiveUI.Reactive
Assembly: ReactiveUI.Wpf.Reactive.dll
Applies to
net10.0-windows7.0, 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
public override void OnApplyTemplate()
Inherited documentation
These docs were inherited from FrameworkElement. The member doesn't override them on this type.
Summary: When overridden in a derived class, is invoked whenever application code or internal processes call ApplyTemplate.
Remarks
When the template is applied, the control locates and caches the required template parts and the visual state group used for transitions.
The following parts are required:
PART_Container and PART_CurrentContentPresentationSite. If either is missing, an
InvalidOperationException is thrown.
The PART_PreviousImageSite part is optional; if it is missing, transitions will not run and the control
behaves like a normal ContentControl.
Exceptions
| Type | Condition |
|---|---|
| System.InvalidOperationException | Thrown if PART_Container or PART_CurrentContentPresentationSite cannot be found in the applied template. |