Changes

XAML Changes in UBIK WinX 3.5

18 bytes added, 08:32, 21 December 2018
== Filtering by expressions ==
Customizers can define expressions in XAML to get different filtered list lists of content (objects, properties, etc.). This was done previously using the CollectionToViewConverter. Now it It is now replaced by the ListCollectionView. '''Existing XAMLs are still compatible.'''
=== Before 3.5 ===
<Grid>
<Grid.Resources>
<x:String x:Key="MetaClassExpression">Item.Content.MetaUID.ToString().ToLower()==&quot;9d0b14f4D09E0F2E-a9661D2C-4e5b49C5-aae38285-721e0670cc4b585E2C83280C&quot;</x:String>
<converters:CollectionToViewConverter x:Key="FilterByMetaClass" Source="{Binding Children.Items}" />
</Grid.Resources>
<DataTemplate ...
xmlns:cv="using:UBIK.WinX.UI.CollectionView">
<Grid> <Grid.Resources> <x:String x:Key="MetaClassExpression">Item.Content.MetaUID.ToString().ToLower()==&quot;9d0b14f4D09E0F2E-a9661D2C-4e5b49C5-aae38285-721e0670cc4b585E2C83280C&quot;</x:String> <cv:ListCollectionView x:Key="FilterByMetaClass" Expression="{StaticResource MetaClassExpression}" ItemsSource="{Binding Children.Items}" /> </Grid.Resources> <ListView ... ItemsSource="{StaticResource FilterByMetaClass}"/> </Grid>
</DataTemplate>
</source>
 
[[Category:WinX|XAML Changes in UBIK WinX 3.5]]