摘要:
123 public class User32 { public struct RECT { public int LeftTopX; public int LeftTopY; public int RightBottomX; public int RightBottomY; public RECT 阅读全文
摘要:
用苹果电脑打开控制台; 先执行检查: xcrun altool --validate-app -f [ipa文件名] -t ios -u [账号] -p [专用密码] 检查无误后执行: xcrun altool --upload-app -f [ipa文件名] -t ios -u [账号] -p [ 阅读全文
摘要:
解决办法:将XmlReaderSettings的值CheckCharacters = false 如下: using (StreamReader sr = new StreamReader(xmlfilePath)) { var setting = new XmlReaderSettings { C 阅读全文
摘要:
1. ManualResetEvent,AutoResetEvent WaitOne() 当前线程进入等待状态; Reset() 表示需要等待; Set() 表示等待结束,执行WaitOne()后面代码; 区别: 当有多个线程调用WaitOne()时, AutoResetEvent 执行Set()后 阅读全文
摘要:
参考:在webView中阻止键盘 | 经验摘录 (1r1g.com) 在父布局中添加: android:descendantFocusability="blocksDescendants" 设置WebView的这两个属性: android:focusable="false" android:focu 阅读全文
摘要:
public class XMLHelper { public static string Serialize<T>(T entity, Encoding encoding = null) { StringBuilder sb = new StringBuilder(); XmlSerializer 阅读全文
摘要:
1 [TemplatePart(Name = "PART_Highlight", Type = typeof(Image))] 2 public class ImageControl : Control 3 { 4 Image HighLightImage = null; 5 6 public bo 阅读全文
摘要:
1 public static byte[] ToArray(this Bitmap bitmap) 2 { 3 var lockbits = bitmap.LockBits(new Rectangle(0, 0, bitmap.Width, bitmap.Height), ImageLockMod 阅读全文
摘要:
与方式一相比: 增加了缩放Maximun、Minimun和Value值,以及可供监听缩放变化的ValueChanged事件。 1 public class ScaleScrollView : ScrollViewer 2 { 3 readonly List<object> ValueChangedE 阅读全文
摘要:
点击查看方式二 1 public class ScaleScrollView : ScrollViewer 2 { 3 List<object> MouseWheelEvents = new List<object>(); 4 /// <summary> 5 /// 通过监听此事件对内容进行缩放 6 阅读全文