hi
how to divide width of tab item equally in two parts according to the size of window(uncertain) in wpf
there are two tabs in my window i want the width of both the tab should be same
<tabcontro>
<tabitem header= "tab1"/>
<tabitem header= "tab2"/>
</tabcontrol>
my style resource
<Style x:Key="FeatureTabItemStyleright" TargetType="{x:Type TabItem}"><Setter Property="Template"><Setter.Value><ControlTemplate TargetType="{x:Type TabItem}"><Grid><Border Name="Border" Margin="-1,0,0,0" BorderBrush="{StaticResource iECGsTabItemBorderBrush}" BorderThickness="1,0,0,1" CornerRadius="0,5,5,0" Background="{StaticResource FeatureTabItemSelectedBackgroundBrush}"><Grid ><ContentPresenter x:Name="ContentSite" VerticalAlignment="Center" HorizontalAlignment="Stretch" ContentSource="Header" Margin="12,2,28,2" RecognizesAccessKey="True"/></Grid></Border></Grid><ControlTemplate.Triggers><Trigger Property="IsSelected" Value="True"><Setter Property="BorderThickness" Value="0,1,1,1"/><Setter TargetName="Border" Property="BorderThickness" Value="0,0,0,1"/><Setter TargetName="Border" Property="Background" Value="{StaticResource FeatureTabItemSelectedBackgroundBrush}"/><Setter Property="Height" Value="35"/><Setter Property="FontSize" Value="14"/><!--<Setter Property="FontWeight" Value="Bold"/>--></Trigger><Trigger Property="IsEnabled" Value="False"></Trigger><MultiTrigger><MultiTrigger.Conditions><Condition Property="IsMouseOver" Value="True"/><Condition Property="IsSelected" Value="False"/></MultiTrigger.Conditions><Setter TargetName="Border" Property="BorderBrush" Value="{StaticResource FeatureTabItemMouseOverBorderBrush}"/><Setter TargetName="Border" Property="BorderThickness" Value="1,1,1,1"/></MultiTrigger></ControlTemplate.Triggers></ControlTemplate></Setter.Value></Setter><Setter Property="FontSize" Value="12"/><Setter Property="Height" Value="30"/></Style>
hi i just want that the both tabitem should have equal width and shoud cover the whole width of the window, if the window is resixe then width of tab item should resize according to that