Click here to Skip to main content
15,908,173 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
XML
<ComboBox Name="cmbDepartment" Height="25" Width="200" HorizontalAlignment="Left"  Margin="82,34,71,0"   >
                <ComboBox.ItemTemplate>
                    <DataTemplate>
                        <CheckBox Content="{Binding DepartmentName}" IsChecked="{Binding IsChecked,Mode=TwoWay}" />
                    </DataTemplate>
                </ComboBox.ItemTemplate>
            </ComboBox>

XML
<pre lang="c#"><pre lang="c#">
Posted

You need to just add ScrollViewer Visibility property to true
Like this :

XML
<ComboBox Name="cmbDepartment" Height="25" Width="200" HorizontalAlignment="Left"  Margin="82,34,71,0" ScrollViewer.VerticalScrollBarVisibility="Visible">
           <ComboBox.ItemTemplate>
               <DataTemplate>
                   <CheckBox Content="{Binding DepartmentName}" IsChecked="{Binding IsChecked,Mode=TwoWay}" />
               </DataTemplate>
           </ComboBox.ItemTemplate>
       </ComboBox>
 
Share this answer
 
 
Share this answer
 
Comments
nandakishoreroyal 26-Jun-13 3:02am    
Dear Tiwari Avinash,

You implement and send me the code..

I know how to search in google like that...

can you implement that code in WPF.
Tiwari Avinash 26-Jun-13 5:06am    
ok...thats really gud you can google but sorry to say dear I'm not supposed to code for you or any one here.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900