随笔分类 - Silverlight
摘要:举例实现以下事件: /// <summary> /// 弹起后鼠标位置 /// </summary> private MouseButtonEventArgs _mouseUpMouseButtonEventArgs; /// <summary> /// 单击鼠标左键时触发该事件 /// </summary> public event EventHandler<MouseEventArgs> Mouse_Click; /// <summary> /// 单...
阅读全文
摘要:silverlight 4.0xp系统里用ie FF 谷歌均死掉WIN7 系统里的都可以正常运行!经过反复测试发现以下代码 引起using (MemoryStream stream = new MemoryStream(System.Text.Encoding.UTF8.GetBytes(jsonStr))){ // //将JSON字符串反序列化成对象。DataContractJsonSerializer jsonSerializer = new DataContractJsonSerializer(typeof(AppendSpot[]));}换成 Newtonsoft.Json 问题依旧!
阅读全文
摘要:Silverlight 自定义的附加属性Silverlight 对象 都可以增加属性自定义的附加属性定义附加属性的依赖项属性注册(使用RegisterAttached方法)以及 Get PropertyName 和 Set PropertyName 访问器。在该示例中,附加属性名为 IsBubbleSource。因此,访问器的名称必须为 GetIsBubbleSource 和 SetIsBubbleSource。例如:public static readonly DependencyProperty IsBubbleSourceProperty = DependencyProperty.Reg
阅读全文