X3

RedSky

导航

2019年5月31日 #

Anroid图标尺寸

摘要: mipmap-hdpi mipmap-mdpi mipmap-xhdpi mipmap-xxhdpi mipmap-xxxhdpi 72x72 48x48 96x96 144x144 192x192 阅读全文

posted @ 2019-05-31 15:34 HotSky 阅读(158) 评论(0) 推荐(0)

2019年4月10日 #

C# ico转png

摘要: class Program { static void Main(string[] args) { Console.WriteLine("ICO文件转PNG"); string path = null; bool got = false; while (... 阅读全文

posted @ 2019-04-10 14:59 HotSky 阅读(1290) 评论(1) 推荐(0)

2019年3月25日 #

WPF Bitmap转BitmapSource,Image

摘要: //引用:using System.Windows.Interop; //Imagingusing System.Drawing; //Bitmap public static Imaging.BitmapSource ConvertToBitmapSource(Bitmap btmap) { return Imaging.CreateBitmapSourceFromHBitmap(btm... 阅读全文

posted @ 2019-03-25 16:13 HotSky 阅读(1654) 评论(0) 推荐(0)

2019年2月27日 #

Flutter笔记 Column和Row

摘要: MainAxisSize: 控制自己的布局方式 MainAxisSize: 控制自己的布局方式 MainAxisSize.min 默认值,Column和Row自适应children; MainAxisSize.max Column填充父控件竖屏,Row填充父控件横屏;需要搭配MainAxisAlig 阅读全文

posted @ 2019-02-27 15:12 HotSky 阅读(6849) 评论(0) 推荐(0)

2019年2月19日 #

IOS笔记

摘要: 1。button控件添加事件监听 阅读全文

posted @ 2019-02-19 15:38 HotSky 阅读(136) 评论(0) 推荐(0)

2019年1月24日 #

Android模拟器无法上网访问网络失败解决办法

摘要: 1、打开cmd输入adb shell回车; 2、输入getprop回车,如果在输出的信息中找到net.dns1则跳到第5步骤; 3、退出重新打开cmd然后输入adb root回车; 4、输入adb shell回车; 5、输入setprop net.dns1 192.168.1.1回车;这个192.1 阅读全文

posted @ 2019-01-24 10:25 HotSky 阅读(6440) 评论(0) 推荐(0)

2018年12月21日 #

FileToVisualConverter

摘要: public class StringToVisualConverter : IValueConverter { #region IValueConverter 成員 public object Convert(object value, Type targetType, object parameter, System.Globalizatio... 阅读全文

posted @ 2018-12-21 17:14 HotSky 阅读(118) 评论(0) 推荐(0)

BytesConverter

摘要: public class BytesConverter : IValueConverter { public bool IsSpeed { get; set; } public object Convert(object value, Type targetType, object paramete 阅读全文

posted @ 2018-12-21 17:11 HotSky 阅读(226) 评论(0) 推荐(0)

2018年12月7日 #

WPF图片查看器

摘要: 一、功能需求: 1、打开图片、打开文件夹; 2、下一张、上一张图片; 3、支持拖动、缩放、还原图片显示适当大小; cs部分代码 查看代码 /// <summary> /// Interaction logic for ImageView.xaml /// </summary> public part 阅读全文

posted @ 2018-12-07 17:42 HotSky 阅读(2863) 评论(0) 推荐(0)

2018年11月11日 #

WPF中Popup和ContextMenu类无法以常规方式绑定数据和命令,但只能通过参数PlacementTarget获得父控件

摘要: 比如 比如这里的Command就是无效的。 阅读全文

posted @ 2018-11-11 01:59 HotSky 阅读(929) 评论(0) 推荐(0)