FMX.Controls.Presentation.TPresentedControl.OnPresentationNameChoosing

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

property OnPresentationNameChoosing: TPresenterNameChoosingEvent read FOnPresenterNameChoosing write FOnPresenterNameChoosing;

C++

__property TPresenterNameChoosingEvent OnPresentationNameChoosing = {read=FOnPresenterNameChoosing, write=FOnPresenterNameChoosing};

Properties

Type Visibility Source Unit Parent
event public
FMX.Controls.Presentation.pas
FMX.Controls.Presentation.hpp
FMX.Controls.Presentation TPresentedControl

Description

Occurs right before your control loads its presentation, and it allows you to define a custom presentation proxy name different from the name that DefinePresentationName returns.

The event handler of OnPresentationNameChoosing receives the following parameters:

  • <Sender> is your control.
  • <PresenterName> is the name that DefinePresentationName returns. Assign <PresenterName> a new, previously-registered presentation proxy name to use the matching presentation proxy class for the presentation of the control.

See Also