摘要: Document doc = commandData.Application.ActiveUIDocument.Document; FilteredElementCollector collector = new FilteredElementCollector(doc); List<Paramet 阅读全文
posted @ 2021-04-21 09:46 卡娃儿 阅读(119) 评论(0) 推荐(0) 编辑
摘要: Document doc = commandData.Application.ActiveUIDocument.Document; string cats = ""; foreach (Category item in doc.Settings.Categories) { cats += item. 阅读全文
posted @ 2021-04-20 15:08 卡娃儿 阅读(58) 评论(0) 推荐(0) 编辑
摘要: Window 有几个重要的事件: 他们之间的调用顺序是: Window.Initialized Window.Activatied Window.Loaded Window.ContentRendered Window.DeActivatied Window.Closing Window.UnLoa 阅读全文
posted @ 2021-04-10 14:20 卡娃儿 阅读(68) 评论(0) 推荐(0) 编辑
摘要: private void Button_Add_Click(object sender, System.Windows.RoutedEventArgs e) { Button btn = new Button(); //btn.Name = "newButton";//这样设置则注册名字可为:can 阅读全文
posted @ 2017-04-13 17:46 卡娃儿 阅读(242) 评论(0) 推荐(0) 编辑
摘要: 在XAML界面设计器中添加MouseLeftButtonDown事件,或MouseDown事件 以下为代码部分: #region 左击事件(分单双击) int i = 0; bool 有双击 = false; private void Grid_MouseLeftButtonDown(object 阅读全文
posted @ 2017-04-12 13:12 卡娃儿 阅读(1537) 评论(0) 推荐(0) 编辑
摘要: DEVICE=eth0 //网卡可重启 ifconfig显示ip信息(系统会自动以连接的名称为文件名建立新的网配文件,但缺失此项)TYPE=Ethernet //网卡可重启 ifconfig显示ip信息BOOTPROTO=static //【错设为dhcp,其他不变(网络不可达)网卡无法重启(错误: 阅读全文
posted @ 2017-03-24 11:17 卡娃儿 阅读(367) 评论(0) 推荐(0) 编辑
摘要: 在x名称空间下包含三种类型的工具: 一、Attribute类型的工具 二、标签扩展类型的工具 三、XAML指令元素类型的工具 一下列出x名称空间中包含的工具: XAML指令元素 x:Class 新建的WpfApplication中会有这样的XAML语句:x:Class="WpfApplication 阅读全文
posted @ 2017-02-19 08:58 卡娃儿 阅读(816) 评论(0) 推荐(0) 编辑