Quantcast
Channel: wpftoolkit Discussions Rss Feed
Viewing all articles
Browse latest Browse all 2157

New Post: CheckComboBox tooltip

$
0
0
Hi,

The following code works. I redefined the ItemTemplate for the CheckComboBox. When the mouse goes over an item of the CheckComboBox, its tooltip is displayed.
<Window.Resources>
      <x:Array x:Key="ComboBoxSource"
               Type="sys:String">
         <sys:String>First</sys:String>
         <sys:String>Second</sys:String>
         <sys:String>Third</sys:String>
      </x:Array>
   </Window.Resources>
    <Grid>
      <xctk:CheckComboBox x:Name="_checkComboBox"
                          ItemsSource="{StaticResource ComboBoxSource}"
                          Height="22">
         <xctk:CheckComboBox.ItemTemplate>
            <DataTemplate>
               <StackPanel Orientation="Horizontal"
                           ToolTip="{Binding}">
                  <TextBlock Text="My Text is: " />
                  <TextBlock Text="{Binding}" />
               </StackPanel>
            </DataTemplate>
         </xctk:CheckComboBox.ItemTemplate>
      </xctk:CheckComboBox>
   </Grid>

Viewing all articles
Browse latest Browse all 2157

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>