上一页 1 ··· 7 8 9 10 11 12 下一页
摘要: 参考: https://www.cnblogs.com/callyblog/p/8044963.html https://www.cnblogs.com/zhoujg/archive/2009/12/04/1616713.html <Window.Resources> <!-- 启用虚拟化 --> 阅读全文
posted @ 2021-05-28 16:30 microsoft-zhcn 阅读(245) 评论(0) 推荐(0) 编辑
摘要: 参考:https://www.cnblogs.com/MyWPF/p/14734681.html 阅读全文
posted @ 2021-05-28 16:25 microsoft-zhcn 阅读(71) 评论(0) 推荐(0) 编辑
摘要: 一、ContextMenu 如图,基本样式结构 <Style TargetType="{x:Type ContextMenu}"> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type Con 阅读全文
posted @ 2021-05-28 16:20 microsoft-zhcn 阅读(1622) 评论(0) 推荐(0) 编辑
摘要: 此图片为Base64字符串,如何做到的呢?以下内容将介绍实现步骤; 1、创建Base64字符串转换器: public class Base64ToImage : IValueConverter { public object Convert(object value, Type targetType 阅读全文
posted @ 2021-05-28 16:17 microsoft-zhcn 阅读(1576) 评论(0) 推荐(0) 编辑
摘要: WPF PasswordBox 参考:https://blog.csdn.net/candy_zkn/article/details/9383007 WPF 将TextBox更改为PasswordBox样式(文字显示方式为密码) 参考:https://www.cnblogs.com/callyblo 阅读全文
posted @ 2021-05-28 16:14 microsoft-zhcn 阅读(155) 评论(0) 推荐(0) 编辑
摘要: WPF path - WPF 使用 SVG 参考:https://blog.csdn.net/badxnui/article/details/111529265 阅读全文
posted @ 2021-05-28 16:11 microsoft-zhcn 阅读(468) 评论(0) 推荐(0) 编辑
摘要: WPF pack uri 参考:https://www.cnblogs.com/denghejun/p/3794670.html 阅读全文
posted @ 2021-05-28 16:09 microsoft-zhcn 阅读(45) 评论(0) 推荐(0) 编辑
摘要: 使用参考: https://www.cnblogs.com/lindexi/p/12932701.html https://www.cnblogs.com/hicolin/p/8804722.html 阅读全文
posted @ 2021-05-28 16:08 microsoft-zhcn 阅读(63) 评论(0) 推荐(0) 编辑
摘要: WPF Hyperlink 参考:https://www.cnblogs.com/dino623/p/WPF_HyperlinkButton.html 阅读全文
posted @ 2021-05-28 16:02 microsoft-zhcn 阅读(55) 评论(0) 推荐(0) 编辑
摘要: WPF Template、ControlTemplate、ContentTemplate、DataTemplate、ContentControl 参考:https://www.cnblogs.com/tommy-huang/p/5911140.html 阅读全文
posted @ 2021-05-28 16:00 microsoft-zhcn 阅读(168) 评论(0) 推荐(0) 编辑
摘要: WPF ContentPresenter 参考:https://www.cnblogs.com/MyWPF/p/14262883.html 阅读全文
posted @ 2021-05-28 15:58 microsoft-zhcn 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 一、标准Window 二、WindowChrome的基本概念 若要自定义窗口,同时保留其标准功能,可以使用WindowChrome类。 WindowChrome类窗口框架的功能分离开来视觉对象,并允许您控制的客户端和应用程序窗口的非工作区之间的边界。 <WindowChrome.WindowChro 阅读全文
posted @ 2021-05-28 15:41 microsoft-zhcn 阅读(555) 评论(0) 推荐(1) 编辑
摘要: 一、WPF TabControl 数据绑定 WPF TabItem绑定 参考:http://cn.voidcc.com/question/p-qqyuxlvm-ex.html WPF如何绑定tabitem与列表 参考:http://cn.voidcc.com/question/p-faompnxo- 阅读全文
posted @ 2021-05-28 15:39 microsoft-zhcn 阅读(820) 评论(0) 推荐(0) 编辑
摘要: WPF Button 控件 一、WPF Button 添加图片 <Button> <Button.Content> <Image Stretch="Fill" Source="pack://application:,,,/程序集;component/images/demo.png"/> </Butt 阅读全文
posted @ 2021-05-28 15:32 microsoft-zhcn 阅读(432) 评论(0) 推荐(0) 编辑
摘要: 参考:https://www.cnblogs.com/xinyf/p/10148515.html 阅读全文
posted @ 2021-05-28 10:59 microsoft-zhcn 阅读(90) 评论(0) 推荐(0) 编辑
摘要: 参考:WPF 开源gif控件WpfAnimatedGif的使用方法 https://www.cnblogs.com/liunlls/p/wpf-gif.html https://blog.csdn.net/xinlingjun2007/article/details/80833378 阅读全文
posted @ 2021-05-28 10:57 microsoft-zhcn 阅读(176) 评论(0) 推荐(0) 编辑
摘要: WPF开发微信二、微信登录界面 登录界面 尺寸: 外围:318 X 438 可视化:280 X400 登录按钮:140X 38 文本框:* X 28 设置按钮:56 X 28 颜色: 登录按钮背景色:#1aad19 鼠标经过背景色:#129611 账户文字前色:#878787文字前色:#436895 阅读全文
posted @ 2021-05-28 09:19 microsoft-zhcn 阅读(761) 评论(0) 推荐(0) 编辑
摘要: WPF开发微信一、环境搭建 1、语言版本 C# 2、公告样式 3、页面样式 4、SVG图标 5、Base64图片 6、控件拓展 7、运行机制 主线程不动,使用子线程执行、调度、更新,确保程序崩溃 Thread、Task 或者 BackgroundWorker 8、消息机制 使用线程池入列与出列,确保 阅读全文
posted @ 2021-05-28 09:11 microsoft-zhcn 阅读(312) 评论(0) 推荐(0) 编辑
摘要: RadioButton 示例 RadioButton Xaml <UniformGrid Columns="2"> <RadioButton GroupName="rbRole" Style="{StaticResource RadioButtonLoginRole}" IsChecked="Tru 阅读全文
posted @ 2021-05-27 14:26 microsoft-zhcn 阅读(302) 评论(0) 推荐(1) 编辑
摘要: WPF最新版本:microlib1.0 WPF Core最新版本:microcore1.0 阅读全文
posted @ 2021-05-26 19:46 microsoft-zhcn 阅读(36) 评论(0) 推荐(0) 编辑
摘要: WPF xmlns xmlns=xml namespace,assembly 导入命名空间,相当于C# 中的 using xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 说明: xmlns指向的命名空间为 http: 阅读全文
posted @ 2021-05-26 14:06 microsoft-zhcn 阅读(98) 评论(0) 推荐(0) 编辑
摘要: List<接口> a=(List<接口>)List <接口实现类> b 如:List<HashMap> a = new ArrayList<HashMap>(); 参考:https://blog.csdn.net/zhouym_/article/details/89644072 阅读全文
posted @ 2021-05-26 12:03 microsoft-zhcn 阅读(262) 评论(0) 推荐(0) 编辑
摘要: img.Source = new BitmapImage(new Uri(imagePath)); 阅读全文
posted @ 2021-05-26 09:07 microsoft-zhcn 阅读(102) 评论(0) 推荐(0) 编辑
摘要: WPF 360°旋转加载,如图: XAML 代码 <UserControl x:Class="Micro.MIM.Styles.Loading" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="ht 阅读全文
posted @ 2021-05-25 10:49 microsoft-zhcn 阅读(308) 评论(0) 推荐(0) 编辑
摘要: 1、推流服务器搭建 windows下nginx的安装及使用 或者开通腾讯云直播 2、使用AForge.Video.DirectShow 调用设备 AForge 帮助类 public static class CameraHelper { private static FilterInfoCollec 阅读全文
posted @ 2021-05-24 17:01 microsoft-zhcn 阅读(455) 评论(0) 推荐(0) 编辑
摘要: DriveInfo[] drive = DriveInfo.GetDrives(); foreach (DriveInfo info in drive) { string driveName = info.Name; } //获取当前系统磁盘符方法1,返回:C: string path = Envi 阅读全文
posted @ 2021-05-24 11:53 microsoft-zhcn 阅读(37) 评论(0) 推荐(0) 编辑
摘要: ResizeMode="NoResize" Window.SizeToContent="Height" <Grid x:Name="GridMain" private void Window_Loaded(object sender, RoutedEventArgs e) { this.Height 阅读全文
posted @ 2021-05-23 19:08 microsoft-zhcn 阅读(452) 评论(0) 推荐(0) 编辑
摘要: <Window ... AllowsTransparency="True" Foreground="{x:Null}" Background="{x:Null}" FocusVisualStyle="{x:Null}"> 注意要设置AllowsTransparency=true,允许透明色,否则就是 阅读全文
posted @ 2021-05-23 18:08 microsoft-zhcn 阅读(338) 评论(0) 推荐(0) 编辑
摘要: 委托、方法(将方法绑定到委托) using System; using System.Collections.Generic; using System.Text; namespace Delegate { //定义委托,它定义了可以代表的方法的类型 public delegate void Gre 阅读全文
posted @ 2021-05-21 08:42 microsoft-zhcn 阅读(43) 评论(0) 推荐(0) 编辑
摘要: NetCore 不支持WebSocketSharp,使用Cowboy.WebSockets 代替 Cowboy.WebSockets 参考: https://www.cnblogs.com/gaochundong/p/cowboy_websockets.html 阅读全文
posted @ 2021-05-20 18:06 microsoft-zhcn 阅读(152) 评论(0) 推荐(0) 编辑
摘要: Micro 插件开发(.NET Core Plugins) 1、bat 语法 参考:https://www.jb51.net/article/5828.htm 2、写入 bat 和执行 bat 参考:https://www.cnblogs.com/wxwx/p/5821059.html 3、WinF 阅读全文
posted @ 2021-05-18 09:24 microsoft-zhcn 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 示例:反序列化 WebApi public class ReturnInfo{} public class ReturnInfo<T> : ReturnInfo{} 示例,适用于反序列号 WebApi 返回的字符串,T 可以为任意对象 public WindowLogin() { Initializ 阅读全文
posted @ 2021-05-15 12:06 microsoft-zhcn 阅读(185) 评论(0) 推荐(0) 编辑
摘要: Prism.Wpf 使用示例 阅读全文
posted @ 2021-05-14 12:34 microsoft-zhcn 阅读(147) 评论(0) 推荐(0) 编辑
摘要: System.Windows.Interactivity 用于绑定多个事件,类似于多个触发器(MultiTrigger) 在Nuget搜索System.Windows.Interactivity下载安装到项目中 在XAML中引用 引用方式一: xmlns:i="clr-namespace:Syste 阅读全文
posted @ 2021-05-14 11:17 microsoft-zhcn 阅读(606) 评论(0) 推荐(0) 编辑
摘要: 解决.Net Core 3.0 WPF 无法使用 WindowsFormsHost的问题 打开项目.csproj 添加: <UseWindowsForms>true</UseWindowsForms> 阅读全文
posted @ 2021-05-13 15:27 microsoft-zhcn 阅读(93) 评论(0) 推荐(0) 编辑
摘要: 开发效率:能使用XAML实现的就不用户CS后台程序编写 数据绑定:数据绑定使用的是属性,不是字段 public ObservableCollection<string> list { get; set; } = new ObservableCollection<string>(); Dispatch 阅读全文
posted @ 2021-05-13 11:07 microsoft-zhcn 阅读(266) 评论(0) 推荐(0) 编辑
摘要: 自定义高性能无边框窗体 引入Microsoft.Windows.Shell。可参考 WPF Custom Chrome Library 和 MSDN WindowChrome Class 有相关自定义窗口实现。 参考:https://www.cnblogs.com/fishpond816/p/142 阅读全文
posted @ 2021-05-13 01:01 microsoft-zhcn 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 问题: 在对winform打包,进行安装的时候,一般会采用默认的安装路径,默认安装在C:\Program Files或者C:\Program Files(x86)目录下,但windows有一种安全策略,默认是不允许操作c盘文件或者文件夹的。 解决方案: 右击项目 -> 属性(R) -> 安全性 -> 阅读全文
posted @ 2021-05-12 21:10 microsoft-zhcn 阅读(607) 评论(0) 推荐(0) 编辑
摘要: Agora C# SDK English | 中文 Agora RTC C# SDK,目前支持 Windows 平台。 运行环境 Visual Studio 2017+ with C++ (Windows) .NET 安装 方法一:使用 NuGet(推荐) Visual Studio 用户请参考使用 阅读全文
posted @ 2021-05-12 09:36 microsoft-zhcn 阅读(112) 评论(0) 推荐(0) 编辑
摘要: WPF样式——ListBox选中项改变样式:https://www.cnblogs.com/tangchun/p/12941436.html WPF样式——多条件触发器:https://www.cnblogs.com/zuifengke/archive/2014/05/26/3753519.html 阅读全文
posted @ 2021-05-11 23:18 microsoft-zhcn 阅读(115) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 下一页