Changes
/* Preselection of customized Tabs */
Add an EvalExpression into the content area, processing the x:Name of the tab that should be checked. Bind the expression to every RadioButton's IsChecked.
<source lang="xml">
<!--
If the Title of the context object is 'MyObjectTitle', the CustomTabRadioButton should be checked.
Otherwise, if the TabSelector enum name is ChildrenTab, the ChildrenTabRadioButton should be checked.
And if the TabSelector enum name is anything else (PropertiesTab or DocumentsTab), the PropertiesTabRadioButton should be checked.
-->
<controls:EvalExpression
x:Name="CustomTabSelector"
Visibility="Collapsed"
Expression="Title == "03 Property EditingMyObjectTitle" ? "TestTabCUSTOM" : (TabSelector.ToString() == "ChildrenTab" ? "ChildrenTabCHILDREN" : "PropertiesTabPROPERTIES")">
<controls:EvalExpressionParameter Name="Title" Value="{Binding Title}" />
<controls:EvalExpressionParameter Name="TabSelector" Value="{Binding TabSelector}" />
<RadioButton
x:Name="ChildrenTabChildrenTabRadioButton"
GroupName="Tabs"
IsChecked="{Binding Path=Result, ElementName=CustomTabSelector, Converter={StaticResource EqualToTrueConverter}, ConverterParameter=ChildrenTabCHILDREN}" />
<RadioButton
x:Name="TestTabCustomTabRadioButton"
GroupName="Tabs"
IsChecked="{Binding Path=Result, ElementName=CustomTabSelector, Converter={StaticResource EqualToTrueConverter}, ConverterParameter=TestTabCUSTOM}" />
<RadioButton
x:Name="PropertiesTabPropertiesTabRadioButton"
GroupName="Tabs"
IsChecked="{Binding Path=Result, ElementName=CustomTabSelector, Converter={StaticResource EqualToTrueConverter}, ConverterParameter=PropertiesTabPROPERTIES}" />
</source>
</tab>
x:Key="CustomTabSelector"
Context="{Binding}"
Expression="Title == "03 Property EditingMyObjectTitle" ? 1 : (TabSelector.ToString() == "ChildrenTab" ? 0 : 2)">
<controls:EvalExpressionParameter Name="Title" Value="{Binding Title}" />
<controls:EvalExpressionParameter Name="TabSelector" Value="{Binding TabSelector}" />
<tabView:SfTabView SelectedIndex="{Binding Source={StaticResource CustomTabSelector}, Path=Result}">
<!-- tabView:SfTabItems in the order ChildrenTab (0) / Test Custom Tab(1) / PropertiesTab (2) ... -->
</tabView:SfTabView>
</source>
