上一页 1 ··· 27 28 29 30 31 32 33 34 35 ··· 44 下一页
摘要: 绑定的几种方式 1 元素绑定 <Grid> <StackPanel > <TextBox x:Name="t1" HorizontalAlignment="Left" Margin="35,26,0,0" TextWrapping="Wrap" Height="25" Width="266"/> < 阅读全文
posted @ 2021-10-25 23:26 安静点-- 阅读(277) 评论(0) 推荐(0)
摘要: 示例: <Window x:Class="MyWpf.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2 阅读全文
posted @ 2021-10-24 23:14 安静点-- 阅读(66) 评论(0) 推荐(0)
摘要: 看下面代码: <Window x:Class="MyWpf.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winf 阅读全文
posted @ 2021-10-24 22:53 安静点-- 阅读(30) 评论(0) 推荐(0)
摘要: <Window x:Class="MyWpf.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/ 阅读全文
posted @ 2021-10-24 22:39 安静点-- 阅读(469) 评论(0) 推荐(0)
摘要: 1 阅读全文
posted @ 2021-10-24 21:28 安静点-- 阅读(31) 评论(0) 推荐(0)
摘要: X:Name 这个可以创建实例的引用变量。 比如下面代码: <Window x:Class="MyWpf.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://sch 阅读全文
posted @ 2021-10-24 20:44 安静点-- 阅读(41) 评论(0) 推荐(0)
摘要: 导入程序集和引用其中的空间名称 比如说做一个计算工资的组件,然后可以在程序中的其它地方也可以进行调用。 新建: 创建一个简单的计算工资的界面: <UserControl x:Class="MyControlLibrary.UserControl1" xmlns="http://schemas.mic 阅读全文
posted @ 2021-10-24 17:18 安静点-- 阅读(53) 评论(0) 推荐(0)
摘要: 浅析用户界面的树形结构 在winform中的界面是一种平面布局的方式,所有的控件都是在同一平面上的。但是wpf是树形结构的,控件是可以嵌套的。 在xaml中为对象属性赋值 1 Attribute=Value方式 这种赋值方法Value值只能是字符串类型的。 比如我们用Rectangle标签来画一个几 阅读全文
posted @ 2021-10-23 22:42 安静点-- 阅读(694) 评论(0) 推荐(0)
摘要: wpf datagrid 某列鼠标移动显示全部文本内容 WPF 轻量级TextBlock控件文本居中显示 wpf datagrid 滚动条延迟加载 阅读全文
posted @ 2021-10-21 09:30 安静点-- 阅读(34) 评论(0) 推荐(0)
摘要: 首先,我们先简单创建一个wpf项目,看下图,app.xaml文件中StartupUri属性中的值表示项目运行起来之后展示的界面: xmlnx介绍 首先先说明一点,xaml是一种声明性语言,是在xml基础上扩展出来的,xml是一种标签语言,所以在xml中通用的在xaml中也通用。xaml是一种声明性语 阅读全文
posted @ 2021-10-21 00:00 安静点-- 阅读(66) 评论(0) 推荐(0)
上一页 1 ··· 27 28 29 30 31 32 33 34 35 ··· 44 下一页