title: Set SelectedItem as ToolTip in WPF Combo Box Style in UIResources
body: <p>I had defined a ComboBox Style in UIResources and using it on all controls in my application as below:</p>
  
  <pre><code>&lt;Style x:Name="combo" TargetType="{x:Type ComboBox}"&gt;
          &lt;Setter Property="UIElement.SnapsToDevicePixels" Value="True"/&gt;
          &lt;Setter Property="FrameworkElement.OverridesDefaultStyle" Value="True"/&gt;
          &lt;Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/&gt;
          &lt;Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/&gt;
          &lt;Setter Property="ScrollViewer.CanContentScroll" Value="True"/&gt;
          &lt;Setter Property="TextElement.Foreground" Value="White"/&gt;
          &lt;Setter Property="FrameworkElement.FocusVisualStyle" Value="{x:Null}"/&gt;
          &lt;Setter Property="Control.Template"&gt;
              &lt;Setter.Value&gt;
                  &lt;ControlTemplate TargetType="ComboBox"&gt;
                      &lt;Grid&gt;
                          &lt;ToggleButton
                                  ClickMode="Press"
                                  Name="ToggleButton"
                                  IsChecked="{Binding Path=IsDropDownOpen, RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay}"
                                  Focusable="False"
                                  Grid.Column="2"
                                  Template="{StaticResource ComboBoxToggleButtonTemplate}"/&gt;
                          &lt;ContentPresenter
                                  Margin="3,3,23,3"
                                  HorizontalAlignment="Left"
                                  Name="ContentSite"
                                  VerticalAlignment="Center"
                                  ContentTemplate="{TemplateBinding ComboBox.SelectionBoxItemTemplate}"
                                  Content="{TemplateBinding ComboBox.SelectionBoxItem}"
                                  IsHitTestVisible="False" /&gt;
                          &lt;TextBox
                                  Margin="3,3,23,3"
                                  Visibility="Hidden"
                                  HorizontalAlignment="Left"
                                  Name="PART_EditableTextBox"
                                  Background="Transparent"
                                  VerticalAlignment="Center"
                                  Style="{x:Null}"
                                  IsReadOnly="False"
                                  Focusable="True"
                                  xml:space="preserve"
                                  Template="{StaticResource ComboBoxTextBoxTemplate}"/&gt;
                          &lt;Popup
                                  Placement="Bottom"
                                  Name="Popup"
                                  Focusable="False"
                                  AllowsTransparency="True"
                                  IsOpen="{TemplateBinding ComboBox.IsDropDownOpen}"
                                  PopupAnimation="Fade" &gt;
                              &lt;Grid
                                      MinWidth="{TemplateBinding FrameworkElement.ActualWidth}"
                                      MaxHeight="{TemplateBinding ComboBox.MaxDropDownHeight}"
                                      Name="DropDown"
                                      SnapsToDevicePixels="True"&gt;
                                  &lt;Border
                                          BorderBrush="#FF404040"
                                          BorderThickness="1,1,1,1"
                                          Name="DropDownBorder"
                                          Background="#FF404040" /&gt;
                                  &lt;ScrollViewer
                                          Margin="4,6,4,6"
                                          SnapsToDevicePixels="True"&gt;
                                      &lt;ItemsPresenter
                                              KeyboardNavigation.DirectionalNavigation="Contained"/&gt;
                                  &lt;/ScrollViewer&gt;
                              &lt;/Grid&gt;
                          &lt;/Popup&gt;
                             &lt;Border x:Name="border" 
                                  BorderBrush="{TemplateBinding BorderBrush}" 
                                  BorderThickness="{TemplateBinding BorderThickness}" 
                                  SnapsToDevicePixels="True"/&gt;
                      &lt;/Grid&gt;
                      &lt;ControlTemplate.Triggers&gt;
                          &lt;Trigger Property="ItemsControl.HasItems" Value="False"&gt;
                              &lt;Setter Property="FrameworkElement.MinHeight" TargetName="DropDownBorder" Value="95"/&gt;
                          &lt;/Trigger&gt;
                          &lt;Trigger Property="UIElement.IsEnabled" Value="False"&gt;
                              &lt;Setter Property="TextElement.Foreground" Value="{StaticResource DisabledForegroundBrush}"/&gt;
                          &lt;/Trigger&gt;
                          &lt;Trigger Property="ItemsControl.IsGrouping" Value="True"&gt;
                              &lt;Setter Property="ScrollViewer.CanContentScroll" Value="False"/&gt;
                          &lt;/Trigger&gt;
                          &lt;Trigger Property="Window.AllowsTransparency" SourceName="Popup" Value="True"&gt;
                              &lt;Setter Property="FrameworkElement.Margin" TargetName="DropDownBorder" Value="0,0,0,0"/&gt;
                          &lt;/Trigger&gt;
                          &lt;Trigger Property="ComboBox.IsEditable" Value="True"&gt;
                              &lt;Setter Property="KeyboardNavigation.IsTabStop" Value="False"/&gt;
                              &lt;Setter Property="UIElement.Visibility" TargetName="PART_EditableTextBox" Value="Visible"/&gt;
                              &lt;Setter Property="UIElement.Visibility" TargetName="ContentSite" Value="Hidden"/&gt;
                          &lt;/Trigger&gt;
                          &lt;Trigger Property="IsKeyboardFocusWithin" Value="True"&gt;
                              &lt;Setter Property="Opacity" TargetName="border" Value="1"/&gt;
                              &lt;Setter Property="BorderBrush" Value="DodgerBlue"/&gt;
                              &lt;Setter Property="BorderThickness" Value="1"/&gt;
                          &lt;/Trigger&gt;
                      &lt;/ControlTemplate.Triggers&gt;
                  &lt;/ControlTemplate&gt;
              &lt;/Setter.Value&gt;
          &lt;/Setter&gt;
      &lt;/Style&gt;
  </code></pre>
  
  <p>Now i am having a requirement to show selected item as tool-tip also. Can I set tool-tip in this style so when user had selected any item it is assigned to tool-tip.Is there any possibility i can set tool-tip in UIResource style or i have to do it in every single combo box?</p>
  
  <p>Thanks in Advance</p>