上位机
Rraion
Kafen Wong
展开
-
WPF(X):Prism框架
建立Prism项目在nuget中安装Prism.DryIoc包了解源代码using System;using DryIoc;using Prism.Ioc;using Prism.Regions;namespace Prism.DryIoc{ /// <summary> /// Base application class that uses <see cref="DryIocContainerExtension"/> as it's conta原创 2022-02-05 16:24:37 · 333 阅读 · 0 评论 -
WPF(X):动画基础
动画种类:Systm.Windows.Media.Animation线性动画:关键帧动画路径动画代码<Window x:Class="WpfApp9.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http:原创 2022-02-05 15:18:53 · 195 阅读 · 0 评论 -
WPF(X):资源基础
动态资源和静态资源当资源会变化使用动态资源当资源是固定的使用静态资源<Window x:Class="WpfApp8.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsof原创 2022-02-05 15:06:30 · 179 阅读 · 0 评论 -
WPF(X):通知更改
UI样式<Window x:Class="WpfApp7.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008"原创 2022-02-05 14:21:04 · 79 阅读 · 0 评论 -
WPF(X):命令
Icommand样式代码<Window x:Class="WpfApp7.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/20原创 2022-02-04 21:44:28 · 570 阅读 · 0 评论 -
WPF(X):绑定
控件和控件之间的绑定(不涉及后台代码)<Window x:Class="WpfApp7.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/bl原创 2022-02-04 21:23:37 · 69 阅读 · 0 评论 -
WPF(X):数据模板
数据模板:用数据驱动UI<Window x:Class="WpfApp7.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/200原创 2022-02-04 20:56:40 · 51 阅读 · 0 评论 -
WPF(X):控件模板
编辑模板副本不设置任何样式的时候,控件的样式来源于样式模板,我们可以通过修改样式模板的副本来修改控件的默认显示选择一个控件编辑模板-编辑副本数据模板:定义数据可视化结构数据模板:使得代码易于维护...原创 2022-02-03 23:26:26 · 422 阅读 · 1 评论 -
WPF(X):布局基础和样式
快捷键:Ctril+d复制一行容器控件GridStackPanel:空间不够不能重新排列<StackPanel Orientation="Horizontal"> <Button Width="100" Height="40"></Button> <Button Width="100" Height="40"></Button> <Button Width="原创 2022-02-03 11:12:02 · 785 阅读 · 0 评论