FMX.Controls.Presentation.TPresentedControl.LoadPresentation
Delphi
procedure LoadPresentation; virtual;
C++
virtual void __fastcall LoadPresentation();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | FMX.Controls.Presentation.pas FMX.Controls.Presentation.hpp |
FMX.Controls.Presentation | TPresentedControl |
Description
Loads the presentation proxy and initializes the corresponding presentation of your presented control if it is not loaded already.
LoadPresentation loads a new presentation proxy for the presented control:
- If the Current Presentation Proxy Factory supports the presentation proxy class registered for a PresentationName returned by the OnPresentationNameChoosing event handler or by DefinePresentationName, then LoadPresentation creates and loads a new presentation proxy corresponding to the obtained PresentationName if this presentation proxy is not loaded yet. LoadPresentation uses the loaded presentation proxy to send initialization messages to the corresponding presentation and to notify child controls that the new presentation is loaded.
- Otherwise, if the current Presentation Proxy Factory does not support the obtained PresentationName and CanUseDefaultPresentation is
True
, then LoadPresentation switches the control type to its default value TControlType.Styled.
LoadPresentation is called automatically after the presented control is created or loaded.
See Also
- FMX.Controls.Presentation.TPresentedControl.PresentationProxy
- FMX.Controls.Presentation.TPresentationProxy
- FMX.Controls.Presentation.TPresentedControl.OnPresentationNameChoosing
- FMX.Controls.Presentation.TPresentedControl.DefinePresentationName
- FMX.Controls.Presentation.TPresentedControl.HasPresentationProxy
- FMX.Controls.Presentation.TPresentedControl.ControlType