学海无涯

导航

上一页 1 ··· 27 28 29 30 31 32 33 34 35 ··· 45 下一页

2022年12月14日 #

常用工具

摘要: 抓包工具:Fiddler、Wireshark Fiddler是最强大最好用的Web调试工具之一, 它能记录所有客户端和服务器的http和https请求。允许你监视、设置断点、甚至修改输入输出数据。 阅读全文

posted @ 2022-12-14 19:53 宁静致远. 阅读(62) 评论(0) 推荐(0)

动画 Animation

摘要: using System.Windows.Media.Animation; <Grid> <StackPanel> <Button x:Name="btn" Content="执行动画" Width="100" Height="40" Click="Button_Click"/> </StackPa 阅读全文

posted @ 2022-12-14 10:42 宁静致远. 阅读(264) 评论(0) 推荐(0)

资源字典 ResourceDictionary

摘要: 1.在项目上点右键,添加 ”资源字典WPF“ ,命名为:ButtonStyle.xaml <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://sch 阅读全文

posted @ 2022-12-14 10:39 宁静致远. 阅读(91) 评论(0) 推荐(0)

CommunityToolkit.Mvvm

摘要: public class ViewModel : ObservableObject { public ViewModel() { ShowCommand = new RelayCommand<string>(Show); } private string name; public string Na 阅读全文

posted @ 2022-12-14 09:09 宁静致远. 阅读(329) 评论(0) 推荐(0)

2022年12月13日 #

数据模板 DataTemplate

摘要: <Grid> <ListBox x:Name="list"> <ListBox.ItemTemplate> <DataTemplate> <StackPanel Orientation="Horizontal"> <Border Width="10" Height="10" Background=" 阅读全文

posted @ 2022-12-13 10:44 宁静致远. 阅读(73) 评论(0) 推荐(0)

2022年12月12日 #

Style 控件样式

摘要: <Window.Resources> <Style x:Key="BaseButtonStyle" TargetType="Button"> <Setter Property="FontSize" Value="15"/> </Style> <Style x:Key="myStyle" Target 阅读全文

posted @ 2022-12-12 17:05 宁静致远. 阅读(76) 评论(0) 推荐(0)

DataGrid CRUD(MVVM模式)

摘要: 引用程序包:MvvmLight 实体类: public class Student : ViewModelBase { private int id; private string name; public int Id { get { return id; } set { id = value; 阅读全文

posted @ 2022-12-12 14:36 宁静致远. 阅读(71) 评论(0) 推荐(0)

数据绑定

摘要: 元素绑定 <StackPanel> <Slider x:Name="slider1" Width="200" ></Slider> <TextBox Name="txt" Text="{Binding ElementName=slider1,Path=Value,UpdateSourceTrigge 阅读全文

posted @ 2022-12-12 09:05 宁静致远. 阅读(52) 评论(0) 推荐(0)

2022年11月23日 #

允许跨域访问Cors

摘要: WebApi 项目Program.cs 配置 //允许跨域访问 builder.Services.AddCors(options => { options.AddPolicy("AllowAllOrigins", builder => { builder.AllowAnyHeader(); buil 阅读全文

posted @ 2022-11-23 16:44 宁静致远. 阅读(135) 评论(0) 推荐(0)

2022年11月22日 #

使用 AotoFac 注册AutoMapper

摘要: using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; using Aut 阅读全文

posted @ 2022-11-22 15:13 宁静致远. 阅读(139) 评论(0) 推荐(0)

上一页 1 ··· 27 28 29 30 31 32 33 34 35 ··· 45 下一页