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

    <Frame name="GwBagFrameTemplate" frameStrata="HIGH" movable="true" resizable="true" virtual="true" hidden="true" toplevel="true" enablemouse="true">
        <HitRectInsets>
            <AbsInset left="-40" right="0" top="-40" bottom="-40"/>
        </HitRectInsets>
        <Size x="512" y="512"></Size>
        <Layers>
            <Layer level="BACKGROUND">
                <Texture parentKey="Texture" file="Interface/AddOns/GW2_UI/textures/bag/bagbg.png">
                    <Size x="512" y="512"></Size>
                    <Anchors>
                        <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMLEFT" x="0" y="0" />
                        <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT" x="0" y="0" />
                        <Anchor point="TOPLEFT" relativePoint="TOPLEFT" x="0" y="0" />
                        <Anchor point="TOPRIGHT" relativePoint="TOPRIGHT" x="0" y="0" />
                    </Anchors>
                </Texture>
                <Texture parentKey="Header" file="Interface/AddOns/GW2_UI/textures/bag/bagheader.png">
                    <Size x="512" y="64"></Size>
                    <Anchors>
                        <Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT" x="0" y="0" />
                    </Anchors>
                </Texture>
                <Texture file="Interface/AddOns/GW2_UI/textures/bag/bagheader-right.png">
                    <Size x="512" y="64"></Size>
                    <Anchors>
                        <Anchor point="BOTTOMRIGHT" relativePoint="TOPRIGHT" x="0" y="0" />
                    </Anchors>
                </Texture>
                <Texture file="Interface/AddOns/GW2_UI/textures/bag/bagfooter.png">
                    <Size x="512" y="70"></Size>
                    <Anchors>
                        <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" x="0" y="2" />
                        <Anchor point="TOPRIGHT" relativePoint="BOTTOMRIGHT" x="0" y="2" />
                    </Anchors>
                </Texture>
                <Texture parentKey="Left" file="Interface/AddOns/GW2_UI/textures/bag/bagleftpanel.png">
                    <Size x="40" y="512"></Size>
                    <Anchors>
                        <Anchor point="TOPRIGHT" relativePoint="TOPLEFT" x="0" y="0" />
                        <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMLEFT" x="0" y="0" />
                    </Anchors>
                </Texture>
            </Layer>
            <Layer level="BORDER">
                <Texture file="Interface/AddOns/GW2_UI/textures/bag/bottom-right.png">
                    <Size x="128" y="128"></Size>
                    <Anchors>
                        <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT" x="0" y="0" />
                    </Anchors>
                </Texture>
                <Texture file="Interface/AddOns/GW2_UI/textures/bag/bagicon.png">
                    <Size x="84" y="84"></Size>
                    <Anchors>
                        <Anchor point="CENTER" relativePoint="TOPLEFT" x="-16" y="16" />
                    </Anchors>
                </Texture>
                <FontString parentKey="headerString" text="Inventory" inherits="GameFontNormalSmall" justifyH="LEFT">
                    <Size x="512" y="40"></Size>
                    <Color r="1" b="0.73" g="0.93"></Color>
                    <Anchors>
                        <Anchor point="TOPLEFT" x="30" y="40"></Anchor>
                    </Anchors>
                </FontString>
                <FontString parentKey="spaceString" text="100/100" inherits="GameFontNormalSmall" justifyH="LEFT">
                    <Anchors>
                        <Anchor point="TOPLEFT" relativePoint="TOPLEFT" x="8" y="-8" />
                    </Anchors>
                    <Size x="200" y="24" />
                </FontString>
                <FontString parentKey="bronze" text="100" inherits="GameFontNormalSmall" justifyH="RIGHT">
                    <Size x="100" y="40"></Size>
                    <Anchors>
                        <Anchor point="BOTTOMRIGHT" x="-20" y="-40"></Anchor>
                    </Anchors>
                </FontString>
                <Texture file="Interface/MoneyFrame/UI-CopperIcon">
                    <Size x="11" y="11"></Size>
                    <Anchors>
                        <Anchor point="BOTTOMRIGHT" x="-8" y="-25"></Anchor>
                    </Anchors>
                </Texture>
                <FontString parentKey="silver" text="100" inherits="GameFontNormalSmall" justifyH="RIGHT">
                    <Size x="100" y="40"></Size>
                    <Anchors>
                        <Anchor point="BOTTOMRIGHT" x="-60" y="-40"></Anchor>
                    </Anchors>
                </FontString>
                <Texture file="Interface/MoneyFrame/UI-SilverIcon">
                    <Size x="11" y="11"></Size>
                    <Anchors>
                        <Anchor point="BOTTOMRIGHT" x="-48" y="-25"></Anchor>
                    </Anchors>
                </Texture>
                <FontString parentKey="gold" text="100" inherits="GameFontNormalSmall" justifyH="RIGHT">
                    <Size x="100" y="40"></Size>
                    <Anchors>
                        <Anchor point="BOTTOMRIGHT" x="-100" y="-40"></Anchor>
                    </Anchors>
                </FontString>
                <Texture file="Interface/MoneyFrame/UI-GoldIcon">
                    <Size x="11" y="11"></Size>
                    <Anchors>
                        <Anchor point="BOTTOMRIGHT" x="-88" y="-25"></Anchor>
                    </Anchors>
                </Texture>

                <FontString parentKey="currency1" text="100" inherits="GameFontNormalSmall" justifyH="RIGHT">
                    <Size x="100" y="40"></Size>
                    <Anchors>
                        <Anchor point="BOTTOMRIGHT" x="-195" y="-40"></Anchor>
                    </Anchors>
                </FontString>
                <Texture parentKey="currency1Texture" file="Interface/MoneyFrame/UI-GoldIcon">
                    <Size x="11" y="11"></Size>
                    <Anchors>
                        <Anchor point="BOTTOMRIGHT" x="-183" y="-25"></Anchor>
                    </Anchors>
                    <TexCoords left="0.1" right="0.9" top="0.1" bottom="0.9" />
                </Texture>
                <FontString parentKey="currency2" text="100" inherits="GameFontNormalSmall" justifyH="RIGHT">
                    <Size x="100" y="40"></Size>
                    <Anchors>
                        <Anchor point="BOTTOMRIGHT" x="-255" y="-40"></Anchor>
                    </Anchors>
                </FontString>
                <Texture parentKey="currency2Texture" file="Interface/MoneyFrame/UI-GoldIcon">
                    <Size x="11" y="11"></Size>
                    <Anchors>
                        <Anchor point="BOTTOMRIGHT" x="-243" y="-25"></Anchor>
                    </Anchors>
                    <TexCoords left="0.1" right="0.9" top="0.1" bottom="0.9" />
                </Texture>
                <FontString parentKey="currency3" text="100" inherits="GameFontNormalSmall" justifyH="RIGHT">
                    <Size x="100" y="40"></Size>
                    <Anchors>
                        <Anchor point="BOTTOMRIGHT" x="-315" y="-40"></Anchor>
                    </Anchors>
                </FontString>
                <Texture parentKey="currency3Texture" file="Interface/MoneyFrame/UI-GoldIcon">
                    <Size x="11" y="11"></Size>
                    <Anchors>
                        <Anchor point="BOTTOMRIGHT" x="-303" y="-25"></Anchor>
                    </Anchors>
                    <TexCoords left="0.1" right="0.9" top="0.1" bottom="0.9" />
                </Texture>

            </Layer>
        </Layers>
        <Frames>
            <Button parentKey="bagHeader0" id="0" inherits="GwBagHeaderTemplate"/>
            <Button parentKey="bagHeader1" id="1" inherits="GwBagHeaderTemplate"/>
            <Button parentKey="bagHeader2" id="2" inherits="GwBagHeaderTemplate"/>
            <Button parentKey="bagHeader3" id="3" inherits="GwBagHeaderTemplate"/>
            <Button parentKey="bagHeader4" id="4" inherits="GwBagHeaderTemplate"/>
            <Button parentKey="currency" framelevel="50">
                <Size x="32" y="32"></Size>
                <Anchors>
                    <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" x="2" y="-2" />
                </Anchors>
                <NormalTexture file="Interface/AddOns/GW2_UI/textures/icons/currency-icon.png"></NormalTexture>
            </Button>
            <Button parentKey="moneyFrame" registerForClicks="RightButtonUp">
                <Size x="180" y="40"></Size>
                <Anchors>
                    <Anchor point="BOTTOMRIGHT" x="0" y="-40"></Anchor>
                </Anchors>
                <Scripts>
                    <OnLeave>
                        GameTooltip:Hide()
                    </OnLeave>
                </Scripts>
            </Button>
            <Button parentKey="currency1Frame">
                <Size x="50" y="40"></Size>
                <Anchors>
                    <Anchor point="BOTTOMRIGHT" x="-183" y="-40"></Anchor>
                </Anchors>
                <Scripts>
                    <OnLeave>
                        GameTooltip:Hide()
                    </OnLeave>
                </Scripts>
            </Button>
            <Button parentKey="currency2Frame">
                <Size x="50" y="40"></Size>
                <Anchors>
                    <Anchor point="BOTTOMRIGHT" x="-243" y="-40"></Anchor>
                </Anchors>
                <Scripts>
                    <OnLeave>
                        GameTooltip:Hide()
                    </OnLeave>
                </Scripts>
            </Button>
            <Button parentKey="currency3Frame">
                <Size x="50" y="40"></Size>
                <Anchors>
                    <Anchor point="BOTTOMRIGHT" x="-303" y="-40"></Anchor>
                </Anchors>
                <Scripts>
                    <OnLeave>
                        GameTooltip:Hide()
                    </OnLeave>
                </Scripts>
            </Button>
            <Frame parentkey="mover" enableMouse="true">
                <Size y="40" />
                <Anchors>
                    <Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT" x="-40" y="0"></Anchor>
                    <Anchor point="BOTTOMRIGHT" relativePoint="TOPRIGHT" x="-30" y="0"></Anchor>
                </Anchors>
            </Frame>
            <Frame parentKey="sizer" enableMouse="true">
                <Size x="20" y="20"></Size>
                <Anchors>
                    <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT" x="0" y="0"></Anchor>
                </Anchors>
                <Layers>
                    <Layer level="OVERLAY">
                        <Texture name="$parentTexture" file="Interface/AddOns/GW2_UI/textures/uistuff/resize.png">
                            <Size x="32" y="32"></Size>
                            <Anchors>
                                <Anchor point="BOTTOMRIGHT" x="0" y="0"></Anchor>
                            </Anchors>
                        </Texture>
                    </Layer>
                </Layers>
            </Frame>
            <Button parentKey="buttonSettings" text="">
                <Anchors>
                    <Anchor point="TOPRIGHT" relativePoint="TOPRIGHT" x="-8" y="-8" />
                </Anchors>
                <Size x="24" y="24" />
                <NormalTexture file="Interface/AddOns/GW2_UI/textures/icons/mainmenumicrobutton-up.png"></NormalTexture>
                <PushedTexture file="Interface/AddOns/GW2_UI/textures/icons/mainmenumicronutton-down.png"></PushedTexture >
                <HighlightTexture file="Interface/AddOns/GW2_UI/textures/icons/mainmenumicrobutton-down.png"></HighlightTexture >
            </Button>
            <Button parentKey="buttonSort" text="">
                <Anchors>
                    <Anchor point="TOPRIGHT" relativePoint="TOPRIGHT" x="-40" y="-8" />
                </Anchors>
                <Size x="24" y="24" />
                <Anchors>
                    <Anchor point="TOPRIGHT" relativePoint="TOPRIGHT" x="-10" y="30"/>
                </Anchors>
                <NormalTexture file="Interface/AddOns/GW2_UI/textures/icons/bagmicrobutton-up.png"></NormalTexture>
                <PushedTexture file="Interface/AddOns/GW2_UI/textures/icons/bagmicrobutton-down.png"></PushedTexture >
                <HighlightTexture file="Interface/AddOns/GW2_UI/textures/icons/bagmicrobutton-down.png"></HighlightTexture >
                <NormalFont style="ChatBubbleFont"></NormalFont>
                <HighlightFont style="ChatBubbleFont"></HighlightFont>
            </Button>
            <Button parentKey="buttonClose" text="">
                <Size x="20" y="20" />
                <Anchors>
                    <Anchor point="TOPRIGHT" relativePoint="TOPRIGHT" x="-10" y="30"/>
                </Anchors>
                <NormalTexture file="Interface/AddOns/GW2_UI/textures/uistuff/window-close-button-normal.png"></NormalTexture>
                <PushedTexture file="Interface/AddOns/GW2_UI/textures/uistuff/window-close-button-hover.png"></PushedTexture >
                <HighlightTexture file="Interface/AddOns/GW2_UI/textures/uistuff/window-close-button-hover.png"></HighlightTexture >
                <NormalFont style="ChatBubbleFont"></NormalFont>
                <HighlightFont style="ChatBubbleFont"></HighlightFont>
            </Button>
            <Frame parentKey="ItemFrame">
                <Anchors>
                    <Anchor point="TOPLEFT" relativePoint="TOPLEFT" x="6" y="-73"></Anchor>
                    <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT" x="-4" y="3"></Anchor>
                </Anchors>
            </Frame>
        </Frames>
    </Frame>

    <CheckButton name="GwBackpackBagTemplate" inherits="BagSlotButtonTemplate" virtual="true">
        <Size x="28" y="28"></Size>
        <Layers>
            <Layer level="BACKGROUND">
                <Texture parentKey="gwBackdrop" file="Interface/AddOns/GW2_UI/textures/bag/bagitembackdrop.png">
                    <Anchors>
                        <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMLEFT" x="0" y="0"/>
                        <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT" x="0" y="0"/>
                        <Anchor point="TOPLEFT" relativePoint="TOPLEFT" x="0" y="0"/>
                        <Anchor point="TOPRIGHT" relativePoint="TOPRIGHT" x="0" y="0"/>
                    </Anchors>
                </Texture>
            </Layer>
        </Layers>
    </CheckButton>

</Ui>
