摘要: 找到对应的cuda及cudnn版本 view cuda version cmd: nvidia-smi cuda 10.1 下载地址 https://developer.nvidia.com/cuda-10.1-download-archive-base?target_os=Windows&targ 阅读全文
posted @ 2022-11-28 17:35 潜谷先生 阅读(22) 评论(0) 推荐(0) 编辑
摘要: 创建服务端 private void StartServer() { try { // Set the TcpListener on port 13000. Int32 port = 8888; IPAddress localAddr = IPAddress.Parse("127.0.0.1"); 阅读全文
posted @ 2022-11-28 16:29 潜谷先生 阅读(504) 评论(0) 推荐(0) 编辑
摘要: 内容居中风格 <Style x:Key="HorizontalAlignedData" BasedOn="{StaticResource {x:Type TextBlock}}" TargetType="{x:Type TextBlock}"> <Setter Property="Horizonta 阅读全文
posted @ 2022-11-07 17:33 潜谷先生 阅读(881) 评论(0) 推荐(0) 编辑
摘要: 资源文件 定义颜色及样式 <SolidColorBrush x:Key="TextColorGeneral" Color="#a2a2a2" /> <Style TargetType="DataGridColumnHeader"> <Setter Property="HorizontalConten 阅读全文
posted @ 2022-11-07 17:22 潜谷先生 阅读(963) 评论(1) 推荐(0) 编辑
摘要: 可以使用handycontrol里的类,behavior里的不可以使用,因为它只支持RoutedEvent <hc:Interaction.Triggers> <hc:RoutedEventTrigger RoutedEvent="{x:Static Validation.ErrorEvent}"> 阅读全文
posted @ 2022-10-24 11:37 潜谷先生 阅读(36) 评论(0) 推荐(0) 编辑
摘要: how to implement INotifyDataErrorInfo MVVM 目前实现data validation 有两种方式,一种是通过xaml, 还有就是通过viewmodel. xaml的实现方式如下。这种情况下,viewmodel不需要写任何代码,但是viewmodel在写逻辑时, 阅读全文
posted @ 2022-10-24 11:32 潜谷先生 阅读(79) 评论(0) 推荐(0) 编辑
摘要: power shell Get-NetAdapter | select interfaceDescription, name, status, linkSpeed cmd wmic nic get AdapterType, Name, Installed, MACAddress, PowerMana 阅读全文
posted @ 2022-10-19 13:54 潜谷先生 阅读(470) 评论(0) 推荐(0) 编辑
摘要: WPF中除了可以用传统的图片格式(jpg,png)做中控件的图标外,更常见的时使用Geometry作为图标。本文将讲解如何从网上找到svg数据,然后嵌入到WPF里。 准备数据 阿里矢量图【提供大量icon】 https://www.iconfont.cn/collections/index?spm= 阅读全文
posted @ 2022-10-11 15:04 潜谷先生 阅读(839) 评论(0) 推荐(0) 编辑
摘要: Xaml 文件代码如下: <ListBox x:Name="lstBox" Height="200" AlternationCount="100000" ItemsSource="{Binding Logs}"> <ListBox.ItemTemplate> <DataTemplate> <Stac 阅读全文
posted @ 2022-10-11 13:18 潜谷先生 阅读(1055) 评论(0) 推荐(0) 编辑
摘要: 关键代码: 如果中在ItemsControl中加入Index,"RelativeSource={RelativeSource AncestorType=ListBoxItem}"可以写成,"RelativeSource={RelativeSource TemplatedParent}"但是ListB 阅读全文
posted @ 2022-10-11 13:15 潜谷先生 阅读(96) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示