05 2013 档案
摘要:一、Delegate委托可以理解为一个方法签名。 可以将方法作为另外一个方法的参数带入其中进行运算。在C#中我们有三种方式去创建委托,分别如下: public delegate void Print(string str); static void delegatemethod(string str) { Console.WriteLine(str); } public static void Main() { #region 委托 /...
阅读全文
摘要:在Windows 8中SemanticZoom缩放视图支持对GridView和ListView控件的视图效果进行缩放,它提供一个详细信息视图(ZoomedInView)以让用户查看详细信息,另外提供一个缩小索引视图(ZoomedOutView)让用户快速定位想要查看信息的大概范围。 一.想要实现这种效果我们需要使用SemanticZoom控件和CollectionViewSource控件配合使用: SemanticZoom控件: <SemanticZoom.ZoomedOutView> <!--此处填充缩小索引视图的GridView,一般情况下绑定Group.Ti...
阅读全文