FMX.Controls.Presentation.TPresentedControl.DefinePresentationName

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

function DefinePresentationName: string; virtual;

C++

virtual System::UnicodeString __fastcall DefinePresentationName(void);

Properties

Type Visibility Source Unit Parent
function protected
FMX.Controls.Presentation.pas
FMX.Controls.Presentation.hpp
FMX.Controls.Presentation TPresentedControl

Description

Returns the name of the default presentation proxy that your control uses.

You can handle the OnPresentationNameChoosing to specify a presentation proxy name to use instead of the name that DefinePresentationName returns.

TPresentedControl.DefinePresentationName returns a presentation proxy name based on the class name and the control type of the control. For example:

Class name Control type Result
TMyPresentedControl TControlType.Styled "MyPresentedControl-style"
TMyPresentedControl TControlType.Native "MyPresentedControl-native"

See Also