<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="EnchantingSell_Frame.lua" />
	
	<Button name="EnchantingSell_Frame_TabButtonTemplate" inherits="CharacterFrameTabButtonTemplate" virtual="true">
		<Scripts>
			<OnLoad>
				this:SetFrameLevel(this:GetFrameLevel() + 4);
			</OnLoad>
			<OnClick>
				PanelTemplates_Tab_OnClick(EnchantingSell_Frame);
				EnchantingSell_Tab_OnClick();
			</OnClick>
			<OnShow>
				PanelTemplates_TabResize(10);
				getglobal(this:GetName().."HighlightTexture"):SetWidth(this:GetTextWidth() + 30);
			</OnShow>
		</Scripts>
	</Button>

	<Frame name="EnchantingSell_Frame" toplevel="true" movable="true" enableMouse="true" parent="UIParent" hidden="true">
		<Size>
			<AbsDimension x="384" y="512"/>
		</Size>
		<Anchors>
			<Anchor point="TOPLEFT">
				<Offset>
					<AbsDimension x="0" y="-104"/>
				</Offset>
			</Anchor>
		</Anchors>
		<HitRectInsets>
			<AbsInset left="0" right="30" top="0" bottom="45"/>
		</HitRectInsets>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture file="Interface\QuestFrame\UI-QuestLog-BookIcon">
					<Size>
						<AbsDimension x="64" y="64"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="6" y="-4"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>	 
			</Layer>
			<Layer level="ARTWORK">
				<Texture file="Interface\ClassTrainerFrame\UI-ClassTrainer-TopLeft">
					<Size>
						<AbsDimension x="256" y="256"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT">
							<Offset>
								<AbsDimension x="2" y="-1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<Texture file="Interface\ClassTrainerFrame\UI-ClassTrainer-TopRight">
					<Size>
						<AbsDimension x="128" y="256"/>
					</Size>
					<Anchors>
						<Anchor point="TOPRIGHT">
							<Offset>
								<AbsDimension x="2" y="-1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<Texture file="Interface\PaperDollInfoFrame\UI-Character-General-BottomLeft">
					<Size>
						<AbsDimension x="256" y="256"/>
					</Size>
					<Anchors>
						<Anchor point="BOTTOMLEFT">
							<Offset>
								<AbsDimension x="2" y="-1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<Texture file="Interface\PaperDollInfoFrame\UI-Character-General-BottomRight">
					<Size>
						<AbsDimension x="128" y="256"/>
					</Size>
					<Anchors>
						<Anchor point="BOTTOMRIGHT">
							<Offset>
								<AbsDimension x="2" y="-1"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<FontString name="EnchantingSell_TitleText" inherits="GameFontHighlight" text="ENCHANTINGSELL_TITLE">
					<Size>
					    <AbsDimension x="300" y="14"/>
					</Size>
					<Anchors>
						<Anchor point="TOP" relativeTo="EnchantingSell_Frame" relativePoint="TOP">
							<Offset>
								<AbsDimension x="0" y="-17"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Frames>
			<Button name="EnchantingSell_Frame_CloseButton" inherits="UIPanelCloseButton">
				<Anchors>
					<Anchor point="CENTER" relativeTo="EnchantingSell_Frame" relativePoint="TOPRIGHT">
						<Offset>
							<AbsDimension x="-44" y="-26"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						this:SetFrameLevel(this:GetFrameLevel() + 4);
					</OnLoad>
				</Scripts>
			</Button>
			<Button name="EnchantingSell_FrameTab1" inherits="EnchantingSell_Frame_TabButtonTemplate" id="1" text="ENCHANTINGSELL_TAB_LIST_ENCHANTE">
				<Anchors>
					<Anchor point="CENTER" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="85" y="61"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="EnchantingSell_FrameTab2" inherits="EnchantingSell_Frame_TabButtonTemplate" id="2" text="ENCHANTINGSELL_TAB_LIST_COMPONENT">
				<Anchors>
				   <Anchor point="LEFT" relativeTo="EnchantingSell_FrameTab1" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="-10" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="EnchantingSell_FrameTab3" inherits="EnchantingSell_Frame_TabButtonTemplate" id="3" text="ENCHANTINGSELL_TAB_OPTION">
				<Anchors>
				   <Anchor point="LEFT" relativeTo="EnchantingSell_FrameTab2" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="-10" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>

			<Frame name="$parent_DragBar" frameStrata="high" toplevel="true" movable="true" enableMouse="true" parent="EnchantingSell_Frame" hidden="false">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="EnchantingSell_Frame" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="65" y="-12"/>
						</Offset>
					</Anchor>
				</Anchors>

				<Size>
					<AbsDimension x="245" y="26"/>
				</Size>
				<Scripts>
					<OnMouseDown>
						if ( arg1 == "LeftButton" ) then
							EnchantingSell_Frame:StartMoving();
							EnchantingSell_Frame.isMoving = true;
						end
					</OnMouseDown>
					<OnMouseUp>
						if ( EnchantingSell_Frame.isMoving ) then
							EnchantingSell_Frame:StopMovingOrSizing();
							EnchantingSell_Frame.isMoving = false;
						end
					</OnMouseUp>
				</Scripts>

			</Frame>

		</Frames>
		<Scripts>
			<OnLoad>
				EnchantingSell_Frame_OnLoad();
			</OnLoad>
			<OnShow>
				EnchantingSell_Frame_OnShow();
			</OnShow>
			<OnHide>
				EnchantingSell_Frame_OnHide();
			</OnHide>
		</Scripts>
	</Frame>
		
</Ui>

