Click here to Skip to main content
15,886,199 members
Articles / Desktop Programming / WPF

ListView, ComboBox, and ObservableCollection<T>

Rate me:
Please Sign up or sign in to vote.
4.36/5 (8 votes)
3 Feb 2010MIT5 min read 82.1K   4.9K   29  
An article on WPF data binding using ObservableCollection.
<?xml version="1.0" encoding="Windows-1252"?>
<configuration>
  <!--
     Application settings for NUnit-gui.exe. Do NOT put settings
	 for use by your tests here.
	-->
  <appSettings>
    <!--	
	 Specify the location to be used by .NET for the cache 
	-->
    <add key="shadowfiles.path" value="%temp%\nunit20\ShadowCopyCache" />
    <!--
     Uncomment to specify the url to be used for help. If not used, the
     default value is something like
		file://localhost/C:/Program Files/NUnit 2.2/doc/index.html
	 This setting is provided in case your default browser doesn't
	 support this format.
	-->
    <!-- <add key="helpUrl" value="http://www.nunit.org" /> -->
  </appSettings>

  <!-- Set the level for tracing NUnit itself -->
  <!-- 0=Off 1=Error 2=Warning 3=Info 4=Debug -->
  <system.diagnostics>
	  <switches>
      <add name="NTrace" value="0" />
	  </switches>
	</system.diagnostics>

  <runtime>
    <!-- We need this so test exceptions don't crash NUnit -->
    <legacyUnhandledExceptionPolicy enabled="1" />

    <!-- Look for addins in the addins directory for now -->
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <probing privatePath="lib;addins" />
    </assemblyBinding>

    <!--
    The following <assemblyBinding> section allows running nunit under 
    .NET 1.0 by redirecting assemblies. The appliesTo attribute
    causes the section to be ignored except under .NET 1.0
    on a machine with only the .NET version 1.0 runtime installed.
    If application and its tests were built for .NET 1.1 you will
    also need to redirect system assemblies in the test config file,
    which controls loading of the tests.
   -->
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"
       appliesTo="v1.0.3705">

      <dependentAssembly>
        <assemblyIdentity name="System"
                          publicKeyToken="b77a5c561934e089"
                          culture="neutral"/>
        <bindingRedirect  oldVersion="1.0.5000.0"
                          newVersion="1.0.3300.0"/>
      </dependentAssembly>

      <dependentAssembly>
        <assemblyIdentity name="System.Data"
                          publicKeyToken="b77a5c561934e089"
                          culture="neutral"/>
        <bindingRedirect  oldVersion="1.0.5000.0"
                          newVersion="1.0.3300.0"/>
      </dependentAssembly>

      <dependentAssembly>
        <assemblyIdentity name="System.Drawing"
                          publicKeyToken="b03f5f7f11d50a3a"
                          culture="neutral"/>
        <bindingRedirect  oldVersion="1.0.5000.0"
                          newVersion="1.0.3300.0"/>
      </dependentAssembly>

      <dependentAssembly>
        <assemblyIdentity name="System.Windows.Forms"
                          publicKeyToken="b77a5c561934e089"
                          culture="neutral"/>
        <bindingRedirect  oldVersion="1.0.5000.0"
                          newVersion="1.0.3300.0"/>
      </dependentAssembly>

      <dependentAssembly>
        <assemblyIdentity name="System.Xml"
                          publicKeyToken="b77a5c561934e089"
                          culture="neutral"/>
        <bindingRedirect  oldVersion="1.0.5000.0"
                          newVersion="1.0.3300.0"/>
      </dependentAssembly>

    </assemblyBinding>

  </runtime>

</configuration>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The MIT License


Written By
Technical Lead Rockwell Automation
Singapore Singapore
He is a Software Engineer at Rockwell Automation Asia Pacific Business Center, working on RSLogix 5000. Prior to joining Rockwell Automation, he had worked for Sybase for 8 years and was the original architect of the PowerBuilder Native Interface and the PowerBuilder .NET Compiler that can compile PowerBuilder applications to .NET Windows Forms or Web Forms applications. The programming languages he has used or is using intensively include C#, C++, C and 8086 assembly.

Wu XueSong's Blog

Comments and Discussions