摘要:
using System;using System.ComponentModel;using System.Globalization;using System.Windows.Data;namespace WPFComponents{ [ValueConversion(typeof(string), typeof(int))] public class StringToIntegerConverter : IValueConverter { public object Convert(object value, Type targetType, ... 阅读全文
摘要:
如何拿到Source:从SQL,从XML fileSQL:一个是ObjectDataProvider//用linq方法拿到SQL data,wrap到一个IEnumerablepublic IEnumerable GetAllCustomersAsList() { var items = from cust in this.Customers orderby cust.LastName select cust; return items.ToList(); }View Code //xaml里定... 阅读全文