To enable access to an ActiveList from XAML, a new property named SelectiveItems was added to the PropertyViewModel. This property returns the ActiveList if one is configured on the content object; otherwise, it falls back to the SelectiveList defined on the MetaProperty if no ActiveList is available for the content object. Below is an example of how this can be implemented in XAML. For the SelectedItem, it is important to use the PropertyValueToSelectiveItem converter and pass the control’s own ItemsSource path as the ConverterParameter, so that the list can be provided to the converter. This means that no DataTriggers or similar mechanisms are required to switch between ActiveLists and MetaProperty SelectiveLists or to perform any checks.
<syntaxhighlight tabs><tab name="MAUI"><source lang="xml">
<controls:SfListViewExt
x:Name="SelectiveList"
SelectionMode="Single"
Style="{DynamicResource UBIKListView}" />
</syntaxhighlightsource></tab><tab name="UWP"><source lang = "xml"><controls:ComboBoxExt x:Name="ComboBox" Grid.ColumnSpan="2" HorizontalAlignment="Stretch" DisplayMemberPath="DisplayText" ItemsSource="{Binding PropertyViewModel.SelectiveItems}" PlaceholderText="{Binding PropertyEdit_PickerPlaceholder, Source={StaticResource AppResources}}" SelectedValue="{Binding PropertyValue, Mode=TwoWay}" SelectedValuePath="Value" Visibility="{Binding PropertyViewModel.ShowComboBox, Converter={StaticResource BoolToVisConverter}}" /></source></tab></tabs>
{{UnderConstructionEnd}}