学海无涯

导航

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

2022年12月31日 #

MVVM框架 数据绑定 事件命令 发布订阅消息

摘要: <StackPanel> <Button Command="{Binding OpenCommand}" Content="事件" /> <Button Command="{Binding PublishCommand}" Content="发布消息"/> <Button Command="{Bin 阅读全文

posted @ 2022-12-31 16:32 宁静致远. 阅读(107) 评论(0) 推荐(0)

Region 区域

摘要: Region 的作用:在指定区域展示用户控件,是模块化的核心功能,其主要目的是弱化模块与模块之间的耦合关系。 一、定义XML区域: 1.1 使用XML设置区域名称 <ContentControl prism:RegionManager.RegionName="ContentRegion" /> 1. 阅读全文

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

2022年12月29日 #

TextBox.InputBindings 绑定按键事件

摘要: <TextBox Text="{Binding Search, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" VerticalAlignment="Center" Width="250" md:HintAssist.Hint="查找待办事项" 阅读全文

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

微软行为类

摘要: 引用命名空间: xmlns:i="http://schemas.microsoft.com/xaml/behaviors" 通过行为类,可以为控件添加触发器 <ScrollViewer Grid.Row="1"> <ItemsControl ItemsSource="{Binding ToDoDto 阅读全文

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

2022年12月26日 #

MaterialDesignThemes

摘要: 1. 用 nuget 添加引用:MaterialDesignThemes 2. 编辑 App.xaml <Application . . . xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"> <Appl 阅读全文

posted @ 2022-12-26 16:44 宁静致远. 阅读(948) 评论(0) 推荐(0)

.Net Core Md5 加密整理

摘要: 一、.Net Core中Md5使用说明 .Net Core中自带Md5加密处理,使用方法和 .Net Framework中相同 所在命名空间: using System.Security.Cryptography; using System; using System.Collections.Gen 阅读全文

posted @ 2022-12-26 11:11 宁静致远. 阅读(1547) 评论(0) 推荐(0)

2022年12月25日 #

选择图片并加载显示

摘要: private void shopPicButton_Click(object sender, RoutedEventArgs e) {//选择图片并加载显示 OpenFileDialog openFileDialog = new OpenFileDialog(); openFileDialog.F 阅读全文

posted @ 2022-12-25 15:11 宁静致远. 阅读(27) 评论(0) 推荐(0)

2022年12月19日 #

WPF介绍

摘要: 主题外观包:MaterialDesignThemes MVVM 模式:Prism.DryIoc 阅读全文

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

2022年12月14日 #

常用工具

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

posted @ 2022-12-14 19:53 宁静致远. 阅读(58) 评论(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 宁静致远. 阅读(235) 评论(0) 推荐(0)

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