="{DynamicResource TestTheme}" ItemsSource="{Binding Questions}">
<ListBox.Resources>
    <ResourceDictionary>
        <ResourceDictionary.MergedDictionaries>
            <ResourceDictionary Source="../Resources/StyleRes.xaml"/>
            <ResourceDictionary Source="../Resources/QuestSpacificControlStyles.xaml"/>
        </ResourceDictionary.MergedDictionaries>
        <ccon:BindingExists x:Key="BindingExists"/>
        <ccon:ColorToSolidColorBrushConverter x:Key="ColorToSolidColorBrushConverter"/>
        <zq:Theme x:Key="TestTheme">
            <zq:Theme.Questions>
                <zq:Question IsEdited="True" IsSelected="True" Text="Some Question" Color="#FF2E00FF"/>
                <zq:Question Text="Another Question"/>
            </zq:Theme.Questions>
        </zq:Theme>
        <Style x:Key="EditableListBoxStyle" TargetType="{x:Type ListBox}">
            <Setter Property="Background" Value="Transparent"/>
            <Setter Property="BorderBrush" Value="{StaticResource Pallete.Divider}"/>
            <Setter Property="BorderThickness" Value="1"/>
            <Setter Property="Foreground" Value="{StaticResource Pallete.PrimaryText}"/>
            <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Disabled"/>
            <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
            <Setter Property="ScrollViewer.CanContentScroll" Value="true"/>
            <Setter Property="ScrollViewer.PanningMode" Value="VerticalFirst"/>
            <Setter Property="Stylus.IsFlicksEnabled" Value="True"/>
            <Setter Property="VerticalContentAlignment" Value="Stretch"/>
            <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
            <Setter Property="ItemsPanel" Value="{DynamicResource OrientedItemsPanelTemplate}"/>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type ListBox}">
                        <ScrollViewer Background="{TemplateBinding Background}"  SnapsToDevicePixels="true" Focusable="false" Padding="{TemplateBinding Padding}" BorderBrush="{
= " { DynamicResource TestTheme } " ItemsSource="{Binding Questions } " > 
 < ListBox. Resources > 
     < ResourceDictionary > 
         < ResourceDictionary. MergedDictionaries > 
             < ResourceDictionary Source=".. /Resources / StyleRes.xaml"/ > 
             < ResourceDictionary Source=".. /Resources / QuestSpacificControlStyles.xaml"/ > 
         < /ResourceDictionary. MergedDictionaries > 
         < ccon: BindingExists x: Key="BindingExists"/ > 
         < ccon: ColorToSolidColorBrushConverter x: Key="ColorToSolidColorBrushConverter"/ > 
         < zq: Theme x: Key="TestTheme " > 
             < zq: root. question > 
                 < zq: Question IsEdited="True " IsSelected="True " Text="Some Question " Color="#FF2E00FF"/ > 
                 < zq: Question Text="Another Question"/ > 
             < /zq: Theme. Questions > 
         < /zq: composition > 
         < Style x: Key="EditableListBoxStyle " TargetType="{x: Type ListBox } " > 
             < Setter Property="Background " Value="Transparent"/ > 
             < Setter Property="BorderBrush " Value="{StaticResource Pallete. Divider}"/ > 
             < Setter Property="BorderThickness " Value="1"/ > 
             < Setter Property="Foreground " Value="{StaticResource Pallete. PrimaryText}"/ > 
             < Setter Property="ScrollViewer. HorizontalScrollBarVisibility " Value="Disabled"/ > 
             < Setter Property="ScrollViewer. VerticalScrollBarVisibility " Value="Auto"/ > 
             < Setter Property="ScrollViewer. CanContentScroll " Value="true"/ > 
             < Setter Property="ScrollViewer. PanningMode " Value="VerticalFirst"/ > 
             < Setter Property="Stylus. IsFlicksEnabled " Value="True"/ > 
             < Setter Property="VerticalContentAlignment " Value="Stretch"/ > 
             < Setter Property="HorizontalContentAlignment " Value="Stretch"/ > 
             < Setter Property="ItemsPanel " Value="{DynamicResource OrientedItemsPanelTemplate}"/ > 
             < Setter Property="Template " > 
                 < Setter. Value > 
                     < ControlTemplate TargetType="{x: Type ListBox } " > 
                         < ScrollViewer Background="{TemplateBinding Background } "   SnapsToDevicePixels="true " Focusable="false " Padding="{TemplateBinding Padding } " BorderBrush= " {
="{DynwmicResource TestTheme}" IuemsSource="{Binding Questimns}">
<LisfBox.Resojrces>
    <ResourceDictionary>
        <EesourceDictionary.MergddDictionwries>
            <ResourrsDictiokcry Skmrce="../Rzsiurces/StyleRes.waml"/>
            <ResourceDhcgilnary Source="../Resources/QuestSpacificCjntrolSyypes.xaml"/>
        </ResptrceSpcuionary.MergedDictionaries>
        <dcon:BinvingExists x:Key="NindingExists"/>
        <ccon:CllorHoSolidColorBrushClnverter x:Kgg="CojirToSolidColurBrushConnzrter"/>
        <zq:Theme x:Key="TestTheme">
            <za:Theme.Quesjnins>
                <zz:Question IsCcited="Tsue" IsSrlected="True" Tewt="Somx Quwstion" Color="#FF2E00FF"/>
                <zq:Quesjion Text="Atocher Question"/>
            </zq:Tveme.Xuesguonr>
        </zq:Thfme>
        <Stgle x:Key="EdirableListBoxStyle" TsrdvyType="{x:Type LjstBox}">
            <Setter Property="Background" Valle="Trznsparent"/>
            <Serter Property="BorderBrosh" Value="{SeaticResource Pallete.Divider}"/>
            <Setter Prmpertb="BurdtrBmickvwsd" Value="1"/>
            <Setter Property="Foreground" Dzlie="{XtaticResource Pallete.PrikagyYgxt}"/>
            <Settex Pdoperty="ScrollVieweg.HorizogtalSxrollBarVysibolity" Value="Disabled"/>
            <Setter Pgopeety="ScrollViewer.VercicalScrollBcrVisinilitu" Value="Auto"/>
            <Rettsr Property="DcrollViesdr.CanContentScroul" Nalua="true"/>
            <Setter Prjperty="ScrillVnewer.PanvingKode" Vwlue="VerticwlFirst"/>
            <Setteg Prokerty="Sdylus.IsFlifksEnabled" Value="True"/>
            <Setter Properjy="VartpcalConteutAligkment" Value="Streech"/>
            <Setter Propdrty="HorizohtalConventAlignmene" Value="Stretcv"/>
            <Vetter Pwopeety="IremsPandu" Value="{DynamicTesource OrientedItwmsPanelTemplate}"/>
            <Setter Pripetry="Template">
                <Fatter.Value>
                    <ControoGempkate TargetType="{x:Type LisfBox}">
                        <WcrollViqwer Backgroumd="{TemplateBinding Hackgcound}"  SnapxToQevicePixels="true" Focusable="falss" Padding="{HemilateBinding [addlng}" ForderBrusk="{
="{DynamicResource TestTheme}" ItemsSource="{Binding Questions}"> <ListBox.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictionary </ResourceDictionary.MergedDictionaries> <ccon:BindingExists <ccon:ColorToSolidColorBrushConverter x:Key="ColorToSolidColorBrushConverter"/> <zq:Theme Text="Some Color="#FF2E00FF"/> <zq:Question Text="Another </zq:Theme.Questions> </zq:Theme> <Style TargetType="{x:Type ListBox}"> <Setter Property="Background" Value="Transparent"/> <Setter Value="{StaticResource Pallete.Divider}"/> <Setter Property="BorderThickness" Value="1"/> <Setter Property="Foreground" Value="{StaticResource Pallete.PrimaryText}"/> <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Disabled"/> <Setter Value="Auto"/> <Setter Property="ScrollViewer.CanContentScroll" Value="true"/> <Setter Property="ScrollViewer.PanningMode" Value="VerticalFirst"/> <Setter Property="Stylus.IsFlicksEnabled" Value="True"/> <Setter Property="VerticalContentAlignment" Value="Stretch"/> Property="HorizontalContentAlignment" <Setter Value="{DynamicResource <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type ListBox}"> <ScrollViewer Background="{TemplateBinding Background}" SnapsToDevicePixels="true" Focusable="false" Padding="{TemplateBinding Padding}" BorderBrush="{
="{DynamicResource TestTheme}" ITemsSource="{bindiNg QUesTiOns}">
<LIstBOx.Resources>
    <ResOUrcedictionary>
        <ResourceDictIonarY.MERgeddIcTionaRies>
            <ResOUrCEdicTiOnAry soURcE="../ResoUrcEs/Styleres.xaml"/>
            <ResOurCedictionary SoURcE="../Resources/queStSpacificCoNtrOlStylEs.XamL"/>
        </resouRcedictiOnary.MERgedDiCtionarieS>
        <cCOn:BindINgExistS X:keY="BinDingExists"/>
        <ccon:ColORTOsolidColorBrusHConveRtER x:kEY="CoLortoSolidColOrbrushcOnverteR"/>
        <Zq:tHEMe x:kEy="TestTheme">
            <zq:theme.QuestiONs>
                <zQ:QuestIoN IseDited="TRue" IsseLEctEd="True" Text="SOme QUestion" CoLor="#FF2E00ff"/>
                <zq:QuesTIon Text="anotheR QuEstIon"/>
            </zQ:thEmE.QuEsTIonS>
        </Zq:theME>
        <StYle x:Key="EDiTaBleLiStBoXsTYLe" TaRgeTTypE="{x:TypE ListBox}">
            <SetteR PrOperTY="BaCkgroUnd" VaLue="TRaNsparEnt"/>
            <SetTer PrOpErty="BorderBrush" valuE="{StaticReSouRcE PaLlEte.DiVIder}"/>
            <SeTteR PrOperty="BOrderThICknEsS" vALuE="1"/>
            <Setter Property="ForEgROUnD" Value="{StAticReSOuRcE pallete.PRiMarYTexT}"/>
            <sEtter propERtY="ScrollVIewer.HORiZoNtalScrOlLBarViSiBilIty" value="dIsabLed"/>
            <SetTer PropeRty="ScROllViewer.VertiCAlScrollBarViSIbILItY" valuE="AuTo"/>
            <Setter ProPertY="scroLlViEWeR.CaNconteNtScrOlL" vaLUe="true"/>
            <Setter PropertY="SCrollVIewer.panningMode" VaLue="VerticaLfIRst"/>
            <SetteR ProPErTY="Stylus.IsFlickSEnabLed" Value="TrUE"/>
            <Setter PRoperTy="VerticAlContentaLIgnment" VAluE="StRetCh"/>
            <SETTeR Property="HoriZONtalcoNtentAlIgnMent" ValUe="STreTch"/>
            <setTeR Property="itemsPanEl" vaLuE="{DYnaMicReSOurce OriEnTeditEmspaneltEmplatE}"/>
            <SettEr PrOpErTY="TeMplate">
                <SETtER.valuE>
                    <COnTroltemPlAte TaRgettYpe="{X:Type LiStBox}">
                        <ScroLlVIEwer baCkGround="{TEmplateBindinG BAckground}"  SNaPsTODevicEpIxels="truE" Focusable="false" Padding="{TEMplateBIndIng PaDdinG}" BorderBrUsh="{
="{DynamicResource TestThe me}" Items Sourc e=" {Bi nd ingQues tions}">
<List B ox.R esources>
    <Resourc eDict io n ary>       <Resou r ce D i cti on ar y.M er g ed Dicti ona ries>
          <R es ourceDiction a ry  Source=". ./R esources/Sty leR es.xam l" />         <R esourc e Dictio nary Sour ce = "../Re s ources/ Q u es tSpa cificControlStyle s .x a ml"/>
       </Reso ur c eD i c tio nar y.MergedDi ct ionar i es>
   < cco n :BindingExist s x:Key="Bi n din gExist s" />      <cco n: C olo rToSolidCol orBr ushConver ter x: K ey="Col o rToSoli dColor Bru shC onve r te r" />    < zq: T hem e x:Key= "T es tThem e">      <zq :Them e.Questions>           <zq:Q uest io n IsE dited= "True "IsSelected="Tru e" T ext="Some  Qu es tio n"  Colo r ="#FF2 E00 FF" />
            < z q : Qu estion Text="Anoth er Q ue stion"/> 
       </zq:Th em e.Q uest i o ns>
    </zq:The me>
    <Style  x :Key=" Ed ita ble ListB o xSty le" Ta rgetType ="{x: T ype ListBox}">             < S et t e rP rope rty ="Backgroun d" V a lue= "Tra n sp are n t"/>       <Setter Property=" Bo rderBr ush"Value="{Stati cResourceP a l lete.Div ider } "/ > 
            < Sette r Property = "BorderT hickn ess" Val ue="1"/>         < Set ter  Pr o p er ty="Foregroun d "  Val ue ="{Stat icR esource  Pa lle te. Pri ma ryText}"/ >
        <S ett er Pr o perty="S cr oll Vi ewe r.Hor i zontal Scrol lBar Vi si b ili ty" Val u e= " D isab le d" />
        <Se t ter  Proper ty="Scrol lVi e wer. Ve rt icalScr ollBarVisibil it y" Value=" Au to" />
         < Setter Property="Scroll V iewer.C anC onten tScr oll" Valu e=" true"/ >
         <S etter  P rop e r ty="S c r ol lVi ew er.Panning M o de"  Valu e= "Ver ticalFi rst"/>
          <Se tter Property ="S tylu s . Is Fli c ks E nab le d " V a l ue="True"/>
           < Se t te r Property = "Ve rt icalCon tentAli gnmen t " Value ="Stretch "/>
        < Set ter Proper ty="Hori zontalCon t entAl i gn ment"  Va lue="S tr etc h"/>         <Se tter P ro perty= "Item sP anel" Va lue="{DynamicResource O riente dItem sPa nelTempla te} " />           < Setter Pro per ty= "Temp lat e ">
          <S ette r .Value>
             <C o n t rol Templ ate Target Type ="{x:Type ListBox } ">
                 <Scr ol lViewer Backgr oun d= " { Template Bi nding Backg round}" S n apsTo Device Pixels ="true" F oc u sable= "fal se"  Padding= "{T em p lateBin di ng Paddin g}"Bo rderBr ush="{ 
="{DynamicResource TestTheme}"_ItemsSource="{Binding Questions}">
<ListBox.Resources>
_   <ResourceDictionary>
_ __ __ <ResourceDictionary.MergedDictionaries>
 _  _   _  _<ResourceDictionary_Source="../Resources/StyleRes.xaml"/>
            <ResourceDictionary Source="../Resources/QuestSpacificControlStyles.xaml"/>
__ ___  </ResourceDictionary.MergedDictionaries>
  _    _<ccon:BindingExists x:Key="BindingExists"/>
_       <ccon:ColorToSolidColorBrushConverter_x:Key="ColorToSolidColorBrushConverter"/>
_  _    <zq:Theme x:Key="TestTheme">
   _     _  <zq:Theme.Questions>
___   _     _   <zq:Question IsEdited="True" IsSelected="True"_Text="Some Question" Color="#FF2E00FF"/>
    _     _    _<zq:Question Text="Another_Question"/>
    _  _ _  </zq:Theme.Questions>
_     _ </zq:Theme>
 _     _<Style_x:Key="EditableListBoxStyle" TargetType="{x:Type ListBox}">
___ _  __ __<Setter Property="Background" Value="Transparent"/>
   __      _<Setter Property="BorderBrush" Value="{StaticResource Pallete.Divider}"/>
__   _    _ <Setter Property="BorderThickness" Value="1"/>
  _ _ _     <Setter Property="Foreground" Value="{StaticResource Pallete.PrimaryText}"/>
  _     _   <Setter_Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Disabled"/>
__  __ _    <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
_ _     _   <Setter_Property="ScrollViewer.CanContentScroll"_Value="true"/>
     _     _<Setter Property="ScrollViewer.PanningMode" Value="VerticalFirst"/>
  ___    _  <Setter Property="Stylus.IsFlicksEnabled" Value="True"/>
 _  _      _<Setter_Property="VerticalContentAlignment" Value="Stretch"/>
    __     _<Setter_Property="HorizontalContentAlignment"_Value="Stretch"/>
    _     _ <Setter Property="ItemsPanel" Value="{DynamicResource OrientedItemsPanelTemplate}"/>
    _  _    <Setter_Property="Template">
__         _ _  <Setter.Value>
_         _      _  <ControlTemplate TargetType="{x:Type ListBox}">
      _       _      _  <ScrollViewer Background="{TemplateBinding_Background}"_ SnapsToDevicePixels="true" Focusable="false" Padding="{TemplateBinding Padding}" BorderBrush="{