Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
265
XamTab contents in visual tooltip
posted

I am using XamTabControl to develop a screen that looks like Vista's task bar. I want to have the tooltip for each tab to show the small visual of the contents. I am using following XAML but not getting the desired results. Any idea, how do I make it work?

<igWindows:XamTabControl x:Name="xamTab" TabItemCloseButtonVisibility="Visible" DockPanel.Dock="Top" Background="Transparent">
 <igWindows:XamTabControl.ItemContainerStyle>
  <Style TargetType="{x:Type igWindows:TabItemEx }">
   <Setter Property="ToolTip">
    <Setter.Value>
     <ControlTemplate TargetType="{x:Type ToolTip}">
      <StackPanel>
       <Rectangle Width="100" Height="75">
        <Rectangle.Fill>
         <VisualBrush Stretch="Fill"  Visual="{Binding Content}"/>
        </Rectangle.Fill>
       </Rectangle>
      </StackPanel>
     </ControlTemplate>
    </Setter.Value>
   </Setter>
  </Style>
 </igWindows:XamTabControl.ItemContainerStyle>
</igWindows:XamTabControl>