<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="GwSpellbook" enableMouse="true" virtual="true">
        <Size x="853" y="627"></Size>
        <Anchors>
            <Anchor point="TOPLEFT" relativePoint="TOPLEFT" x="0" y="0"></Anchor>
        </Anchors>
        <Layers>
            <Layer level="ARTWORK">
                <Texture file="Interface\AddOns\GW2_UI\textures\character\windowbg-brushed">
                    <Size x="853" y="853"></Size>
                    <Anchors>
                        <Anchor point="TOPLEFT" relativePoint="TOPLEFT" x="0" y="0"></Anchor>
                    </Anchors>
                </Texture>
            </Layer>
        </Layers>
        <Frames>
            <Button parentKey="showAllSpellRanks">
                <Size x="200" y="20"/>
                <Anchors>
                    <Anchor point="TOPRIGHT" relativePoint="TOPRIGHT" x="-10" y="-10"/>
                </Anchors>
                <Layers>
                    <Layer level="OVERLAY" textureSubLevel="2">
                        <FontString parentKey="string" text="SHOW_ALL_SPELL_RANKS" inherits="ChatBubbleFont" justifyH="LEFT">
                            <Size x="200" y="20"/>
                            <Anchors>
                                <Anchor point="LEFT" x="25" y="0"></Anchor>
                            </Anchors>
                        </FontString>
                    </Layer>
                </Layers>
                <Frames>
                    <CheckButton parentKey="checkbutton" checked="false">
                        <Size x="16" y="16"/>
                        <Anchors>
                            <Anchor point="RIGHT" relativePoint="RIGHT" x="5"/>
                        </Anchors>
                        <NormalTexture file="Interface/AddOns/GW2_UI/textures/uistuff/checkbox"/>
                        <CheckedTexture file="Interface/AddOns/GW2_UI/textures/uistuff/checkboxchecked"/>
                        <Scripts>
                            <OnShow>
                                self:SetChecked( GetCVarBool("ShowAllSpellRanks"))
                            </OnShow>
                        </Scripts>
                    </CheckButton>
                </Frames>
            </Button>
        </Frames>
    </Frame>

    <ScrollFrame name="GwSpellbookUnknown" inherits="SecureHandlerShowHideTemplate" virtual="true" enableMouse="true">
        <Size x="568" y="581"/>
        <Anchors>
            <Anchor point="TOPLEFT" relativePoint="TOPLEFT" x="241" y="-37"/>
            <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT" x="0" y="10"/>
        </Anchors>
        <Layers>
            <Layer level="BACKGROUND">
                <Texture parentKey="headerbg" file="Interface\AddOns\GW2_UI\textures\talents\talents_header">
                    <Size x="512" y="32"/>
                    <Anchors>
                        <Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT" x="0" y="0"/>
                    </Anchors>
                </Texture>
            </Layer>
            <Layer level="BORDER">
                <FontString parentKey="title" text="Unknown" justifyH="LEFT" justifyV="MIDDLE">
                    <Anchors>
                        <Anchor point="LEFT" relativePoint="LEFT" relativeKey="$parent.headerbg" x="5" y="0"/>
                    </Anchors>
                </FontString>
                <FontString parentKey="filltext" text="All Spells are known" justifyH="CENTER" justifyV="MIDDLE">
                    <Anchors>
                        <Anchor point="TOP" relativePoint="BOTTOM" relativeKey="$parent.headerbg" x="50" y="-100"/>
                    </Anchors>
                </FontString>
            </Layer>
        </Layers>
        <Frames>
            <Frame parentKey="container">
                <Size x="568" y="581"/>
                <Anchors>
                    <Anchor point="TOPLEFT" relativePoint="TOPLEFT" x="0" y="0" />
                </Anchors>
            </Frame>
            <Slider parentKey="slider" orientation="VERTICAL" enableMouse="true" virtual="true">
                <Size x="12" y="12"></Size>
                <Anchors>
                    <Anchor point="TOPRIGHT" relativePoint="TOPRIGHT" x="0" y="-12"></Anchor>
                    <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT" x="0" y="12"></Anchor>
                </Anchors>
                <ThumbTexture name="$parentThumb" parentKey="thumb" file="Interface\AddOns\GW2_UI\textures\uistuff\scrollbarmiddle">
                    <Size x="12" y="100"/>
                    <Anchors>
                        <Anchor point="TOP" relativePoint="TOP" ></Anchor>
                    </Anchors>
                </ThumbTexture>
                <Layers>
                    <Layer>
                        <Texture file="Interface\AddOns\GW2_UI\textures\uistuff\scrollbg">
                            <Anchors>
                                <Anchor point="TOP" relativePoint="TOP"></Anchor>
                                <Anchor point="BOTTOM" relativePoint="BOTTOM"></Anchor>
                            </Anchors>
                        </Texture>
                    </Layer>
                </Layers>
                <Scripts>
                    <OnValueChanged>
                        if InCombatLockdown() then return end
                        self:GetParent():SetVerticalScroll(value)
                    </OnValueChanged>
                    <OnLoad>
                        self:SetValue(0)
                    </OnLoad>
                </Scripts>
            </Slider>
            <Button name="$parentScrollButtonUp" parentKey="ScrollButtonUp">
                <Size x="12" y="12"></Size>
                <Anchors>
                    <Anchor point="TOPRIGHT" relativePoint="TOPRIGHT" x="0" y="0"></Anchor>
                </Anchors>
                <Layers>
                    <Layer>
                        <Texture file="Interface\AddOns\GW2_UI\textures\uistuff\scrollbutton">
                            <Size x="12" y="12"></Size>
                            <Anchors>
                                <Anchor point="TOP" relativePoint="TOP"></Anchor>
                            </Anchors>
                        </Texture>
                    </Layer>
                </Layers>
            </Button>
            <Button name="$parentScrollButtonDown" parentKey="ScrollButtonDown">
                <Size x="12" y="12"></Size>
                <Anchors>
                    <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT" x="0" y="0"></Anchor>
                </Anchors>
                <Layers>
                    <Layer>
                        <Texture file="Interface\AddOns\GW2_UI\textures\uistuff\scrollbutton">
                            <Size x="12" y="12"></Size>
                            <Anchors>
                                <Anchor point="TOP" relativePoint="TOP"></Anchor>
                            </Anchors>
                            <TexCoords left="0" right="1" top="1" bottom="0" />
                        </Texture>
                    </Layer>
                </Layers>
            </Button>
        </Frames>
        <Scripts>
            <OnMouseWheel>
                if InCombatLockdown() then return end
                delta = -delta * 60
                local min, max = self.slider:GetMinMaxValues()
                local s = math.min(max, math.max(self:GetVerticalScroll() + delta, min))
                self.slider:SetValue(s)
                self:SetVerticalScroll(s)
            </OnMouseWheel>
            <OnLoad>
                self:SetScrollChild(self.container)

                self.title:SetFont(DAMAGE_TEXT_FONT, 16, "OUTLINE")
                self.title:SetTextColor(0.9, 0.9, 0.7, 1)

                self.filltext:SetFont(DAMAGE_TEXT_FONT, 24, "OUTLINE")
                self.filltext:SetTextColor(1, 1, 1, 0.5)
                self.filltext:SetText(ADDON_NOT_AVAILABLE)
            </OnLoad>
        </Scripts>
    </ScrollFrame>

    <Button name="GwSpellbookUnknownSpell" enableMouse="true"  virtual="true">
        <Size x="40" y="40"/>
        <Layers>
            <Layer level="BACKGROUND">
                <Texture parentKey="outline" file="Interface\AddOns\GW2_UI\textures\talents\background_border">
                    <Size x="50" y="50"/>
                    <Anchors>
                        <Anchor point="CENTER" relativePoint="CENTER"/>
                    </Anchors>
                </Texture>
            </Layer>
            <Layer level="ARTWORK" textureSubLevel="2">
                <Texture parentKey="icon">
                    <Anchors>
                        <Anchor point="TOPLEFT" relativePoint="TOPLEFT" x="0" y="0"/>
                        <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT" x="0" y="0"/>
                    </Anchors>
                    <TexCoords left="0.1" right="0.9" top="0.1" bottom="0.9" />
                </Texture>
            </Layer>
            <Layer level="OVERLAY">
                <Texture file="Interface\AddOns\GW2_UI\textures\party\manage-group-arrow" parentKey="arrow">
                    <Size x="16" y="32"/>
                    <Anchors>
                        <Anchor point="RIGHT" relativePoint="RIGHT" x="5"/>
                    </Anchors>
                </Texture>
            </Layer>
            <Layer level="OVERLAY" textureSubLevel="2">
                <Texture file="Interface\AddOns\GW2_UI\textures\talents\autocast" parentKey="autocast">
                    <Size x="55" y="55"/>
                    <Anchors>
                        <Anchor point="CENTER" relativePoint="CENTER" x="0"/>
                    </Anchors>
                </Texture>
                <Texture file="Interface\AddOns\GW2_UI\textures\talents\spell-lock" parentKey="lock">
                    <Anchors>
                        <Anchor point="TOPLEFT" relativePoint="TOPLEFT" x="0" y="0"/>
                        <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT" x="0" y="0"/>
                    </Anchors>
                </Texture>
                <FontString parentKey="rank" text="" justifyH="RIGHT" justifyV="BOTTOM">
                    <Anchors>
                        <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT" x="0" y="0"/>
                    </Anchors>
                </FontString>
            </Layer>
            <Layer level="HIGHLIGHT">
                <Texture alphaMode="ADD" file="Interface\AddOns\GW2_UI\textures\talents\active_highlight" parentKey="highlight">
                    <Size x="40" y="40"/>
                    <Anchors>
                        <Anchor point="CENTER" relativePoint="CENTER"/>
                    </Anchors>
                    <Color r="1" b="0.6" g="1" a="0.9"></Color>
                </Texture>
            </Layer>
        </Layers>
        <Scripts>
            <OnDragStart>
                if InCombatLockdown() or self.isPassive or self.isFuture then return end

                PickupSpellBookItem(self.spellbookIndex,self.booktype)
            </OnDragStart>
            <OnLoad>
                self.rank:SetFont(DAMAGE_TEXT_FONT, 12, "OUTLINE")
                self.rank:SetTextColor(0.9, 0.9, 0.8, 1)
            </OnLoad>
        </Scripts>
    </Button>

    <Frame name="GwUnknownSpellCat" virtual="true">
        <Size x="588" y="100"></Size>
        <Anchors>
            <Anchor point="TOPLEFT" relativePoint="TOPLEFT" x="0" y="-5"></Anchor>
        </Anchors>
        <Layers>
            <Layer level="ARTWORK" textureSubLevel="-1">
                <Texture parentKey="repbg" file="Interface/AddOns/GW2_UI/textures/rep/BFA/7thLegion">
                    <Anchors>
                        <Anchor point="TOPLEFT"></Anchor>
                        <Anchor point="BOTTOMRIGHT"></Anchor>
                    </Anchors>
                    <Color r="1" g="1" b="1" a="0.5"/>
                </Texture>
            </Layer>
            <Layer level="ARTWORK">
                <Texture parentKey="background" file="Interface\AddOns\GW2_UI\textures\party\manage-group-bg">
                    <Size x="245" y="100"></Size>
                    <Anchors>
                        <Anchor point="TOPLEFT" relativePoint="TOPLEFT" x="0" y="0"></Anchor>
                        <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT" x="0" y="0"></Anchor>
                    </Anchors>
                    <Color r="1" g="1" b="1" a="0.5"></Color>
                </Texture>
                <Texture file="Interface\AddOns\GW2_UI\textures\party\manage-group-border">
                    <Size x="2" y="2"></Size>
                    <Anchors>
                        <Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT" x="-2" y="0"></Anchor>
                        <Anchor point="BOTTOMRIGHT" relativePoint="TOPRIGHT" x="2" y="2"></Anchor>
                    </Anchors>
                    <Color r="0" g="0" b="0" a="0.5"></Color>
                </Texture>
                <Texture file="Interface\AddOns\GW2_UI\textures\party\manage-group-border">
                    <Size x="2" y="2"></Size>
                    <Anchors>
                        <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" x="-2"></Anchor>
                        <Anchor point="TOPRIGHT" relativePoint="BOTTOMRIGHT" x="2"></Anchor>
                    </Anchors>
                    <Color r="0" g="0" b="0" a="0.5"></Color>
                </Texture>
                <Texture file="Interface\AddOns\GW2_UI\textures\party\manage-group-border">
                    <Size x="2" y="2"></Size>
                    <Anchors>
                        <Anchor point="TOPLEFT" relativePoint="TOPRIGHT"></Anchor>
                        <Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT"></Anchor>
                    </Anchors>
                    <Color r="0" g="0" b="0" a="0.5"></Color>
                </Texture>
                <Texture file="Interface\AddOns\GW2_UI\textures\party\manage-group-border">
                    <Size x="2" y="2"></Size>
                    <Anchors>
                        <Anchor point="TOPRIGHT" relativePoint="TOPLEFT"></Anchor>
                        <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMLEFT"></Anchor>
                    </Anchors>
                    <Color r="0" g="0" b="0" a="0.5"></Color>
                </Texture>
            </Layer>
            <Layer level="OVERLAY">
                <FontString parentKey="title" text="Unknown" justifyH="LEFT"  >
                    <Anchors>
                        <Anchor point="TOPLEFT" relativePoint="TOPLEFT" x="10" y="-10"></Anchor>
                    </Anchors>
                </FontString>
                <FontString parentKey="sub" text="" justifyH="LEFT">
                    <Anchors>
                        <Anchor point="LEFT" relativePoint="RIGHT" relativeKey="$parent.title" x="10" ></Anchor>
                    </Anchors>
                </FontString>
            </Layer>
        </Layers>
        <Scripts>
            <OnLoad>
                self.title:SetFont(UNIT_NAME_FONT,14,"OUTLINE")
                self.sub:SetFont(UNIT_NAME_FONT,11,"OUTLINE")
            </OnLoad>
            <OnEnter>
                self.repbg:SetVertexColor(1,1,1,0.7)
            </OnEnter>
            <OnLeave>
                self.repbg:SetVertexColor(1,1,1,0.5)
            </OnLeave>
        </Scripts>
    </Frame>

</Ui>