随笔分类 -  WPF问题总结

摘要:Text="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorLevel=1, AncestorType={x:Type Grid}}, Path=Name}" 数据绑定之RelativeSource <TextBl 阅读全文
posted @ 2018-12-17 16:09 梦九龍 阅读(377) 评论(0) 推荐(0)
摘要:.net 里面有分托管资源和非托管资源,使用com组件创建的对象就是com对象,com对象属于非托管资源,非托管资源像C++那样需要手动释放的,释放com对象的代码为System.Runtime.InteropServices.Marshal.ReleaseComObject(xxx),xxx是co 阅读全文
posted @ 2018-12-14 17:14 梦九龍 阅读(267) 评论(0) 推荐(0)
摘要:1. ItemSource设置是否正确 2.ItemTemplate设置是否正确 3.DataTemplate是否与单个项实现对应 4.设定为ItemSource的类是否继承INotifyPropertyChanged接口 阅读全文
posted @ 2018-12-12 22:09 梦九龍 阅读(559) 评论(0) 推荐(0)