Changes
Created page with "Due to the changes we made in the {{UBIK}} WinX client, certain modifications in the customizable XAML templates are required. Please refer to each individual change to see wh..."
Due to the changes we made in the {{UBIK}} WinX client, certain modifications in the customizable XAML templates are required. Please refer to each individual change to see whether your existing templates might still be compatible.
* If not compatible, you must modify those templates or the relevant features will no longer function;
* If compatible, your existing templates can still be used. Nevertheless, we recommend updating them as soon as possible since all future bugfixes, improvements, etc. will not apply otherwise.
== Filtering by expressions ==
Customizers can define expressions in XAML to get different filtered list of content (objects, properties, etc.). This was done previously using the CollectionToViewConverter. Now it is replaced by the ListCollectionView. '''Existing XAMLs are still compatible.'''
=== Before 3.5 ===
<source lang = "xml">
<DataTemplate ...
xmlns:converters="using:UBIK.WinX.Converters">
<Grid>
<Grid.Resources>
<x:String x:Key="MetaClassExpression">Item.Content.MetaUID.ToString().ToLower()=="9d0b14f4-a966-4e5b-aae3-721e0670cc4b"</x:String>
<converters:CollectionToViewConverter x:Key="FilterByMetaClass" Source="{Binding Children.Items}" />
</Grid.Resources>
<ListView ...
ItemsSource="{Binding Source={StaticResource MetaClassExpression}, Converter={StaticResource FilterByMetaClass}}"/>
</Grid>
</DataTemplate>
</source>
=== After 3.5 ===
<source lang = "xml">
<DataTemplate ...
xmlns:cv="using:UBIK.WinX.UI.CollectionView">
<Grid>
<Grid.Resources>
<x:String x:Key="MetaClassExpression">Item.Content.MetaUID.ToString().ToLower()=="9d0b14f4-a966-4e5b-aae3-721e0670cc4b"</x:String>
<cv:ListCollectionView x:Key="FilterByMetaClass" Expression="{StaticResource MetaClassExpression}" ItemsSource="{Binding Children.Items}" />
</Grid.Resources>
<ListView ...
ItemsSource="{StaticResource FilterByMetaClass}"/>
</Grid>
</DataTemplate>
</source>
* If not compatible, you must modify those templates or the relevant features will no longer function;
* If compatible, your existing templates can still be used. Nevertheless, we recommend updating them as soon as possible since all future bugfixes, improvements, etc. will not apply otherwise.
== Filtering by expressions ==
Customizers can define expressions in XAML to get different filtered list of content (objects, properties, etc.). This was done previously using the CollectionToViewConverter. Now it is replaced by the ListCollectionView. '''Existing XAMLs are still compatible.'''
=== Before 3.5 ===
<source lang = "xml">
<DataTemplate ...
xmlns:converters="using:UBIK.WinX.Converters">
<Grid>
<Grid.Resources>
<x:String x:Key="MetaClassExpression">Item.Content.MetaUID.ToString().ToLower()=="9d0b14f4-a966-4e5b-aae3-721e0670cc4b"</x:String>
<converters:CollectionToViewConverter x:Key="FilterByMetaClass" Source="{Binding Children.Items}" />
</Grid.Resources>
<ListView ...
ItemsSource="{Binding Source={StaticResource MetaClassExpression}, Converter={StaticResource FilterByMetaClass}}"/>
</Grid>
</DataTemplate>
</source>
=== After 3.5 ===
<source lang = "xml">
<DataTemplate ...
xmlns:cv="using:UBIK.WinX.UI.CollectionView">
<Grid>
<Grid.Resources>
<x:String x:Key="MetaClassExpression">Item.Content.MetaUID.ToString().ToLower()=="9d0b14f4-a966-4e5b-aae3-721e0670cc4b"</x:String>
<cv:ListCollectionView x:Key="FilterByMetaClass" Expression="{StaticResource MetaClassExpression}" ItemsSource="{Binding Children.Items}" />
</Grid.Resources>
<ListView ...
ItemsSource="{StaticResource FilterByMetaClass}"/>
</Grid>
</DataTemplate>
</source>