• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
瓦男刀疤六
博客园    首页    新随笔    联系   管理    订阅  订阅
2017年9月5日
OxyPlot Controller OxyPlot控制器
摘要: Default input bindings ====================== The default input bindings in the PlotController are: | Action | Gesture | | | | | Pan\ | Right mouse bu 阅读全文
posted @ 2017-09-05 14:15 瓦男刀疤六 阅读(1193) 评论(0) 推荐(1)
2017年2月22日
linux下列出所有连接到你的Server的IP地址
摘要: linux下列出所有连接到你的Server的IP地址 最近要做一个检查所有连接到主机的IP的脚本,google到一篇老外写的文章 "《List all IP addresses connected to your Server》" 试了一下脚本结果好像可以。因为对linux了解很少,所以对这 行 脚 阅读全文
posted @ 2017-02-22 13:40 瓦男刀疤六 阅读(2256) 评论(0) 推荐(0)
2013年7月31日
用反射来在方法里获取泛型对象的属性
摘要: 1. 获取属性对象 PropertyInfo pCode = TObject.GetType().GetProperty("Code");2.pCode.GetValue(item, null).ToString() 阅读全文
posted @ 2013-07-31 13:45 瓦男刀疤六 阅读(470) 评论(0) 推荐(0)
2013年5月29日
MVVM中PasswordBox的使用
摘要: 可能是因为某些安全问题,微软的PasswordBox控件的Password属性不能绑定。在只需要单向绑定时,可以用 Button的Command="{Binding LoginCommad}" CommandParameter="{Binding ElementName=MyPasswordBox}"/>就把PasswordBox传回ViewModel了 阅读全文
posted @ 2013-05-29 14:28 瓦男刀疤六 阅读(264) 评论(0) 推荐(0)
2013年3月25日
微软WPF的theme里的几个问题
摘要: 1.ComboBox的绑定纵是显示类型名称。 找到类似<Style d:IsControlPart="True" TargetType="{x:Type ComboBoxItem}">的代码段 注释掉 <!--<ContentPresenter x:Name="contentPresenter" Content="{TemplateBinding Content}" ... 阅读全文
posted @ 2013-03-25 14:38 瓦男刀疤六 阅读(395) 评论(0) 推荐(0)
2013年3月13日
C# 拼接List中各对象里的字符串 增加ConvertAll和Select的区别
摘要: 有不少都用到了拼接字符串,我之前用循环拼字符串,有时候写起来很麻烦。现在查到这样一种写法,大家可以保留备用:QueryUsers = String.Join(",", query.Users.ConvertAll(u => u.Code).ToArray())String.Join(string separator, params string[] value);第一个参数是连接符,而且只连接,不会在头尾加出多余的字符。第二个参数是一个string类型的数组。这里又先调用List的ConvertAll方法List<TOutput> ConvertAll&l 阅读全文
posted @ 2013-03-13 16:02 瓦男刀疤六 阅读(4769) 评论(6) 推荐(0)
2013年2月26日
绑定枚举体到ComboBox的简单实现
摘要: 1 private GroupType _selectedMyEnumType; 2 3 public GroupType SelectedType 4 { 5 get { return _selectedMyEnumType; } 6 set 7 { 8 _selectedMyEnumType = value; 9 RaisePropertyChangedEvent("SelectedMyEnumType"... 阅读全文
posted @ 2013-02-26 15:31 瓦男刀疤六 阅读(206) 评论(0) 推荐(0)
2012年11月29日
DataGrid通过数据改变行的颜色
摘要: <DataGrid.CellStyle> <Style TargetType="DataGridCell"> <Style.Triggers> <DataTrigger Binding="{Binding Path=QueryName}" Value="AI Airline Quer... 阅读全文
posted @ 2012-11-29 14:17 瓦男刀疤六 阅读(244) 评论(0) 推荐(0)
ribbon:RibbonSplitButton check项目的添加
摘要: <ribbon:RibbonSplitButton ToolTipDescription="{Resx Ribbon.StandDisplayGroup.ToolTip}" ToolTipTitle="{Resx Ribbon.StandDisplayGroup.ToolTipTitle}" KeyTip="DG" La... 阅读全文
posted @ 2012-11-29 02:24 瓦男刀疤六 阅读(428) 评论(0) 推荐(0)
2012年11月28日
xaml中资源在cs中调用
摘要: xaml中有如下资源 <UserControl.Resources> <VisualBrush x:Key="HatchBrush" TileMode="Tile" Viewport="0,0,10,10" ViewportUnits="Absolute" Viewbox="0,0,10,10" ViewboxUnits="Absolute"> <Visu... 阅读全文
posted @ 2012-11-28 13:56 瓦男刀疤六 阅读(298) 评论(0) 推荐(0)
下一页
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3