<p>So WPF doesn't support standard sorting or filtering behavior for views of CompositeCollections, so what would be a best practice for solving this problem. </p>

<p>There are two or more object collections of different types. You want to combine them into a single sortable and filterable collection (withing having to manually implement sort or filter).</p>

<p>One of the approaches I've considered is to create a new object collection with only a few core properties, including the ones that I would want the collection sorted on, and an object instance of each type. </p>

<pre><code>class MyCompositeObject
{
    enum           ObjectType;
    DateTime       CreatedDate;
    string         SomeAttribute;
    myObjectType1  Obj1;
    myObjectType2  Obj2;
{
class MyCompositeObjects : List&lt;MyCompositeObject&gt; { }
</code></pre>

<p>And then loop through my two object collections to build the new composite collection. Obviously this is a bit of a brute force method, but it would work. I'd get all the default view sorting and filtering behavior on my new composite object collection, and I'd be able to put a data template on it to display my list items properly depending on which type is actually stored in that composite item.</p>

<p>What suggestions are there for doing this in a more elegant way?</p>

[{'answer_id': 11284, 'author': 'Patrik Svensson', 'author_id': 936, 'author_profile': 'https://Stackoverflow.com/users/936', 'pm_score': 0, 'selected': False, 'text': "<p>I'm no VB.NET expert, but have you tried to set the value to for example 1.0.0.*?\nThis should increase the revision number (at least it does in the AssemblyInfo.cs in C#).</p>\n"}, {'answer_id': 11286, 'author': 'Jedi Master Spooky', 'author_id': 1154, 'author_profile': 'https://Stackoverflow.com/users/1154', 'pm_score': 0, 'selected': False, 'text': '<p>The option you select is only to update the setup number. To update the program number you have to  modify the AssemblyInfo. </p>\n\n<p>C#\n[assembly: AssemblyVersion("X.Y.<em>")]\n[assembly: AssemblyFileVersion("X.Y.</em>")]</p>\n\n<p>VB.NET\nAssembly: AssemblyVersion("X.Y.*")</p>\n'}, {'answer_id': 11297, 'author': 'Stu', 'author_id': 414, 'author_profile': 'https://Stackoverflow.com/users/414', 'pm_score': 2, 'selected': True, 'text': '<p>Change the code for the About box to </p>\n\n<pre><code>Me.LabelVersion.Text = String.Format("Version {0}", My.Application.Deployment.CurrentVersion.ToString)\n</code></pre>\n\n<p>Please note that all the other answers are correct for "how do I get my assembly version", not the stated question "how do I show my publish version".</p>\n'}, {'answer_id': 11304, 'author': 'rjzii', 'author_id': 1185, 'author_profile': 'https://Stackoverflow.com/users/1185', 'pm_score': 1, 'selected': False, 'text': '<p>It took me a second to find this, but I believe this is what you are looking for:</p>\n\n<pre><code>using System;\nusing System.Reflection;\npublic class VersionNumber\n{\n   public static void Main()\n   {\n      System.Reflection.Assembly assembly = System.Reflection.Assembly.GetExecutingAssembly();\n      Version version = assembly.GetName().Version;\n      Console.WriteLine ("Version: {0}", version);\n      Console.WriteLine ("Major: {0}", version.Major);\n      Console.WriteLine ("Minor: {0}", version.Minor);\n      Console.WriteLine ("Build: {0}", version.Build);\n      Console.WriteLine ("Revision: {0}", version.Revision);\n      Console.Read();\n   }\n}\n</code></pre>\n\n<p>It was based upon the code provided at the following site - <a href="http://en.csharp-online.net/Display_type_version_number" rel="nofollow noreferrer">http://en.csharp-online.net/Display_type_version_number</a></p>\n'}, {'answer_id': 11334, 'author': 'Michael Stum', 'author_id': 91, 'author_profile': 'https://Stackoverflow.com/users/91', 'pm_score': 0, 'selected': False, 'text': '<p>It\'s a maximum of 65535 for each of the 4 values, but when using 1.0.* or 1.0.*.*, the Assembly Linker will use a coded timestamp (so it\'s not a simple auto-increment, and it can repeat!) that will fit 65535.</p>\n\n<p>See my answer to <a href="https://stackoverflow.com/questions/650/automatically-update-version-number#655">this question</a> for more links and details.</p>\n'}]
['https://Stackoverflow.com/questions/11288', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1346/']