10 2022 档案

摘要:可以使用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) 编辑

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