I dropped a TMemo and a regular TStyleBook on a Form. I edited the custom style for the TMemo by adding a TRectangle to background so TMemo now has a different background color, and changed the TMemo.StyleLookup property to the actual StyleName, but at runtime the TMemo can not get focus.
unit Form1;
interface
type
TForm1 = class(TForm1)
Memo1: TMemo;
StyleBook1: TStyleBook;
end;
var
Form1: TForm;
implementation
{$R *.fmx}
end.
What I am missing?

Turns out that for setting properties to be applied to the background of the
tMemo, the originalbackgrounditem must be replaced by atRectangleand it'sStyleNameassigned withbackground. All items inside the originalbackground, must be transferred to the newtRectanglebackgroundand the original must be deleted. TheAlignproperty of thetRectanglebackgroundmust be set toContentsand TheAlignproperty of thecontentsitem must be set toClient. After that, any property of the newtRectanglebackgroundcan be set to the desired value and they will be properly displayed at design and run time. Finally yes, thetMemocan be focused!backgroundabove, must be atRectangle