DevZest WPF Docking
ReverseCollectionViewSource Class |
Represents the Extensible Application Markup Language (XAML) proxy of the CollectionView class, in a reversed order.
Inheritance Hierarchy
SystemObject System.Windows.ThreadingDispatcherObject
System.WindowsDependencyObject
System.Windows.DataCollectionViewSource
DevZest.WindowsReverseCollectionViewSource
System.WindowsDependencyObject
System.Windows.DataCollectionViewSource
DevZest.WindowsReverseCollectionViewSource
Namespace: DevZest.Windows
Assembly: DevZest.WpfDocking (in DevZest.WpfDocking.dll) Version: 2.5.0.0 (2.5.5912.0)
Syntax
The ReverseCollectionViewSource type exposes the following members.
Constructors
Name | Description | |
---|---|---|
ReverseCollectionViewSource | Initializes a new instance of the ReverseCollectionViewSource class |
Remarks
The ReverseCollectionViewSource class only works when View is ListCollectionView(Source is IList). Otherwise, it works as base class CollectionViewSource.
Examples
XAML
<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:sys="clr-namespace:System;assembly=mscorlib" xmlns:dz="http://schemas.devzest.com/presentation"> <Window.Resources> <x:Array x:Key="SourceData" Type="sys:String"> <sys:String>Item1</sys:String> <sys:String>Item2</sys:String> <sys:String>Item3</sys:String> <sys:String>Item4</sys:String> </x:Array> <CollectionViewSource x:Key="CollectionView" Source="{StaticResource SourceData}" /> <dz:ReverseCollectionViewSource x:Key="ReverseCollectionView" Source="{StaticResource SourceData}" /> </Window.Resources> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition/> <ColumnDefinition/> </Grid.ColumnDefinitions> <ListBox ItemsSource="{Binding Source={StaticResource CollectionView}}" /> <ListBox Grid.Column="1" ItemsSource="{Binding Source={StaticResource ReverseCollectionView}}" /> </Grid> </Window>
See Also