UIOBJECT Frame

inherits ScriptRegion, created with ("Frame")
==Methods==
==Scripts==
==Example==
Creates a simple frame with widget scripts ( and ) to respond when mousing over a in the middle of the screen.
local frame = CreateFrame("Frame", nil, UIParent)
frame:SetPoint("CENTER")
frame:SetSize(100,100)
-- widget scripts
frame:SetScript("OnEnter", function()
	GameTooltip:SetOwner(frame, "ANCHOR_TOPRIGHT")
	GameTooltip:AddLine("HelloWorld!")
	GameTooltip:Show()
end)
frame:SetScript("OnLeave", function()
	GameTooltip:Hide()
end)
-- adding a texture
local texture = frame:CreateTexture(nil, "BACKGROUND")
texture:SetTexture("interface\\icons\\inv_mushroom_11")
texture:SetAllPoints()
Or with a element in an XML file.
<Frame>
	<Size>
		<AbsDimension x="100" y="100" />
	</Size>
	<Anchors>
		<Anchor point="CENTER" />
	</Anchors>
	<Scripts>
		<OnEnter>
			GameTooltip:SetOwner(self, "ANCHOR_TOPRIGHT")
			GameTooltip:AddLine("HelloWorld!")
			GameTooltip:Show()
		</OnEnter>
		<OnLeave>
			GameTooltip:Hide()
		</OnLeave>
	</Scripts>
	<Layers>
		<Layer level="BACKGROUND">
			<Texture file="interface\icons\inv_mushroom_11">
				<Anchors>
					<Anchor point="TOPLEFT" />
					<Anchor point="BOTTOMRIGHT" />
				</Anchors>
			</Texture>
		</Layer>
	</Layers>
</Frame>
==Patch changes==
* 
* 
* 
* 
==See also==
* SecureTemplates - FrameXML templates to securely manage group, raid and aura (buff) frames.
* FramePoolMixin - FrameXML frame pool to produce reusable frames.
* FramePoolCollectionMixin - FrameXML collection of frame pools to produce reusable frames.
==References==