05 2020 档案

摘要:<DataTemplate x:Key="CheckBoxDataTemplate"> <Grid x:Name="Grid" HorizontalAlignment="Center" VerticalAlignment="Center"> <CheckBox Click="CheckBox_Che 阅读全文
posted @ 2020-05-27 13:16 _York 阅读(2766) 评论(0) 推荐(0) 编辑
摘要:使用 DataGridRow dr = (DataGridRow)ListGrid.ItemContainerGenerator.ContainerFromItem(item); 有时获取 DataGridRow 为NULL 需要在DataGrid上加属性 VirtualizingStackPane 阅读全文
posted @ 2020-05-27 13:11 _York 阅读(959) 评论(0) 推荐(1) 编辑
摘要:<DataGridCheckBoxColumn Header="选择"> <DataGridCheckBoxColumn.HeaderTemplate> <DataTemplate> <CheckBox x:Name="ckbSelectedAll" Content="全选" Checked="ck 阅读全文
posted @ 2020-05-27 09:41 _York 阅读(1911) 评论(0) 推荐(0) 编辑
摘要:<!--Grid 内容网格--> <Style TargetType="{x:Type DataGrid}"> <Setter Property="RowHeaderWidth" Value="0"></Setter> </Style> 阅读全文
posted @ 2020-05-26 17:02 _York 阅读(1081) 评论(0) 推荐(0) 编辑
摘要:<UserControl x:Class="Mjj.MyUserControls.LeftMenu" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft 阅读全文
posted @ 2020-05-23 10:47 _York 阅读(1154) 评论(0) 推荐(0) 编辑
摘要://boxItem要移动的控件 DoubleAnimation doubleAnimation = new DoubleAnimation(); doubleAnimation.Duration = new Duration (TimeSpan.FromSeconds(5)); TranslateT 阅读全文
posted @ 2020-05-21 17:39 _York 阅读(1504) 评论(0) 推荐(0) 编辑
摘要:“/”应用程序中的服务器错误。 The following errors occurred while attempting to load the app.- The OwinStartup attribute discovered in assembly 'RoadRescue' referen 阅读全文
posted @ 2020-05-18 19:04 _York 阅读(317) 评论(0) 推荐(0) 编辑
摘要:var window = (MainWindow)Window.GetWindow(this); if (window != null) window.PageContext.Source = new Uri("./ArchivesManage/ArchivesReturn.xaml", UriKi 阅读全文
posted @ 2020-05-14 16:14 _York 阅读(1901) 评论(0) 推荐(0) 编辑
摘要:使用ZXing.net生成二维码和一维码图片,再使用PrintDocument打印图片 具体代码: private string GenerateBarCodeImage(string barCode, int width, int height, BarcodeFormat format) { B 阅读全文
posted @ 2020-05-13 16:44 _York 阅读(1107) 评论(0) 推荐(0) 编辑
摘要:var adornerLayer = AdornerLayer.GetAdornerLayer(element); 找不到装饰器adornerLayer 手动添加装饰器 <AdornerDecorator Margin="0"> <TextBox Width="200" Height="30" Te 阅读全文
posted @ 2020-05-09 13:02 _York 阅读(416) 评论(0) 推荐(0) 编辑
摘要:my.ini文件配置内容 [client] # 设置mysql客户端默认字符集 default-character-set=utf8 [mysqld] # 设置3306端口 port = 3306 # 设置mysql的安装目录 basedir=D:\mysql # 设置 mysql数据库的数据的存放 阅读全文
posted @ 2020-05-07 14:44 _York 阅读(158) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示