<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">
	<Texture name="HybridScrollBarButton" virtual="true">
		<TexCoords left="0.25" right="0.75" top="0.25" bottom="0.75"/>
	</Texture>
	
	<Slider name="HybridScrollBarTemplate" parentKey="scrollBar" virtual="true">
		<Size x="20" y="0"/>
		<Anchors>
			<Anchor point="TOPLEFT" relativePoint="TOPRIGHT" x="0" y="-18"/>
			<Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT" x="0" y="16"/>
		</Anchors>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture name="$parentBG" setAllPoints="true" hidden="true" parentKey="trackBG">
					<Color r="0" g="0" b="0" a=".85"/>
				</Texture>
			</Layer>
			<Layer level="ARTWORK">
				<Texture name="$parentTop" file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
					<Size x="27" y="48"/>
					<Anchors>
						<Anchor point="TOPLEFT" x="-4" y="17"/>
					</Anchors>
					<TexCoords left="0" right="0.484375" top="0" bottom=".20"/>
				</Texture>
				<Texture name="$parentBottom" file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
					<Size x="27" y="64"/>
					<Anchors>
						<Anchor point="BOTTOMLEFT" x="-4" y="-15"/>
					</Anchors>
					<TexCoords left="0.515625" right="1.0" top="0.1440625" bottom="0.4140625"/>
				</Texture>
				<Texture name="$parentMiddle" file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parentTop" relativePoint="BOTTOMLEFT"/>
						<Anchor point="BOTTOMRIGHT" relativeTo="$parentBottom" relativePoint="TOPRIGHT"/>
					</Anchors>
					<TexCoords left="0" right="0.484375" top="0.1640625" bottom="1"/>
				</Texture>
			</Layer>	
		</Layers>
		<Frames>
			<Button name="$parentScrollUpButton" inherits="UIPanelScrollUpButtonTemplate">
				<Anchors>
					<Anchor point="BOTTOM" relativePoint="TOP" x="0" y="-2"/>
				</Anchors>
				<Scripts>
					<OnLoad function="HybridScrollFrameScrollUp_OnLoad"/>
					<OnClick function ="HybridScrollFrameScrollButton_OnClick"/>
				</Scripts>
			</Button>
			<Button name="$parentScrollDownButton" inherits="UIPanelScrollDownButtonTemplate">
				<Anchors>
					<Anchor point="TOP" relativePoint="BOTTOM" x="0" y="2"/>
				</Anchors>
				<Scripts>
					<OnLoad function="HybridScrollFrameScrollDown_OnLoad"/>
					<OnClick function="HybridScrollFrameScrollButton_OnClick"/>
				</Scripts>
			</Button>
		</Frames>
		<Scripts>
			<OnValueChanged function="HybridScrollFrame_OnValueChanged"/>
		</Scripts>
		<ThumbTexture name="$parentThumbTexture" inherits="HybridScrollBarButton" file="Interface\Buttons\UI-ScrollBar-Knob" parentKey="thumbTexture">
			<Size x="18" y="24"/>
			<TexCoords left="0.20" right="0.80" top="0.125" bottom="0.875"/>
		</ThumbTexture>		
	</Slider>

	<Slider name="HybridScrollBarTrimTemplate" parentKey="scrollBar" virtual="true">
		<Size x="20" y="0"/>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture name="$parentBG" setAllPoints="true" hidden="true" parentKey="trackBG">
					<Color r="0" g="0" b="0" a=".85"/>
				</Texture>
			</Layer>
			<Layer level="ARTWORK">
				<Texture name="$parentTop" file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
					<Size x="24" y="48"/>
					<Anchors>
						<Anchor point="TOPLEFT" x="-4" y="17"/>
					</Anchors>
					<TexCoords left="0" right="0.45" top="0" bottom=".20"/>
				</Texture>
				<Texture name="$parentBottom" file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
					<Size x="24" y="64"/>
					<Anchors>
						<Anchor point="BOTTOMLEFT" x="-4" y="-15"/>
					</Anchors>
					<TexCoords left="0.515625" right="0.97" top="0.1440625" bottom="0.4140625"/>
				</Texture>
				<Texture name="$parentMiddle" file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
					<Anchors>
						<Anchor point="TOPLEFT" relativeTo="$parentTop" relativePoint="BOTTOMLEFT"/>
						<Anchor point="BOTTOMRIGHT" relativeTo="$parentBottom" relativePoint="TOPRIGHT"/>
					</Anchors>
					<TexCoords left="0" right="0.45" top="0.1640625" bottom="1"/>
				</Texture>
			</Layer>	
		</Layers>
		<Frames>
			<Button name="$parentScrollUpButton" inherits="UIPanelScrollUpButtonTemplate">
				<Anchors>
					<Anchor point="BOTTOM" relativePoint="TOP" x="0" y="-2"/>
				</Anchors>
				<Scripts>
					<OnLoad function="HybridScrollFrameScrollUp_OnLoad"/>
					<OnClick  function="HybridScrollFrameScrollButton_OnClick"/>
				</Scripts>
			</Button>
			<Button name="$parentScrollDownButton" inherits="UIPanelScrollDownButtonTemplate">
				<Anchors>
					<Anchor point="TOP" relativePoint="BOTTOM" x="0" y="2"/>
				</Anchors>
				<Scripts>
					<OnLoad function="HybridScrollFrameScrollDown_OnLoad"/>
					<OnClick function="HybridScrollFrameScrollButton_OnClick"/>
				</Scripts>
			</Button>
		</Frames>
		<Scripts>
			<OnValueChanged function="HybridScrollFrame_OnValueChanged"/>
		</Scripts>
		<ThumbTexture name="$parentThumbTexture" inherits="HybridScrollBarButton" file="Interface\Buttons\UI-ScrollBar-Knob" parentKey="thumbTexture">
			<Size x="18" y="24"/>
			<TexCoords left="0.20" right="0.80" top="0.125" bottom="0.875"/>
		</ThumbTexture>		
	</Slider>

	<Slider name="MinimalHybridScrollBarTemplate" parentKey="scrollBar" virtual="true">
		<Size x="22" y="0"/>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture name="$parentTrack" parentKey="trackBG">
					<Anchors>
						<Anchor point="TOPLEFT" x="0" y="17"/>
						<Anchor point="BOTTOMRIGHT" x="0" y="-17"/>
					</Anchors>
					<Color r="0" g="0" b="0" a="1"/>
				</Texture>
			</Layer>
		</Layers>
		<Frames>
			<Button name="$parentScrollUpButton" inherits="UIPanelScrollUpButtonTemplate">
				<Anchors>
					<Anchor point="TOP" x="0" y="15"/>
				</Anchors>
				<Scripts>
					<OnLoad function="HybridScrollFrameScrollUp_OnLoad"/>
					<OnClick function="HybridScrollFrameScrollButton_OnClick"/>
				</Scripts>
			</Button>
			<Button name="$parentScrollDownButton" inherits="UIPanelScrollDownButtonTemplate">
				<Anchors>
					<Anchor point="BOTTOM" x="0" y="-15"/>
				</Anchors>
				<Scripts>
					<OnLoad function="HybridScrollFrameScrollDown_OnLoad"/>
					<OnClick function="HybridScrollFrameScrollButton_OnClick"/>
				</Scripts>
			</Button>
		</Frames>
		<Scripts>
			<OnValueChanged function="HybridScrollFrame_OnValueChanged"/>
		</Scripts>
		<ThumbTexture name="$parentThumbTexture" inherits="HybridScrollBarButton" file="Interface\Buttons\UI-ScrollBar-Knob" parentKey="thumbTexture">
			<Size x="18" y="24"/>
			<TexCoords left="0.20" right="0.80" top="0.125" bottom="0.875"/>
		</ThumbTexture>
	</Slider>
	
	<ScrollFrame name="HybridScrollFrameTemplate" virtual="true">			
		<Scripts>
			<OnLoad function="HybridScrollFrame_OnLoad"/>
			<OnMouseWheel function="HybridScrollFrame_OnMouseWheel"/>
		</Scripts>
		<ScrollChild>
			<Frame name="$parentScrollChild">
				<Scripts>
					<OnLoad function="HybridScrollFrameScrollChild_OnLoad"/>
				</Scripts>
			</Frame>
		</ScrollChild>
	</ScrollFrame>

	<ScrollFrame name="BasicHybridScrollFrameTemplate" inherits="HybridScrollFrameTemplate" virtual="true">
		<Anchors>
			<Anchor point="TOPLEFT"/>
			<Anchor point="BOTTOMRIGHT"/>
		</Anchors>
		<Frames>
			<Slider name="$parentScrollBar" inherits="HybridScrollBarTemplate"/>
		</Frames>
	</ScrollFrame>
	
	<!-- This is a scrollframe with no border and a black texture for a track -->
	<ScrollFrame name="MinimalHybridScrollFrameTemplate" inherits="HybridScrollFrameTemplate" virtual="true">
		<Frames>
			<Slider name="$parentScrollBar" inherits="MinimalHybridScrollBarTemplate" parentKey="ScrollBar">
				<Anchors>
					<Anchor point="TOPLEFT" relativePoint="TOPRIGHT" x="0" y="-17"/>
					<Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT" x="0" y="17"/>
				</Anchors>
			</Slider>
		</Frames>		
	</ScrollFrame>
</Ui>