1.    10 Jan 2006 #1
    Philippe Lavoie Guest

    Grouping and sorting with CollectionViewSource inside the Nov CTP?


    Hi

    I'm trying to get grouping and sorting working with the Nov CTP and I
    can't find any up-to-date documentation on that class. Can someone point
    me to a working sample?

    Many thanks

    Phil
      My System SpecsSystem Spec

  2.    10 Jan 2006 #2
    Tina Tam [MSFT] Guest

    Re: Grouping and sorting with CollectionViewSource inside the Nov CTP?


    Hi Philippe,

    If you have the Nov CTP SDK documentation, you should be able to see an
    example on the CollectionViewSource class page (with a link to a
    CollectionViewSource sample), or is that not what you're looking for?
    Here's a snippet from that example:
    <Window.Resources>

    <src:Places x:Key="places"/>

    <CollectionViewSource Source="{StaticResource places}" x:Key="cvs">
    <CollectionViewSource.SortDescriptions>
    <scm:SortDescription PropertyName="CityName"/>
    </CollectionViewSource.SortDescriptions>
    <CollectionViewSource.GroupDescriptions>
    <dat:PropertyGroupDescription PropertyName="State"/>
    </CollectionViewSource.GroupDescriptions>
    </CollectionViewSource>

    </Window.Resources>
    <DockPanel>
    <ListBox ItemsSource="{Binding Source={StaticResource cvs}}"
    DisplayMemberPath="CityName" Name="lb">
    <ListBox.GroupStyle>
    <x:Static Member="GroupStyle.Default"/>
    </ListBox.GroupStyle>
    </ListBox>
    </DockPanel>Thanks,
    Tina
    --
    This posting is provided "AS IS" with no warranties, and confers no rights.

    "Philippe Lavoie" <philippe.lavoie@cactus.ca> wrote in message
    news:%23xOBSbNAGHA.3936@TK2MSFTNGP12.phx.gbl...
    > Hi
    >
    > I'm trying to get grouping and sorting working with the Nov CTP and I
    > can't find any up-to-date documentation on that class. Can someone point
    > me to a working sample?
    >
    > Many thanks
    >
    > Phil



      My System SpecsSystem Spec

  3.    10 Jan 2006 #3
    Philippe Lavoie Guest

    Re: Grouping and sorting with CollectionViewSource inside the NovCTP?


    Thanks Tina

    I was so sure that the samples were not working that I didn't even
    bother looking there Instead I looked on the web and none of the
    information works with the Nov CTP (even MSDN which is kind of strange).

    I will look there next time

    Phil

    Tina Tam [MSFT] wrote:
    > Hi Philippe,
    >
    > If you have the Nov CTP SDK documentation, you should be able to see an
    > example on the CollectionViewSource class page (with a link to a
    > CollectionViewSource sample), or is that not what you're looking for?
    > Here's a snippet from that example:
    > <Window.Resources>
    >
    > <src:Places x:Key="places"/>
    >
    > <CollectionViewSource Source="{StaticResource places}" x:Key="cvs">
    > <CollectionViewSource.SortDescriptions>
    > <scm:SortDescription PropertyName="CityName"/>
    > </CollectionViewSource.SortDescriptions>
    > <CollectionViewSource.GroupDescriptions>
    > <dat:PropertyGroupDescription PropertyName="State"/>
    > </CollectionViewSource.GroupDescriptions>
    > </CollectionViewSource>
    >
    > </Window.Resources>
    > <DockPanel>
    > <ListBox ItemsSource="{Binding Source={StaticResource cvs}}"
    > DisplayMemberPath="CityName" Name="lb">
    > <ListBox.GroupStyle>
    > <x:Static Member="GroupStyle.Default"/>
    > </ListBox.GroupStyle>
    > </ListBox>
    > </DockPanel>Thanks,
    > Tina



      My System SpecsSystem Spec

  4.    10 Jan 2006 #4
    Tina Tam [MSFT] Guest

    Re: Grouping and sorting with CollectionViewSource inside the Nov CTP?


    Ah, I see. Just FYI, MSDN has a different refresh schedule. The content
    there is only refreshed when there is a major milestone (such as a beta, but
    not a CTP). Therefore the Nov CTP SDK docs are more up-to-date than the
    online docs.

    Also, the samples that don't compile in the Nov version of the SDK are
    documented here:
    http://download.microsoft.com/downlo...K%20Readme.htm

    Hope that helps,
    Tina
    --
    This posting is provided "AS IS" with no warranties, and confers no rights.

    "Philippe Lavoie" <philippe.lavoie@cactus.ca> wrote in message
    news:uWtu5iYAGHA.2036@TK2MSFTNGP14.phx.gbl...
    > Thanks Tina
    >
    > I was so sure that the samples were not working that I didn't even bother
    > looking there Instead I looked on the web and none of the information
    > works with the Nov CTP (even MSDN which is kind of strange).
    >
    > I will look there next time
    >
    > Phil
    >
    > Tina Tam [MSFT] wrote:
    >> Hi Philippe,
    >>
    >> If you have the Nov CTP SDK documentation, you should be able to see an
    >> example on the CollectionViewSource class page (with a link to a
    >> CollectionViewSource sample), or is that not what you're looking for?
    >> Here's a snippet from that example:
    >> <Window.Resources>
    >>
    >> <src:Places x:Key="places"/>
    >>
    >> <CollectionViewSource Source="{StaticResource places}" x:Key="cvs">
    >> <CollectionViewSource.SortDescriptions>
    >> <scm:SortDescription PropertyName="CityName"/>
    >> </CollectionViewSource.SortDescriptions>
    >> <CollectionViewSource.GroupDescriptions>
    >> <dat:PropertyGroupDescription PropertyName="State"/>
    >> </CollectionViewSource.GroupDescriptions>
    >> </CollectionViewSource>
    >>
    >> </Window.Resources>
    >> <DockPanel>
    >> <ListBox ItemsSource="{Binding Source={StaticResource cvs}}"
    >> DisplayMemberPath="CityName" Name="lb">
    >> <ListBox.GroupStyle>
    >> <x:Static Member="GroupStyle.Default"/>
    >> </ListBox.GroupStyle>
    >> </ListBox>
    >> </DockPanel>Thanks,
    >> Tina

    >
    >



      My System SpecsSystem Spec


Similar Threads
Thread Forum
Sorting, Grouping and Stacking
I want to Sort or Group a folder containing *.AVI files by the date the movie clips were taken. I've tried to sort/group by all the date options -...
Vista file management
Sorting, Grouping and Stacking
I want to Sort or Group a folder containing *.AVI files by the date the movie clips were taken. I've tried to sort/group by all the date options -...
Vista General
Sorting, Grouping and Stacking
I want to Sort or Group a folder containing *.AVI files by the date the movie clips were taken. I've tried to sort/group by all the date options -...
Vista file management
grouping / sorting files
I have my music folder set to "music details" folder customization. I then set each sub folder to group by artist. The problem with this is, it...
General Discussion
grouping shapes with lines inside
I am drawing circles with lines inside- the grouping option will not work! How do I set the final shape so that it will all group?
Vista General
Sorting, grouping data
I've got a web page I want to download. I contains roughly 100 records. I want to sort and group the data based on certain fields. I also want to...
PowerShell
Grouping in a GridView inside ListView
My application requires a gridview that can display the results in groups, so I followed the example found at...
Avalon

Our Sites
  • Ten Forums
  • Eight Forums
  • Seven Forums
  • PC Help Forum
  • Help Me Bake
  • Site Links
  • Contact Us
  • Privacy and Cookies
  • About Us
    Windows Vista Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

    Designer Media Ltd
    All times are GMT -5. The time now is 16:34.
    .