WoW:XML/Anchors
< XML
Jump to navigation
Jump to search
Anchors are a fundamental UI building block for defining positional layout for UI elements of LayoutFrames. The Anchors XML element can be defined on any LayoutFrame or LayoutFrame type, which also includes Frames, Textures, and FontStrings.
- Example:
<Frame name="MyFrame"> <Frames> <Frame name="$parentChild"> <Anchors> <Anchor point="TOP"> <Offset> <AbsDimension x="0" y="-22" /> </Offset> </Anchor> </Anchors> </frame> </Frames> </Frame>
This example will align the top of the 'child' frame to the top of 'MyFrame', and then offset that alignment by -22 vertically.
Inheritance
Inherited by: none, Inherits: none, Defined in: LayoutFrame
Elements
<Anchor>
Attributes
none