文章分类 -  WPF

摘要:Silverlight实用窍门系列:54.详解Silverlight中的矩阵变换MatrixTransform,实现其余各种变换【附带实例源码】 - 程兴亮 - 博客园 (cnblogs.com) 阅读全文
posted @ 2022-09-26 10:34 驼七 阅读(25) 评论(0) 推荐(0)
摘要:<ItemsControl Name="imgList" > <ItemsControl.ItemsPanel> <ItemsPanelTemplate> <WrapPanel /> </ItemsPanelTemplate> </ItemsControl.ItemsPanel> <ItemsCon 阅读全文
posted @ 2022-08-22 21:28 驼七 阅读(52) 评论(0) 推荐(0)
摘要:1.前台xaml <Image Name="tpImage" Stretch= "Uniform" Width="512px" Height="512px" MouseMove="TP_MouseMove" > <Image.ToolTip> <ToolTip Placement="Mouse" H 阅读全文
posted @ 2022-07-28 16:17 驼七 阅读(101) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2022-06-16 23:37 驼七 阅读(30) 评论(0) 推荐(0)
摘要:1.xaml 提示label <StackPanel Orientation="Horizontal" Margin="0,5" HorizontalAlignment="Center"> <dxlc:LayoutItem Name="txtTip" Label="123" Foreground=" 阅读全文
posted @ 2022-06-14 14:24 驼七 阅读(200) 评论(0) 推荐(0)
摘要:(24条消息) 关于WPF输入框数据验证的解决方案_.Net影像007的博客-CSDN博客_wpf 数据验证 阅读全文
posted @ 2022-06-14 13:22 驼七 阅读(18) 评论(0) 推荐(0)
摘要:1、获取鼠标相对当前所在控件img的相对位置 private void Click_Mousemove(object sender, MouseEventArgse) { System.Windows.Controls.Image image = sender as System.Windows.C 阅读全文
posted @ 2022-06-08 15:57 驼七 阅读(45) 评论(0) 推荐(0)
摘要://XAML代码 <Button> <WrapPanel Background = "#fff" > <Image Name="TJimg" Width="15" Height="15"/> <TextBlock Text = "新添加" Foreground="DarkBlue" Vertical 阅读全文
posted @ 2022-06-07 17:29 驼七 阅读(48) 评论(0) 推荐(0)
摘要:Button TempButton = new Button(); TempButton.Tag = “标记内容”; //设置宽高 TempButton.Height = 30; TempButton.Width = 100; //设置样式 TempButton.Style = this.FindR 阅读全文
posted @ 2022-06-05 17:02 驼七 阅读(134) 评论(0) 推荐(0)
摘要:很多时候,我们会使⽤图⽚来装饰UI,⽐如作为控件背景等。⽽这些图⽚可以分为两种形式,即存在于本地⽂件系统中的图⽚和存在于内存中的图⽚对于这两种形式的图⽚,在WPF中,使⽤⽅法不同,下⾯主要说明针对这两种形式图⽚的使⽤⽅法 1.存在于本地⽂件系统中的图⽚⽂件对于此类图⽚,使⽤⾮常简单, 1.1在xam 阅读全文
posted @ 2022-06-02 16:11 驼七 阅读(1384) 评论(0) 推荐(0)
摘要:1.MouseEvent.xaml <Window x:Class="WPF1.MouseEvent" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsof 阅读全文
posted @ 2022-06-01 15:17 驼七 阅读(140) 评论(0) 推荐(0)
摘要:https://copyfuture.com/blogs-details/202205061230014035 阅读全文
posted @ 2022-06-01 11:42 驼七 阅读(14) 评论(0) 推荐(0)
摘要:<Button ToolTip="提示内容"/> 1.ToopTip 作为button提示属性,鼠标键入时展示提示内容 2.弹出的提示框,有文本有图片 <Button> <Button.ToolTip> <!--提示内容的背景--> <!-- Placement="Mouse" 鼠标停靠提示 Hor 阅读全文
posted @ 2022-06-01 10:52 驼七 阅读(172) 评论(0) 推荐(0)
摘要:<dxe:TextEdit x:Name="aa" TextWrapping="Wrap" InvalidValueBehavior="AllowLeaveEditor" IsEnabled="True" VerticalScrollBarVisibility="Auto"></dxe:TextEd 阅读全文
posted @ 2022-05-31 11:53 驼七 阅读(199) 评论(0) 推荐(0)