TStyleBook = class(TFmxObject, IDesignStyleBook)
class PASCALIMPLEMENTATION TStyleBook : public Fmx::Types::TFmxObject
TStyleBook stores a collection of styles for a form.
There are two ways to create and use a TStyleBook component:
- Drop a TStyleBook component from the Tool Palette and then set it to the value of the form's StyleBook property. This works for desktop applications and mobile applications.
- Right-click a control on a FireMonkey desktop form and choose either Edit Default Style or Edit Custom Style. This automatically creates a TStyleBook component, sets it to the form's StyleBook, and opens the Style Designer.
TStyleBook and Form Inheritance
- If you want all the descendant forms to have the same style as the base form, place the TStyleBook in the base form.
- If you want the descendant forms to have different styles, place separate TStyleBooks in the descendant forms.