<Ui>
  <Frame name="AuctionatorBuyHistoryPricesFrameTemplate" mixin="AuctionatorBuyHistoryPricesFrameMixin" virtual="true">
    <Frames>
      <Frame parentKey="RealmHistoryDataProvider" mixin="AuctionatorBuyingRealmHistoryDataProviderMixin">
        <Scripts>
          <OnLoad method="OnLoad"/>
          <OnUpdate method="OnUpdate" />
        </Scripts>
      </Frame>
      <Frame parentKey="RealmHistoryResultsListing" inherits="AuctionatorResultsListingTemplate">
        <Anchors>
          <Anchor point="TOPLEFT"/>
          <Anchor point="BOTTOMRIGHT" x="-20"/>
        </Anchors>
      </Frame>

      <Frame parentKey="PostingHistoryDataProvider" mixin="AuctionatorBuyingPostingHistoryProviderMixin">
        <Scripts>
          <OnLoad method="OnLoad"/>
          <OnUpdate method="OnUpdate" />
        </Scripts>
      </Frame>
      <Frame parentKey="PostingHistoryResultsListing" inherits="AuctionatorResultsListingTemplate">
        <Anchors>
          <Anchor point="TOPLEFT"/>
          <Anchor point="BOTTOMRIGHT" x="-20"/>
        </Anchors>
      </Frame>

      <Frame parentKey="Inset" inherits="AuctionatorInsetTemplate">
        <Anchors>
          <Anchor point="TOPLEFT" relativeKey="$parent.RealmHistoryResultsListing" relativePoint="TOPLEFT" x="-10" y="-25"/>
          <Anchor point="BOTTOMRIGHT" relativeKey="$parent.RealmHistoryResultsListing" relativePoint="BOTTOMRIGHT" y="2"/>
        </Anchors>
      </Frame>

      <Button inherits="UIPanelDynamicResizeButtonTemplate" text="AUCTIONATOR_L_YOUR_HISTORY" parentKey="PostingHistoryButton">
        <Anchors>
          <Anchor point="TOP" relativeKey="$parent.RealmHistoryResultsListing" relativePoint="BOTTOM"/>
          <Anchor point="RIGHT" relativePoint="RIGHT" x="-8" y="10" />
        </Anchors>
        <Scripts>
          <OnClick>
            self:GetParent():SelectPostingHistory()
          </OnClick>
        </Scripts>
      </Button>

      <Button inherits="UIPanelDynamicResizeButtonTemplate" text="AUCTIONATOR_L_REALM_HISTORY" parentKey="RealmHistoryButton">
        <Anchors>
          <Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMLEFT" relativeKey="$parent.PostingHistoryButton"/>
        </Anchors>
        <Scripts>
          <OnClick>
            self:GetParent():SelectRealmHistory()
          </OnClick>
        </Scripts>
      </Button>
    </Frames>
  </Frame>
</Ui>
