<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/ ..\..\FrameXML\UI.xsd">

    <Button name="Crafty_WindowRowTemplate" hidden="true" virtual="true">
	<Size x="244" y="16" />
	<ButtonText parentKey="Text" wordwrap="false">
	    <Size x="204" y="13" />
	    <Anchors>
		<Anchor point="LEFT" x="15"/>
	    </Anchors>
	</ButtonText>
	<NormalFont style="GameFontHighlightLeft" />

	<Layers>
	    <Layer level="ARTWORK">
		<Texture parentKey="SelectedTexture" 
		    file="Interface\Buttons\UI-Listbox-Highlight2" 
		    hidden="true" />
	    </Layer>
	    <Layer level="OVERLAY">
		<FontString parentKey="Count" inherits="GameFontNormal">
		    <Size y="13" />
		    <Anchors>
			<Anchor point="RIGHT" x="-15" />
		    </Anchors>
		</FontString>
	    </Layer>
	</Layers>

	<Scripts>
	    <OnLoad>
		self:RegisterForClicks("LeftButtonUp", "RightButtonUp")
	    </OnLoad>
	    <OnEnter>
		self:GetParent():GetParent():ButtonOnEnter(self)
	    </OnEnter>
	    <OnLeave>
		self:GetParent():GetParent():ButtonOnLeave(self)
	    </OnLeave>
	    <OnClick>
		self:GetParent():GetParent():ButtonOnClick(self, button)
	    </OnClick>
	</Scripts>
    </Button>

    <Button name="Crafty_AHRowTemplate" hidden="true" virtual="true">
	<Size x="782" y="16" />

	<Layers>
	    <Layer level="ARTWORK">
		<Texture parentKey="SelectedTexture"
		    file="Interface\Buttons\UI-Listbox-Highlight2"
		    hidden="true" />
	    </Layer>
	    <Layer level="OVERLAY">
		<FontString name="$parentItem" parentKey="Item" 
		    inherits="GameFontNormal" wordwrap="false" justifyH="LEFT">
		    <Size x="200" y="13" />
		    <Anchors>
			<Anchor point="LEFT" x="15" />
		    </Anchors>
		</FontString>
		<FontString name="$parentStackNum" parentKey="StackNum" 
		    inherits="GameFontNormal" wordwrap="false" justifyH="LEFT">
		    <Size x="28" y="13" />
		    <Anchors>
			<Anchor point="LEFT" relativeTo="$parentItem" 
			    relativePoint="RIGHT" x="10" />
		    </Anchors>
		</FontString>
		<FontString name="$parentStackSize" parentKey="StackSize" 
		    inherits="GameFontNormal" wordwrap="false" justifyH="LEFT">
		    <Size x="28" y="13" />
		    <Anchors>
			<Anchor point="LEFT" relativeTo="$parentStackNum"
			    relativePoint="RIGHT" x="10" />
		    </Anchors>
		</FontString>
		<FontString name="$parentPrice" parentKey="Price" 
		    inherits="GameFontNormal" wordwrap="false" justifyH="RIGHT">
		    <Size x="140" y="13" />
		    <Anchors>
			<Anchor point="LEFT" relativeTo="$parentStackSize"
			    relativePoint="RIGHT" x="10" />
		    </Anchors>
		</FontString>
		<FontString name="$parentSeller" parentKey="Seller" 
		    inherits="GameFontNormal" wordwrap="false" justifyH="LEFT">
		    <Size x="120" y="13" />
		    <Anchors>
			<Anchor point="LEFT" relativeTo="$parentPrice"
			    relativePoint="RIGHT" x="10" />
		    </Anchors>
		</FontString>
		<FontString name="$parentAction" parentKey="Action" 
		    inherits="GameFontNormal" wordwrap="false" justifyH="LEFT">
		    <Size x="190" y="13" />
		    <Anchors>
			<Anchor point="LEFT" relativeTo="$parentSeller"
			    relativePoint="RIGHT" x="10" />
		    </Anchors>
		</FontString>
	    </Layer>
	</Layers>

	<Scripts>
	    <OnEnter>
		self:GetParent():GetParent():ButtonOnEnter(self)
	    </OnEnter>
	    <OnLeave>
		self:GetParent():GetParent():ButtonOnLeave(self)
	    </OnLeave>
	    <OnClick>
		self:GetParent():GetParent():ButtonOnClick(self, button)
	    </OnClick>
	</Scripts>
    </Button>

</Ui>
