- bindingframework.zip
- BindingFramework
- ASPBinding
- Barebones
- BinderTests
- Binding
- BindingExamples
- BindingFramework.sln
- BindingFramework.vsmdi
- DomainModel
- bin
- Debug
- Binding.dll
- DomainModel.dll
- Release
- BusinessObjects
- DomainModel.csproj
- obj
- Properties
- ViewModels
- FrameworkTests
- LocalTestRun.testrunconfig
- SDILReader
- TestResults
- shiless_FANZ-FAL099329 2011-01-12 15_05_07.trx
- shiless_FANZ-FAL099329 2011-01-12 15_05_07
- In
- Out
- shiless_FANZ-FAL099329 2011-01-12 15_07_06.trx
- shiless_FANZ-FAL099329 2011-01-12 15_07_06
- In
- Out
- shiless_FANZ-FAL099329 2011-01-12 15_08_02.trx
- shiless_FANZ-FAL099329 2011-01-12 15_08_02
- In
- Out
- shiless_FANZ-FAL099329 2011-01-12 15_08_54.trx
- shiless_FANZ-FAL099329 2011-01-12 15_08_54
- In
- Out
- shiless_FANZ-FAL099329 2011-01-12 15_09_23.trx
- shiless_FANZ-FAL099329 2011-01-12 15_09_23
- Out
- ASPBinding.dll
- Binding.dll
- frameworktests.dll
- Rhino.Mocks.dll
- SDILReader.dll
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Windows.Data;
using DomainModel.BusinessObjects;
namespace SimpleBinding.Converters
{
public class AddressConverter : IValueConverter
{
#region IValueConverter Members
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
Address address = value as Address;
if (address == null)
return value;
return string.Format("{0}, {1}, {2}", new object[] { address.HouseNameNumber, address.Street, address.Postcode });
}
public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
//Means this can only be used on one-way binds.
throw new NotImplementedException();
}
#endregion
}
}
|
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.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.