随笔分类 -  WPF

.NnetFormWork 嵌入WebApi
摘要:1 添加服务类 WebServiceHost using System.ServiceModel; using System.ServiceModel.Web; using System.Web.Services.Protocols; [ServiceContract(Namespace = "ht 阅读全文
posted @ 2024-03-07 18:14 永恒921 阅读(50) 评论(0) 推荐(0)
WPF(.netCore) 嵌入WebApi服务
摘要:1 从NUGET添加组件“Swashbuckle.AspNetCore” 相关使用代码 var builder = WebApplication.CreateBuilder(); builder.Services.AddControllers(); var app = builder.Build() 阅读全文
posted @ 2024-03-07 17:37 永恒921 阅读(782) 评论(0) 推荐(0)
WPF自定义加载控件
摘要:XAML <UserControl x:Class="RpowerMonitor_MCS.UserControls.ProgressBarControl" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns: 阅读全文
posted @ 2021-05-26 14:12 永恒921 阅读(323) 评论(0) 推荐(0)
WPF 依赖属性
摘要:using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; using 阅读全文
posted @ 2020-09-25 11:55 永恒921 阅读(291) 评论(0) 推荐(0)
WPF 禁用窗体最大最小按键
摘要:/// <summary> /// 禁用窗体最大最小按键 /// </summary> internal static class WindowExtensions { [DllImport("user32.dll")] internal extern static int SetWindowLon 阅读全文
posted @ 2020-09-22 15:10 永恒921 阅读(438) 评论(0) 推荐(0)
WPF Datagrid 点击选择item
摘要:public static object GetElementFromPoint(System.Windows.Controls.ItemsControl itemsControl, Point point) { UIElement element = itemsControl.InputHitTe 阅读全文
posted @ 2020-09-22 11:44 永恒921 阅读(678) 评论(0) 推荐(0)
WPF 绘制曲线图
摘要:之前一直用GDI绘图,后面公司要求使用WPF,网上WPF资料太少(可能自己没找到吧),自己写了个测试用,可以拖动。 前端代码 后台代码 阅读全文
posted @ 2019-03-18 17:56 永恒921 阅读(10460) 评论(7) 推荐(1)