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
550
Tab Style/Theme Questions
posted

I have a XamTabManager that I am using data triggers in a local style to hide one of the tabs.  This causes the theme to be overriden.  Do I need to used based on something to get the current theme?

 

Second, the tab header is all that gets hidden. How do I force the tab in view through xaml?

 

<igWindows:TabItemEx Header="Item View" Name="tabItemView">

 

<igWindows:XamTabControl x:Name="tabEditViews" Grid.Row="1"
           TabStripPlacement="Top" TabLayoutStyle="SingleRowJustified" Theme="[current]"
                                 Margin="0" >
        <igWindows:TabItemEx Header="Item View" Name="tabItemView">
          ....
        </igWindows:TabItemEx>
       
        <igWindows:TabItemEx Name="tabOfficialCheck" Header="Official Check" >
                <igWindows:TabItemEx.Style>
                    <Style TargetType="{x:Type igWindows:TabItemEx}">
                        <Style.Triggers>
                            <DataTrigger Binding="{Binding RelativeSource={RelativeSource Self}, Path=DataContext}" Value="{x:Null}" >
                                <Setter Property="igWindows:TabItemEx.Visibility" Value="Hidden" />
                            </DataTrigger>
                            <DataTrigger Binding="{Binding Path=IsOfficialCheck}" Value="True" >
                                <Setter Property="igWindows:TabItemEx.Visibility" Value="Visible" />
                            </DataTrigger>
                            <DataTrigger Binding="{Binding Path=IsOfficialCheck}" Value="False" >
                                <Setter Property="igWindows:TabItemEx.Visibility" Value="Hidden" />
                            </DataTrigger>
                        </Style.Triggers>
                    </Style>
                </igWindows:TabItemEx.Style>                               
   </igWindows:XamTabControl>