上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 35 下一页
摘要: 获取变量名字符串: public static string GetVariableName(Expression> memberExpression) { var body = memberExpression.Body as MemberExpression;... 阅读全文
posted @ 2015-01-05 18:08 马语者 阅读(377) 评论(0) 推荐(0) 编辑
摘要: if (TypeDescriptor.GetProperties(this)[propertyName] == null) { Debug.Fail("无效属性名称: " + propertyName); } 阅读全文
posted @ 2015-01-05 17:59 马语者 阅读(254) 评论(0) 推荐(0) 编辑
摘要: Image transformation is a process of rotating and scaling images. Rotating Images There are two ways to rotate an image. First option is to use the Rotation property of BitmapImage and second option... 阅读全文
posted @ 2014-12-25 09:03 马语者 阅读(328) 评论(0) 推荐(0) 编辑
摘要: In my recent codeproject article on the DataGrid I described a number of techniques for handling the updates to DataTables which are bound to the grid. These examples all worked on the assumption that... 阅读全文
posted @ 2014-12-23 22:01 马语者 阅读(645) 评论(0) 推荐(0) 编辑
摘要: I can assure you: SelectedItems is indeed bindable as a XAML CommandParameter After a lot of digging and googling, I have finally found a simple solution to this common issue. To make it work you mu... 阅读全文
posted @ 2014-12-23 19:30 马语者 阅读(2104) 评论(0) 推荐(0) 编辑
摘要: public ConnectionViewModel { private readonly CollectionView _phonebookEntries; private string _phonebookeEntry; public CollectionView PhonebookEntries { get { return _phonebo... 阅读全文
posted @ 2014-12-22 18:08 马语者 阅读(3350) 评论(0) 推荐(0) 编辑
摘要: New family parameters (FamilyParameter) can be added to a family document through the FamilyManager.AddParameter() method. It has three different signatures and the most popular one accepts paramet... 阅读全文
posted @ 2014-12-21 18:02 马语者 阅读(1477) 评论(0) 推荐(0) 编辑
摘要: As we saw in the previous chapters, the way to manipulate the output of a binding before is shown is typically through the use of a converter. The cool thing about the converters is that they allow yo... 阅读全文
posted @ 2014-12-21 12:08 马语者 阅读(247) 评论(0) 推荐(0) 编辑
摘要: The trick to be able to read the default values for instance parameters is to get to the FamilyManager.The family manager is a whole separate area of the API, with separate classes for FamilyType and ... 阅读全文
posted @ 2014-12-18 21:15 马语者 阅读(328) 评论(0) 推荐(0) 编辑
摘要: public class SendCommand : ICommand { public void Execute(object parameter) { var labels = ((object[]) parameter).OfType(); } public bool CanExecute(object parameter) ... 阅读全文
posted @ 2014-12-03 15:23 马语者 阅读(1225) 评论(0) 推荐(0) 编辑
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 35 下一页