<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">

	<Script file="EDB_Frame_Enchant.lua" />

	<!-- Column Header template -->
	<Button name="EDB_Frame_Enchant_EnchantListColumnHeaderTemplate" virtual="true">
		<Layers>
			<Layer level="BACKGROUND">
				<Texture name="$parentLeft" file="Interface\FriendsFrame\WhoFrame-ColumnTabs">
					<Size>
						<AbsDimension x="5" y="19"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT"/>
					</Anchors>
					<TexCoords left="0" right="0.078125" top="0" bottom="0.59375"/>
				</Texture>
				<Texture name="$parentRight" file="Interface\FriendsFrame\WhoFrame-ColumnTabs">
					<Size>
						<AbsDimension x="4" y="19"/>
					</Size>
					<Anchors>
						<Anchor point="TOPRIGHT"/>
					</Anchors>
					<TexCoords left="0.90625" right="0.96875" top="0" bottom="0.59375"/>
				</Texture>
				<Texture name="$parentMiddle" file="Interface\FriendsFrame\WhoFrame-ColumnTabs">
					<Size>
						<AbsDimension x="10" y="19"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT"/>
						<Anchor point="RIGHT" relativeTo="$parentRight" relativePoint="LEFT"/>
					</Anchors>
					<TexCoords left="0.078125" right="0.90625" top="0" bottom="0.59375"/>
				</Texture>
			</Layer>
		</Layers>
		<NormalText name="$parentText" inherits="GameFontHighlightSmall">
			<Anchors>
				<Anchor point="LEFT">
					<Offset>
						<AbsDimension x="8" y="0"/>
					</Offset>
				</Anchor>
			</Anchors>
		</NormalText>
		<NormalTexture name="$parentArrow" file="Interface\Buttons\UI-SortArrow">
			<Size>
				<AbsDimension x="9" y="8"/>
			</Size>
			<Anchors>
				<Anchor point="LEFT" relativeTo="$parentText" relativePoint="RIGHT">
					<Offset>
						<AbsDimension x="3" y="-2"/>
					</Offset>
				</Anchor>
			</Anchors>
			<TexCoords left="0" right="0.5625" top="0" bottom="1.0"/>
		</NormalTexture>
		<HighlightTexture file="Interface\PaperDollInfoFrame\UI-Character-Tab-Highlight" alphaMode="ADD">
			<Size>
				<AbsDimension x="5" y="24"/>
			</Size>
			<Anchors>
				<Anchor point="LEFT">
					<Offset>
						<AbsDimension x="0" y="0"/>
					</Offset>
				</Anchor>
				<Anchor point="RIGHT">
					<Offset>
						<AbsDimension x="4" y="0"/>
					</Offset>
				</Anchor>
			</Anchors>
		</HighlightTexture>
	</Button>

	<!-- Enchant list entry template -->
	<Button name="EDB_Frame_Enchant_EnchantListEntryTemplate" virtual="true" hidden="false">
		<Size>
			<AbsDimension x="293" y="16"/>
		</Size>

		<Layers>
			<Layer level="OVERLAY">

				<FontString name="$parent_Name" inherits="GameFontNormalSmall" justifyH="LEFT">
					<Anchors>
						<Anchor point="LEFT">
							<Offset>
								<AbsDimension x="-15" y="0"/>
							</Offset>
						</Anchor>
						<Anchor point="RIGHT" relativeTo="$parent" relativePoint="LEFT">
							<Offset>
								<AbsDimension x="85" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>

				<FontString name="$parent_Item" inherits="GameFontNormalSmall" justifyH="LEFT">
					<Anchors>
						<Anchor point="LEFT">
							<Offset>
								<AbsDimension x="90" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>

				<FontString name="$parent_Bonus" inherits="GameFontNormalSmall" justifyH="LEFT">
					<Anchors>
						<Anchor point="LEFT">
							<Offset>
								<AbsDimension x="163" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>

			</Layer>
		</Layers>

		<Frames>
			<Frame name="$parent_Price" inherits="EDB_Money_Template">
				<Anchors>
					<Anchor point="TOPRIGHT" relativeTo="$parent" relativePoint="TOPRIGHT">
						<Offset>
							<AbsDimension x="-12" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>
		</Frames>

		<Scripts>
			<OnLoad>
				this:SetFrameLevel(this:GetFrameLevel() + 1);
			</OnLoad>
			<OnClick>
				EDB_Frame_Enchant_EnchantListEntry_OnClick();
			</OnClick>
			<OnEnter>
				EDB_Frame_Enchant_EnchantListEntry_OnEnter();
			</OnEnter>
			<OnLeave>
				EDB_Frame_Enchant_EnchantListEntry_OnLeave();
			</OnLeave>
		</Scripts>

	</Button>

	<!-- Reagent List Entry Template -->
	<Button name="EDB_Frame_Enchant_ReagentListEntryTemplate" virtual="true" hidden="false">
		<Size>
			<AbsDimension x="293" y="14"/>
		</Size>

		<Layers>
			<Layer level="OVERLAY">

				<FontString name="$parent_Name" inherits="GameFontNormalSmall" justifyH="LEFT" text="Reagent Name">
					<Size>
						<AbsDimension x="160" y="14"/>
					</Size>

					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parent">
							<Offset>
								<AbsDimension x="15" y="2"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>

				<FontString name="$parent_QuantityOwned" inherits="GameFontNormalSmall" justifyH="RIGHT" text="0/">
					<Anchors>
						<Anchor point="RIGHT" relativeTo="$parent_Name" relativePoint="RIGHT">
							<Offset>
								<AbsDimension x="20" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>

				<FontString name="$parent_QuantityReq" inherits="GameFontNormalSmall" justifyH="LEFT" text="0">
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parent_QuantityOwned" relativePoint="RIGHT">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>

			</Layer>
		</Layers>

		<Frames>
			<Button name="$parent_Icon">
				<Size>
					<AbsDimension x="14" y="14"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<NormalTexture file="Interface\Icons\Spell_Holy_GreaterHeal"/>
			</Button>

			<Frame name="$parent_Price" inherits="EDB_Money_Template">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="235" y="2"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Frame>

		</Frames>

		<Scripts>
			<OnLoad>
				this:SetFrameLevel(this:GetFrameLevel() + 1);
			</OnLoad>
			<OnClick>
				EDB_Frame_Enchant_ReagentListEntry_OnClick();
			</OnClick>
		</Scripts>


	</Button>

	<!-- Enchanting Frame -->
	<Frame name="EDB_Frame_Enchant" setAllPoints="true" enableMouse="true" parent="EDB_Frame" hidden="false" id="1">

		<Layers>

			<Layer level="BACKGROUND">

				<Texture file="Interface\ClassTrainerFrame\UI-ClassTrainer-BotLeft">
					<Size>
						<AbsDimension x="256" y="256"/>
					</Size>
					<Anchors>
						<Anchor point="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="2" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>

				<Texture file="Interface\ClassTrainerFrame\UI-ClassTrainer-BotRight">
					<Size>
						<AbsDimension x="128" y="256"/>
					</Size>
					<Anchors>
						<Anchor point="BOTTOMRIGHT">
							<Offset>
								<AbsDimension x="2" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>

			</Layer>

			<Layer level="BORDER">

				<Texture name="$parent_HorizontalBarLeft" file="Interface\ClassTrainerFrame\UI-ClassTrainer-HorizontalBar">
					<Size>
						<AbsDimension x="256" y="16"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="15" y="-241"/>
							</Offset>
						</Anchor>
					</Anchors>
					<TexCoords left="0" right="1.0" top="0" bottom="0.25"/>
				</Texture>

				<Texture file="Interface\ClassTrainerFrame\UI-ClassTrainer-HorizontalBar">
					<Size>
						<AbsDimension x="75" y="16"/>
					</Size>
					<Anchors>
						<Anchor point="LEFT" relativeTo="$parent_HorizontalBarLeft" relativePoint="RIGHT"/>
					</Anchors>
					<TexCoords left="0" right="0.29296875" top="0.25" bottom="0.5"/>
				</Texture>

			</Layer>


			<Layer level="ARTWORK">
			
				<Texture name="$parent_DetailHeaderLeft" file="Interface\ClassTrainerFrame\UI-ClassTrainer-DetailHeaderLeft">
					<Size>
						<AbsDimension x="256" y="64"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="20" y="-251"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>

				<Texture file="Interface\ClassTrainerFrame\UI-ClassTrainer-DetailHeaderRight">
					<Size>
						<AbsDimension x="64" y="64"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parent_DetailHeaderLeft" relativePoint="TOPRIGHT">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>

				<FontString name="$parent_Detail_Name" inherits="GameFontNormal" text="Enchant Name" justifyH="LEFT">
					<Size>
						<AbsDimension x="244" y="0"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parent_DetailHeaderLeft" relativePoint="TOPLEFT">
							<Offset>
								<AbsDimension x="50" y="-8"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>

				<FontString name="$parent_Detail_Requirement" inherits="GameFontHighlightSmall" text="Requirement">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parent_Detail_Name" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>

				<FontString name="$parent_Detail_Cost" inherits="GameFontHighlightSmall" text="Enchant Cost">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parent_Detail_Requirement" relativePoint="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>

				<FontString name="$parent_Detail_Description" inherits="GameFontHighlightSmall" justifyH="LEFT" text="Enchant Description">
					<Size>
						<AbsDimension x="290" y="0"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parent_DetailHeaderLeft" relativePoint="TOPLEFT">
							<Offset>
								<AbsDimension x="5" y="-53"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>

				<FontString name="$parent_Detail_ReagentLabel" inherits="GameFontNormalSmall" text="Reagents">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parent_DetailHeaderLeft" relativePoint="TOPLEFT">
							<Offset>
								<AbsDimension x="5" y="-85"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>

				<FontString name="$parent_Detail_QuantityLabel" inherits="GameFontNormalSmall" text="Quantity">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parent_Detail_ReagentLabel" relativePoint="TOPRIGHT">
							<Offset>
								<AbsDimension x="115" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>

				<FontString name="$parent_Detail_PriceLabel" inherits="GameFontNormalSmall" text="Price">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parent_Detail_QuantityLabel" relativePoint="TOPRIGHT">
							<Offset>
								<AbsDimension x="51" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
				
			</Layer>

		</Layers>

		<Frames>

			<!-- Filter by known checkbox -->
			<CheckButton name="$parent_FilterByKnownCheckbox" inherits="UICheckButtonTemplate">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="15" y="-65"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="ARTWORK">
						<FontString name="$parent_Label" inherits="GameFontNormalSmall" text="Only Known">
							<Anchors>
								<Anchor point="LEFT" relativeTo="$parent" relativePoint="LEFT">
									<Offset>
										<AbsDimension x="30" y="2"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
				<Scripts>
					<OnClick>
						EDB_Frame_Enchant_FilterByKnownCheckbox_OnClick();
					</OnClick>
				</Scripts>
			</CheckButton>

			<!-- Bonus filter dropdown -->
			<Frame name="EDB_Frame_Enchant_BonusDropDown" inherits="UIDropDownMenuTemplate">
				<Anchors>
					<Anchor point="TOPRIGHT" relativeTo="EDB_Frame_Enchant" relativePoint="TOPRIGHT">
						<Offset>
							<AbsDimension x="-25" y="-66"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						EDB_Frame_Enchant_BonusDropDown_OnLoad();
					</OnLoad>
				</Scripts>
			</Frame>

			<!-- Item filter dropdown -->
			<Frame name="$parent_ItemDropDown" inherits="UIDropDownMenuTemplate">
				<Anchors>
					<Anchor point="RIGHT" relativeTo="$parent_BonusDropDown" relativePoint="LEFT">
						<Offset>
							<AbsDimension x="35" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						EDB_Frame_Enchant_ItemDropDown_OnLoad();
					</OnLoad>
				</Scripts>
			</Frame>

			<!-- Enchant list column buttons (span 296 = 120 + 60 + 75 + 45-->
			<Button name="$parent_EnchantListColumnHeaderName" inherits="EDB_Frame_Enchant_EnchantListColumnHeaderTemplate" text="Name">
				<Size>
					<AbsDimension x="105" y="20"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="22" y="-96"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						EDB_Frame_Enchant_EnchantListColumnName_OnClick();
					</OnClick>
				</Scripts>
			</Button>

			<Button name="$parent_EnchantListColumnHeaderItem" inherits="EDB_Frame_Enchant_EnchantListColumnHeaderTemplate" text="Item">
				<Size>
					<AbsDimension x="75" y="20"/>
				</Size>
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parent_EnchantListColumnHeaderName" relativePoint="RIGHT"/>
				</Anchors>
				<Scripts>
					<OnClick>
						EDB_Frame_Enchant_EnchantListColumnItem_OnClick();
					</OnClick>
				</Scripts>
			</Button>

			<Button name="$parent_EnchantListColumnHeaderBonus" inherits="EDB_Frame_Enchant_EnchantListColumnHeaderTemplate" text="Bonus">
				<Size>
					<AbsDimension x="60" y="20"/>
				</Size>
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parent_EnchantListColumnHeaderItem" relativePoint="RIGHT"/>
				</Anchors>
				<Scripts>
					<OnClick>
						EDB_Frame_Enchant_EnchantListColumnBonus_OnClick();
					</OnClick>
				</Scripts>
			</Button>

			<Button name="$parent_EnchantListColumnHeaderPrice" inherits="EDB_Frame_Enchant_EnchantListColumnHeaderTemplate" text="Price">
				<Size>
					<AbsDimension x="65" y="20"/>
				</Size>
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parent_EnchantListColumnHeaderBonus" relativePoint="RIGHT"/>
				</Anchors>
				<Scripts>
					<OnClick>
						EDB_Frame_Enchant_EnchantListColumnPrice_OnClick();
					</OnClick>
				</Scripts>
			</Button>

			<!-- Enchant scroll bar -->
			<ScrollFrame name="$parent_EnchantListScrollBar" inherits="FauxScrollFrameTemplate">
				<Size>
					<AbsDimension x="296" y="128"/>
				</Size>
				<Anchors>
					<Anchor point="TOPRIGHT" relativeTo="$parent" relativePoint="TOPRIGHT">
						<Offset>
							<AbsDimension x="-67" y="-116"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnVerticalScroll>
						FauxScrollFrame_OnVerticalScroll(20, EDB_Frame_Enchant_EnchantList_Update);
					</OnVerticalScroll>
				</Scripts>
			</ScrollFrame>

			<!-- Enchant scroll list highlight -->
			<Frame name="$parent_EnchantListHighlight" hidden="true">
				<Size>
					<AbsDimension x="293" y="16"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT"/>
				</Anchors>
				<Layers>
					<Layer level="ARTWORK">
						<Texture name="$parent_EnchantListEntryHighlightTexture" file="Interface\QuestFrame\UI-QuestLogTitleHighlight" alphaMode="ADD"/>
					</Layer>
				</Layers>
			</Frame>

			<!-- Enchant scroll list buttons -->
			<Button name="$parent_EnchantListEntry1" inherits="EDB_Frame_Enchant_EnchantListEntryTemplate" id="1">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parent_EnchantListScrollBar" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="20" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>

			<Button name="$parent_EnchantListEntry2" inherits="EDB_Frame_Enchant_EnchantListEntryTemplate" id="2">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parent_EnchantListEntry1" relativePoint="BOTTOMLEFT"/>
				</Anchors>
			</Button>

			<Button name="$parent_EnchantListEntry3" inherits="EDB_Frame_Enchant_EnchantListEntryTemplate" id="3">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parent_EnchantListEntry2" relativePoint="BOTTOMLEFT"/>
				</Anchors>
			</Button>

			<Button name="$parent_EnchantListEntry4" inherits="EDB_Frame_Enchant_EnchantListEntryTemplate" id="4">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parent_EnchantListEntry3" relativePoint="BOTTOMLEFT"/>
				</Anchors>
			</Button>

			<Button name="$parent_EnchantListEntry5" inherits="EDB_Frame_Enchant_EnchantListEntryTemplate" id="5">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parent_EnchantListEntry4" relativePoint="BOTTOMLEFT"/>
				</Anchors>
			</Button>

			<Button name="$parent_EnchantListEntry6" inherits="EDB_Frame_Enchant_EnchantListEntryTemplate" id="6">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parent_EnchantListEntry5" relativePoint="BOTTOMLEFT"/>
				</Anchors>
			</Button>

			<Button name="$parent_EnchantListEntry7" inherits="EDB_Frame_Enchant_EnchantListEntryTemplate" id="7">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parent_EnchantListEntry6" relativePoint="BOTTOMLEFT"/>
				</Anchors>
			</Button>

			<Button name="$parent_EnchantListEntry8" inherits="EDB_Frame_Enchant_EnchantListEntryTemplate" id="8">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parent_EnchantListEntry7" relativePoint="BOTTOMLEFT"/>
				</Anchors>
			</Button>

			<!-- Enchant icon -->
			<Button name="$parent_Detail_EnchantIcon">
				<Size>
					<AbsDimension x="37" y="37"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="28" y="-257"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						EDB_Frame_Enchant_Detail_EnchantIcon_OnClick();
					</OnClick>
					<OnEnter>
						GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
						GameTooltip:SetText("Shift-click: Link enchant\nAlt-click: Link item\nCtrl-click: Link reagents");
					</OnEnter>
					<OnLeave>
						GameTooltip:Hide();
					</OnLeave>
				</Scripts>
			</Button>


			<!-- Reagent scroll bar -->
			<ScrollFrame name="$parent_ReagentListScrollBar" inherits="FauxScrollFrameTemplate">
				<Size>
					<AbsDimension x="296" y="75"/>
				</Size>
				<Anchors>
					<Anchor point="TOPRIGHT" relativeTo="$parent" relativePoint="TOPRIGHT">
						<Offset>
							<AbsDimension x="-67" y="-333"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnVerticalScroll>
						FauxScrollFrame_OnVerticalScroll(20, EDB_Frame_Enchant_ReagentList_Update);
					</OnVerticalScroll>
				</Scripts>
			</ScrollFrame>

			<!-- Reagent list -->
			<Button name="$parent_ReagentListEntry1" inherits="EDB_Frame_Enchant_ReagentListEntryTemplate" id="1">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="26" y="-350"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>

			<Button name="$parent_ReagentListEntry2" inherits="EDB_Frame_Enchant_ReagentListEntryTemplate" id="2">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parent_ReagentListEntry1" relativePoint="BOTTOMLEFT"/>
				</Anchors>
			</Button>

			<Button name="$parent_ReagentListEntry3" inherits="EDB_Frame_Enchant_ReagentListEntryTemplate" id="3">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parent_ReagentListEntry2" relativePoint="BOTTOMLEFT"/>
				</Anchors>
			</Button>

			<Button name="$parent_ReagentListEntry4" inherits="EDB_Frame_Enchant_ReagentListEntryTemplate" id="4">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parent_ReagentListEntry3" relativePoint="BOTTOMLEFT"/>
				</Anchors>
			</Button>

			<!-- Marked up price frame -->
			<Frame name="$parent_TotalPrice" inherits="EDB_Money_Template">
				<Anchors>
					<Anchor point="BOTTOMLEFT" relativeTo="$parent" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="115" y="85"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="ARTWORK">
						<FontString name="$parent_Text" inherits="GameFontNormalSmall" justifyH="LEFT" text="+0% Markup">
							<Size>
								<AbsDimension x="85" y="14"/>
							</Size>

							<Anchors>
								<Anchor point="TOPLEFT" relativeTo="$parent">
									<Offset>
										<AbsDimension x="-87" y="0"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
					</Layer>
				</Layers>
			</Frame>

			<!-- Enchant Button -->
			<Button name="$parent_EnchantButton" inherits="UIPanelButtonTemplate" text="Enchant">
				<Size>
					<AbsDimension x="80" y="22"/>
				</Size>
				<Anchors>
					<Anchor point="CENTER" relativeTo="EDB_Frame_Enchant" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="224" y="-422"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						this:Disable();
					</OnLoad>
					<OnClick>
						EDB_Frame_Enchant_EnchantButton_OnClick();
					</OnClick>
				</Scripts>
			</Button>

			<!-- Exit button -->
			<Button name="$parent_ExitButton" inherits="UIPanelButtonTemplate" text="Exit">
				<Size>
					<AbsDimension x="80" y="22"/>
				</Size>
				<Anchors>
					<Anchor point="CENTER" relativeTo="EDB_Frame_Enchant" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="305" y="-422"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						HideUIPanel(EDB_Frame);
					</OnClick>
				</Scripts>
			</Button>

		</Frames>
		
		<Scripts>
			<OnLoad>
				EDB_Frame_Enchant_OnLoad();
			</OnLoad>
			<OnShow>
				EDB_Frame_Enchant_EnchantList_Update();
				EDB_Frame_Enchant_ReagentList_Update();
				EDB_Frame_Enchant_DetailFrame_Update();
			</OnShow>
		</Scripts>

	</Frame>

</Ui>
