<Ui xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.blizzard.com/wow/ui/">
	<Script file="Recipes.lua"></Script>

	<Frame parentKey="Recipes" parent="AltoholicTabCharacters" inherits="AltoDataPanelTemplate">
		<Frames>
			<ScrollFrame parentKey="ScrollFrame" inherits="AltoBaseScrollFrameTemplate">
				<Scripts>
					<OnVerticalScroll>
						local parent = self:GetParent()
						self:OnVerticalScroll(offset, 43, parent.Update, parent)
					</OnVerticalScroll>
				</Scripts>
				<KeyValues>
					<KeyValue key="numRows" value="7" type="number" />
					<KeyValue key="rowHeight" value="43" type="number" />
					<KeyValue key="rowTemplate" value="AltoRecipeRowTemplate" />
					<KeyValue key="xOffset" value="2" type="number" />
					<KeyValue key="yOffset" value="-5" type="number" />
				</KeyValues>
			</ScrollFrame>
			
			<Button parentKey="LinkButton" hidden="true">
				<Size x="32" y="16" /> 
				<Anchors> 
					<Anchor point="TOPLEFT" x="450" y="50" />
				</Anchors> 
				<Scripts> 
					<OnClick> 
						self:GetParent():Link_OnClick(button) 
					</OnClick> 
					<OnEnter> 
						GameTooltip:SetOwner(self,"ANCHOR_TOPLEFT")
						GameTooltip:SetText(LINK_TRADESKILL_TOOLTIP, nil, nil, nil, nil, 1)
						GameTooltip:Show()
					</OnEnter> 
					<OnLeave> 
						GameTooltip:Hide()
					</OnLeave> 
				</Scripts> 
				<NormalTexture file="Interface\TradeSkillFrame\UI-TradeSkill-LinkButton"> 
					<TexCoords left="0" right="1.0" top="0" bottom="0.5"/> 
				</NormalTexture> 
				<HighlightTexture file="Interface\TradeSkillFrame\UI-TradeSkill-LinkButton" alphaMode="ADD"> 
					<TexCoords left="0" right="1.0" top="0.5" bottom="1.0"/> 
				</HighlightTexture> 
			</Button>
			<EditBox parentKey="SearchBox" autoFocus="false" inherits="SearchBoxTemplate">
				<Size x="112" y="20"/>
				<Anchors>
					<Anchor point="TOPLEFT" x="450" y="30"/>
				</Anchors>
				<Scripts>
					<OnShow>
						self:SetText("")
					</OnShow>
					<OnTextChanged inherit="prepend">
						self:GetParent():OnSearchTextChanged(self)
					</OnTextChanged>
				</Scripts>
			</EditBox>
		</Frames>
		<Scripts>
			<OnLoad>
				Altoholic:BindViewToController(self, "AltoholicUI.Recipes")
			</OnLoad>
		</Scripts>
	</Frame>
</Ui>
