![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
| |
| | #1 (permalink) |
| | How to determine index of TabItem Hi Everyone, I am creating a control template for TabItem and cannot figure out how to determine if the TabItem is the first tab. I am doing this because I want the first tab to have a different shape. It would be great if the ItemsControl class had a readonly attached property for this but as far as I can tell, it does not. Does anyone know the best way to do this? I have attached a bit of my style to give you an idea of what I am trying to do (watch for wrapping): <ControlTemplate.Triggers> <Trigger Property="Name" Value="Chart"> <!-- There has to be a better way to do this --> <!-- It would be great if we could do the following: <Trigger Property="ItemsControl.Index" Value="0"> --> <Setter TargetName="FirstTabLeftWingShadow" Property="Visibility" Value="Visible" /> <Setter TargetName="LeftWingShadow" Property="Visibility" Value="Collapsed" /> <Setter TargetName="FirstTabLeftWing" Property="Visibility" Value="Visible" /> <Setter TargetName="LeftWing" Property="Visibility" Value="Collapsed" /> <Setter TargetName="LeftColumn" Property="Width" Value="16" /> </Trigger> .... -- Thanks, -Neal Borelli |
My System Specs![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| determine app is 32 or 64 bit | PowerShell | |||
| API to determine if UAC is enabled? | Vista security | |||