摘要: 在WPF中使用本地Webview2,不依赖系统runtime 项目运行环境: .net framework 4.5.2 Windows 7 x64 Service Pack 1 WebView2 Microsoft.WebView2.FixedVersionRuntime.120.0.2210.91 阅读全文
posted @ 2024-02-22 10:29 干杯Archer 阅读(58) 评论(0) 推荐(0) 编辑
摘要: 带模糊搜索的DataGrid 前端代码 view <Window x:Class="MVVM.Views.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://sch 阅读全文
posted @ 2023-02-15 22:09 干杯Archer 阅读(404) 评论(0) 推荐(1) 编辑
摘要: Demo例子: ViewModel 内容 public class MainWindowViewModel : BindableBase { private string _title = "Prism Application"; public string Title { get { return 阅读全文
posted @ 2022-12-09 15:07 干杯Archer 阅读(384) 评论(0) 推荐(0) 编辑
摘要: 先上图 话不多说,直接上代码 1 <!--Combox--> 2 <Style TargetType="{x:Type ComboBox}" x:Key="cmbstyle"> 3 <Setter Property="Background" Value="White"/> 4 <Setter Pro 阅读全文
posted @ 2022-04-21 00:29 干杯Archer 阅读(2283) 评论(0) 推荐(0) 编辑
摘要: 区域导航的简单实现 在学习Prism的时候不知道Prism的区域导航是如何实现的,然后看了一些讲解,下面是自己的一些总结。 这次的总结中主要包含如下的知识点: 1、DataTemplate 以及 DataType 2、ContentControl 什么是DataType? DataTemplate中 阅读全文
posted @ 2021-12-06 23:51 干杯Archer 阅读(257) 评论(0) 推荐(0) 编辑
摘要: try { //var thisyearquery = data?.Where(d => Convert.ToDateTime(d.Date).Year == DateTime.Now.Year); var Nearly15MonthData = data?.Where(d => Convert.T 阅读全文
posted @ 2021-12-02 00:38 干杯Archer 阅读(504) 评论(0) 推荐(0) 编辑
摘要: 上一节我们使用的是一个扩展方法来实现我们的要求 那么现在我们使用Behavior 来实现这种功能 首先我们需要在View中引用Behavior的 namespace xmlns:b="http://schemas.microsoft.com/xaml/behaviors" 然后我们创建该Behavi 阅读全文
posted @ 2021-12-02 00:35 干杯Archer 阅读(1028) 评论(0) 推荐(1) 编辑
摘要: 在ViewModel中,我们无法在构造函数中调用async 和 await ,我们可以用一个附加属性来做。 我们实现的功能是要在view加载的时候触发一个Load() 方法。 我们先创建一个静态类 using System; using System.Collections.Generic; usi 阅读全文
posted @ 2021-12-01 23:42 干杯Archer 阅读(478) 评论(0) 推荐(1) 编辑
摘要: 最近在学习OxyPlot图表控件,一些基本的学习心得,在这里记录一下,方便以后进行查找。 一、引用 OxyPlot控件可以直接在VS的 “ Nuget ” 里面下载 选择: 下载最新版本的就行。 二、使用 在前端界面中,我们需要添加引用: xmlns:oxy="http://oxyplot.org/ 阅读全文
posted @ 2021-09-01 23:30 干杯Archer 阅读(4443) 评论(0) 推荐(1) 编辑
摘要: ASP.Net Core 进程内(InProcess)托管 CreatDefultBuilder() 执行的一些任务 设置Web服务器 加载主机和应用程序配置表信息 配置日志记录 ASP.NET Core 应用程序的托管形式 在InProcess(进程内托管)或者 OutOfProcess(进程外托 阅读全文
posted @ 2021-07-02 11:29 干杯Archer 阅读(163) 评论(0) 推荐(0) 编辑