摘要: 以下为测试demo效果图: 开发环境:vscode 涉及组件:DataV Echart 开发时注意事项: DataV目前(2023年3月31日)还是最好使用旧版本。 由于DataV使用旧版本,Vue当然就使用Vue2。 DataV中组件使用不多时,最好按需导入。 Vue项目创建时,最好手动选择相应的 阅读全文
posted @ 2023-03-31 00:34 盛沧海 阅读(551) 评论(0) 推荐(0)
摘要: 成品效果如下: 制作方法: 1.添加UserControl,其详细代码如下: <UserControl x:Class="WpfControl.UserControls.NFan" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/present 阅读全文
posted @ 2023-03-13 23:38 盛沧海 阅读(318) 评论(0) 推荐(0)
摘要: UI与后端绑定有两种方式 1.在xaml的后台代码中进行设置,如下 public MainWindow() { InitializeComponent(); this.DataContext = new MainWindowViewModel(); } 2.在xaml代码中进行相应的配置,只是配置时 阅读全文
posted @ 2023-03-04 18:13 盛沧海 阅读(442) 评论(0) 推荐(0)
摘要: xamarin.forms中将平时在winform中的控件统一为了view,什么button、label、entry……都直接继承或间接继承于view,故此处所说的自定义控件,及自定义view。 本文主要介绍利用ContentView制作自定义的view。 添加conten view,测试时将其命名 阅读全文
posted @ 2022-12-20 17:58 盛沧海 阅读(157) 评论(0) 推荐(0)
摘要: 下述代码中注释为利用File导出CSV格式表格(再利用excel/WPS打开); 下述为using MiniExcelLibs进行xlsx文件导出,MiniExcel最好通过nuget安装或通过码云或Github获取 public IActionResult Csv() { var getType 阅读全文
posted @ 2022-12-01 15:05 盛沧海 阅读(1753) 评论(0) 推荐(0)
摘要: 以下为MainActivity中代码 using System; using Android.App; using Android.Content.PM; using Android.Runtime; using Android.OS; using XamrinScanner.Services; u 阅读全文
posted @ 2022-11-05 21:55 盛沧海 阅读(110) 评论(0) 推荐(0)
摘要: 加同步锁前后两次判断实例是否已存在(可行,但不推荐) public sealed class Singleton3 { private Singleton3() { } private static object syncObj = new object(); private static Sing 阅读全文
posted @ 2022-11-02 09:11 盛沧海 阅读(57) 评论(0) 推荐(0)
摘要: 2叉树 public class TreeNode { public int val; public TreeNode left; public TreeNode right; public TreeNode(int x) { val = x; } } 2叉树广度优先经典代码 public List 阅读全文
posted @ 2022-10-13 18:24 盛沧海 阅读(51) 评论(0) 推荐(0)
摘要: Newtonsoft.Json官网 Json.NET - Newtonsoft、 文档地址Introduction (newtonsoft.com) 示例Modifying JSON (newtonsoft.com) string json = @"{ 'channel': { 'title': ' 阅读全文
posted @ 2022-09-08 18:10 盛沧海 阅读(108) 评论(0) 推荐(0)
摘要: base64 to 图片 https://github.com/ITAgnesmeyer/EasyBase64ToImage public class ImageToString { /// <summary> /// Converts Image to Base64 /// </summary> 阅读全文
posted @ 2022-08-17 14:52 盛沧海 阅读(5264) 评论(0) 推荐(0)