![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
wpf
开心懒宝
这个作者很懒,什么都没留下…
展开
-
wpf 命令checkbox单选,全选
前台:<routecommand x:key ="selectallrules"><windows.commandbindings><commandbinding command ="{staticresource selectallrules}" executed="selectallrulescommand_executed"></c原创 2018-07-30 15:53:41 · 3754 阅读 · 0 评论 -
wpf treeviewitem 图片可视范围内永远居右。滚动条往右拉,图片继续居右
前台:<HierarchicalDataTemplate ItemsSource="{Binding Path=Value}"> <TextBlock></TextBlock> <HierarchicalDataTemplate.ItemTemplate> <DataTemplate&...原创 2018-07-30 16:42:11 · 508 阅读 · 0 评论 -
wpf 转换器
前台:<Window.Resources> <xlocal:ValueToStringConverter x:Key="ValueToStringConverter"></xlocal:ValueToStringConverter> </Window.Resources> <ToggleButton Tool...原创 2018-07-30 17:07:57 · 203 阅读 · 0 评论 -
wpf 设定文字样式
使用inline属性后台:public static string GetInlineText(DependencyObject obj) { return (string)obj.GetValue(InlineTextProperty); } public static void SetInlineText(DependencyObj...原创 2018-07-27 13:40:56 · 1871 阅读 · 0 评论 -
wpf tootip提示时间
ToolTipService.ShowDuration="10000000000"原创 2018-07-31 10:02:50 · 1559 阅读 · 0 评论