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