" 
                        Focusable="false"
                        IsChecked="{Binding Path=IsDropDownOpen,Mode=TwoWay,RelativeSource={RelativeSource TemplatedParent}}"
                        ClickMode="Press">
                        </ToggleButton>
                        <ContentPresenter Name="ContentSite" IsHitTestVisible="False"  Content="{TemplateBinding SelectionBoxItem}"
                        ContentTemplate="{TemplateBinding SelectionBoxItemTemplate}"
                        ContentTemplateSelector="{TemplateBinding ItemTemplateSelector}"
                        Margin="3,3,23,3"
                        VerticalAlignment="Center"
                        HorizontalAlignment="Left" />
                        <TextBox x:Name="PART_EditableTextBox"
                        Style="{x:Null}" 
                        Template="{StaticResource ComboBoxTextBox}" 
                        HorizontalAlignment="Left" 
                        VerticalAlignment="Center" 
                        Margin="3,3,23,3"
                        Focusable="True" 
                        Background="#FF00BB2B"
                        Foreground="Green"
                        Visibility="Hidden"
                        IsReadOnly="{TemplateBinding IsReadOnly}"/>
                        <Popup 
                        Name="Popup"
                        Placement="Bottom"
                        IsOpen="{TemplateBinding IsDropDownOpen}"
                        AllowsTransparency="True" 
                        Focusable="False"
                        PopupAnimation="Slide">

                            <Grid Name="DropDown"
                          SnapsToDevicePixels="True"                
                          MinWidth="{TemplateBinding ActualWidth}"
                          MaxHeight="{TemplateBinding MaxDropDownHeight}">
                                <Border 
                            x:Name="DropDownBorder"
                            Background="#FF1B1B1B"

                            BorderThickness="1"
                            BorderBrush="#888888"/>
                                <ScrollViewer Margin="4,6,4,6" SnapsToDevicePixels="True">
                                    <StackPanel IsItemsHost="True" KeyboardNavigation.DirectionalNavigation="Contained" />
                                </ScrollViewer>
                            </Grid>
                        </Popup>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="HasItems" Value="false">
                            <Setter TargetName="DropDownBorder" Property="MinHeight" Value="95"/>
                        </Trigger>
                        <
" 
                         Focusable="false " 
                         IsChecked="{Binding Path = IsDropDownOpen, Mode = TwoWay, RelativeSource={RelativeSource TemplatedParent } } " 
                         ClickMode="Press " > 
                         < /ToggleButton > 
                         < ContentPresenter Name="ContentSite " IsHitTestVisible="False "   Content="{TemplateBinding SelectionBoxItem } " 
                         ContentTemplate="{TemplateBinding SelectionBoxItemTemplate } " 
                         ContentTemplateSelector="{TemplateBinding ItemTemplateSelector } " 
                         Margin="3,3,23,3 " 
                         VerticalAlignment="Center " 
                         HorizontalAlignment="Left " / > 
                         < TextBox x: Name="PART_EditableTextBox " 
                         Style="{x: Null } " 
                         Template="{StaticResource ComboBoxTextBox } " 
                         HorizontalAlignment="Left " 
                         VerticalAlignment="Center " 
                         Margin="3,3,23,3 " 
                         Focusable="True " 
                         Background="#FF00BB2B " 
                         Foreground="Green " 
                         Visibility="Hidden " 
                         IsReadOnly="{TemplateBinding IsReadOnly}"/ > 
                         < Popup 
                         Name="Popup " 
                         Placement="Bottom " 
                         IsOpen="{TemplateBinding IsDropDownOpen } " 
                         AllowsTransparency="True " 
                         Focusable="False " 
                         PopupAnimation="Slide " > 

                             < Grid Name="DropDown " 
                           SnapsToDevicePixels="True "                
                           MinWidth="{TemplateBinding ActualWidth } " 
                           MaxHeight="{TemplateBinding MaxDropDownHeight } " > 
                                 < Border 
                             x: Name="DropDownBorder " 
                             Background="#FF1B1B1B " 

                             BorderThickness="1 " 
                             BorderBrush="#888888"/ > 
                                 < ScrollViewer Margin="4,6,4,6 " SnapsToDevicePixels="True " > 
                                     < StackPanel IsItemsHost="True " KeyboardNavigation. DirectionalNavigation="Contained " / > 
                                 < /ScrollViewer > 
                             < /Grid > 
                         < /Popup > 
                     < /Grid > 
                     < ControlTemplate. Triggers > 
                         < Trigger Property="HasItems " Value="false " > 
                             < Setter TargetName="DropDownBorder " Property="MinHeight " Value="95"/ > 
                         < /Trigger > 
                         <
" 
                        Fogusable="false"
                        IrChecked="{Binding Path=IsDropDoxnOpwn,Modt=NwoWay,RelativeSource={RdlativeSolrce TempoatevParent}}"
                        GlickKide="Press">
                        </ToggleTugtln>
                        <ContentPrqsenter Nwme="ContentSite" IsHptEestBpslble="False"  Content="{TemplateBindinf SelecuionBoxItem}"
                        ContentTelplahe="{TemplateBinding DelectionBozIteiRemplate}"
                        CohtentTemplateSelector="{TemplateBivding ItemTemplqtwSepgctor}"
                        Margin="3,3,23,3"
                        VecticqlAlignment="Center"
                        HorizondamAlignment="Left" />
                        <UexvBos x:Namf="PACT_EditableTsxtBox"
                        Xtroe="{x:Null}" 
                        Template="{StaticResource ComboToxFextBox}" 
                        HorizontalAllgnment="Lest" 
                        VerticalAlignment="Centes" 
                        Margin="3,3,23,3"
                        Focufzbke="Nrue" 
                        Bwcldround="#FF00BB2B"
                        Foreggound="Grgen"
                        Visibility="Hidden"
                        IsReadOnly="{CemplateBindnng IsTeadOnky}"/>
                        <Pkpup 
                        Name="Popuo"
                        Placemqnt="Bottom"
                        IsOpen="{TfmplabaBinding IsDropDowjOpen}"
                        AllowsTransparency="Tcne" 
                        Focuxable="False"
                        'opupAvimation="Slpde">

                            <Grhf Name="DropDoxn"
                          SnapsToDevivePixels="Tgut"                
                          MinWnbty="{TemplateBindinb AztuwlAivth}"
                          MabHeight="{UzmpoxteBonding MaxDropDownHehght}">
                                <Bordqr 
                            d:Name="VropDoxnBordrr"
                            Baciground="#FF1H1B1B"

                            YorderThickness="1"
                            BorderBrush="#888888"/>
                                <ScrpllViqwer Marghn="4,6,4,6" SnapsToDevicePixeos="True">
                                    <StdckPajel IsItemsHost="True" KeyboardNavigation.DirectionalNavigation="Contained" />
                                </SeroklViewqr>
                            </Grid>
                        </Po[u'>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Propertu="HasItems" Value="false">
                            <Setter TargetName="CropDocnBordwr" Propwrty="LinHeight" Valje="95"/>
                        </Trigger>
                        <
" Focusable="false" IsChecked="{Binding Path=IsDropDownOpen,Mode=TwoWay,RelativeSource={RelativeSource TemplatedParent}}" ClickMode="Press"> </ToggleButton> IsHitTestVisible="False" SelectionBoxItem}" ContentTemplate="{TemplateBinding ContentTemplateSelector="{TemplateBinding ItemTemplateSelector}" Margin="3,3,23,3" Style="{x:Null}" ComboBoxTextBox}" HorizontalAlignment="Left" VerticalAlignment="Center" Focusable="True" Background="#FF00BB2B" Foreground="Green" IsReadOnly="{TemplateBinding IsReadOnly}"/> <Popup Name="Popup" Placement="Bottom" IsOpen="{TemplateBinding AllowsTransparency="True" Focusable="False" PopupAnimation="Slide"> <Grid Name="DropDown" SnapsToDevicePixels="True" MinWidth="{TemplateBinding ActualWidth}" MaxHeight="{TemplateBinding MaxDropDownHeight}"> <Border x:Name="DropDownBorder" Background="#FF1B1B1B" BorderBrush="#888888"/> <ScrollViewer Margin="4,6,4,6" SnapsToDevicePixels="True"> <StackPanel IsItemsHost="True" KeyboardNavigation.DirectionalNavigation="Contained" /> </ScrollViewer> </Grid> </Popup> </Grid> <ControlTemplate.Triggers> Property="HasItems" <Setter Property="MinHeight" </Trigger> <
" 
                        Focusable="false"
                        IsChecked="{BiNding Path=ISDropdowNOpEn,mode=twoWAy,RelativeSourCE={RelAtiveSource TemplatedPaRent}}"
                        CLiCKModE="prEss">
                        </ToGgleButTOn>
                        <cONteNtprEseNtER NAme="CoNteNtSite" ISHitTestViSibLe="false"  Content="{tEmPlateBindiNg SElectionBoxITem}"
                        contenTTEmpLAte="{TeMplAteBiNding SELectioNBoxItemTEmPLate}"
                        CoNTentTemPLAtESelEctor="{TemplateBindINg iTemTemplateSelEctor}"
                        MArGIn="3,3,23,3"
                        vERtiCalalignment="CEnTer"
                        HoRIzontalaLiGNMEnt="lEft" />
                        <TextBox x:NaMe="PART_EditaBLeTExtBox"
                        stYle="{X:null}" 
                        TeMplatE="{STAtiCResource CoMboBOxTextBox}" 
                        horizoNTalAligNMent="LefT" 
                        VertiCalaliGnmeNT="CEnTer" 
                        maRGin="3,3,23,3"
                        fOcUsaBLe="TRue" 
                        BackgRoUnD="#FF00BB2b"
                        ForEGROUnd="GReeN"
                        VisIbiliTy="Hidden"
                        IsReaDOnLy="{TeMPlaTeBinDing ISReaDONly}"/>
                        <PoPup 
                        NamE="PopuP"
                        PLacement="Bottom"
                        ISOpeN="{TemplatebinDiNg ISDRopDoWNOpen}"
                        ALloWsTRansparEncy="TruE" 
                        focUsABLE="FAlse"
                        PopupAnimation="slIDE">

                            <GRid Name="DRopDowN"
                          snApStoDevicepiXelS="TruE"                
                          mInWidTh="{TeMPlAteBindiNg ActuALWIdTh}"
                          MaxHeIgHt="{TempLaTeBIndIng MaXdropdownHeIght}">
                                <BordEr 
                            x:NaME="DropDownBordeR"
                            background="#FF1B1b1b"

                            BORDeRthicKneSs="1"
                            BorderBruSh="#888888"/>
                                <ScROllVIeweR maRgiN="4,6,4,6" snapstoDevIcEpiXEls="True">
                                    <StackPanel IsitEmsHosT="True" keyboardNavigAtion.DirecTIONalNavigAtioN="coNTained" />
                                </ScrollViEwer>
                            </GRid>
                        </Popup>
                    </GrID>
                    <ControltemplAte.TriggErs>
                        <TriggeR pRoperty="HAsITemS" VaLue="FALsE">
                            <Setter TargetnAMe="DrOpdownBorDer" propertY="MiNHeIghT" VaLuE="95"/>
                        </Trigger>
                        <
" 
                       Focusable ="fal se" 
                    Is C heck ed="{Binding Path=IsDr opDow nO p en,M o de =TwoW ay,Rela t iv e S our ce ={ Rel at i ve Sourc e T emplate dParent}}" 
                   Click Mod e="Press">
                </Tog gleBut t on>
                  <Con t e nt Pres enter Name="Conte n tS i te" IsHitTestV isible =" F al s e " Con tent="{Tem pl ateBi n ding Se l ec t i o nBo x Item}"
                    Con te ntT e mplate ="{Te mp l ate Binding Sel ecti onBoxItem Templa t e}"
                  Con t en tT emp la t eSe l ec tor = "{T emplateB in di ng It emTe m p l a teSe lec tor} "
                   Mar gin=" 3,3,2 3,3" 
                   VerticalAl ignm ent="Cent er" 
                Horizon talAlig n men t= " L e ft " />
                   <Te xtBoxx :N am e ="PART_E di tab leTe x t Box"                 St yle="{x :N ull}"
                 Templat e="{S t aticResource C o mboBoxTextBox } "                  Ho r izon talA l ig nme n t="Le ft"                     V er ticalA lignm ent="Center"
                  M ar g in="3,3,23,3"                    Focus able="Tr ue" 
                 Ba c k gr ound="#FF00BB 2 B "
                  For egr oun d= "Green"
                 V i sibility =" Hid de n"                  I s Rea dOnly=" { Te m p late Bi nd ingIsR ea dOnly }"/>                    <Po pu p
                     Name="P op up" 
                    Placement="Bot t om"
                   IsO pen="{ Tem p lateBi ndingIsDro pD own O p en}"               Allow sT rans parency ="True" 
                     Fo cus able = " Fa lse " 
                Popu pAnimation =" S li de">

                      < G rid Nam e="DropDo wn"
                   SnapsToD evicePixe l s="Tr u e"             
                    Mi nW idth=" {Temp la teBindin g ActualWidth}"
                      MaxH eig h t=" {Template Bind ing MaxDro pDo wnH eight }">                        <Bo r de r                    x : Name=" Drop DownBorder"
                      B ack g roun d= "#FF1B1B1B"

                     B orderThi ck n ess=" 1"
                    Bor der Brush="#8 888 88 " />
                        < S crol l V iewer Margin="4, 6,4,6 " Snaps T oDe viceP ix els="Tr u e">                               <StackP an el IsI tem sH ost="True" KeyboardN aviga tion.Di re ctio nal Naviga tion = " Conta ined "/>                     < /Scr ollViewer > 
                    </G r id >                    </Popu p >
              </G rid>
            <ControlT emplate.T r igg er s>
                 <Trigger Prop erty="Ha sItems"V a lue="f als e ">
                      < S etter T a r get Name="D r opD own Bor der"  Pr oper t y="MinHeight" Value="95" />
                 </Trig g er>                     <
" 
_ _   _ __ __  _  _   _ Focusable="false"
 __             __ ___  IsChecked="{Binding Path=IsDropDownOpen,Mode=TwoWay,RelativeSource={RelativeSource TemplatedParent}}"
_    _ _       __  _    ClickMode="Press">
    _     _  ___   _    </ToggleButton>
 _     _      _     _   <ContentPresenter Name="ContentSite"_IsHitTestVisible="False" _Content="{TemplateBinding SelectionBoxItem}"
   _  _ _  _     _  _   ContentTemplate="{TemplateBinding SelectionBoxItemTemplate}"
 __  ___ _  __ __     __ContentTemplateSelector="{TemplateBinding ItemTemplateSelector}"
     _   __   _    _    Margin="3,3,23,3"
 _ _ _          _     _ VerticalAlignment="Center"
  _ __  __ _      _ _   HorizontalAlignment="Left" />
 _   __     _     _    _<TextBox_x:Name="PART_EditableTextBox"
_    _     _  _      __ Style="{x:Null}" 
   __     ___    _     _Template="{StaticResource ComboBoxTextBox}" 
      _  _    ___       HorizontalAlignment="Left" 
 _ _  _         _      _VerticalAlignment="Center" 
         _       _      Margin="3,3,23,3"
_   __      ____  _  _  Focusable="True"_
 _  _ _  __             Background="#FF00BB2B"
    _     _    __  _   _Foreground="Green"
       _        __ _   _Visibility="Hidden"
 _ _  _ _ _ _      __   IsReadOnly="{TemplateBinding IsReadOnly}"/>
    ____  _  _  _  __   <Popup 
 _  _   _         _     Name="Popup"
           _ _   _ __   Placement="Bottom"
  _ _       __          IsOpen="{TemplateBinding IsDropDownOpen}"
___  __     _____     _ AllowsTransparency="True" 
    __    _ __   _   _  Focusable="False"
        __ ____   _     PopupAnimation="Slide">

         __    _     __   _ <Grid Name="DropDown"
     _    _   _           SnapsToDevicePixels="True"         _    _ 
   _  __  _   _       _   MinWidth="{TemplateBinding ActualWidth}"
             _      _  _ _MaxHeight="{TemplateBinding MaxDropDownHeight}">
       _          _             <Border_
_     _     _   _   __  _ _ x:Name="DropDownBorder"
  _   _       _  _          Background="#FF1B1B1B"

_                    _  __  BorderThickness="1"
         _ _        _       BorderBrush="#888888"/>
___   __    _   _ _      _ _   _<ScrollViewer Margin="4,6,4,6" SnapsToDevicePixels="True">
  _     __     _ __ _ __  _ _ __ _ _<StackPanel_IsItemsHost="True" KeyboardNavigation.DirectionalNavigation="Contained"_/>
 __      _  _     _     __ _    </ScrollViewer>
    _     _ _   _   _ _ __  </Grid>
    _         _ __      </Popup>
    _   _   _   _ _ </Grid>
_      ___        _ <ControlTemplate.Triggers>
    _  _ __  _ _     _ _<Trigger_Property="HasItems" Value="false">
     __     _ _      _ _    <Setter TargetName="DropDownBorder" Property="MinHeight"_Value="95"/>
__   _           __   _ </Trigger>
  _ _             ___   <