随笔分类 -  WPF / 自定义样式

摘要:原文:https://www.cnblogs.com/Cindys/archive/2012/09/11/2680501.html 空样式按钮 <Style x:Key="EmptyButtonStyle" TargetType="Button"> <Setter Property="Padding 阅读全文
posted @ 2024-04-18 16:03 小林野夫 阅读(113) 评论(0) 推荐(0)
摘要:TreeView展开所有节点 <TreeView.ItemContainerStyle> <Style TargetType="{x:Type TreeViewItem}"> <Setter Property="IsExpanded" Value="True"></Setter> </Style> 阅读全文
posted @ 2024-04-17 10:20 小林野夫 阅读(600) 评论(0) 推荐(0)
摘要:ContextMenu样式 对应的xaml代码: <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/w 阅读全文
posted @ 2024-04-17 10:18 小林野夫 阅读(95) 评论(0) 推荐(0)
摘要:好看的boder 阴影 <Border BorderThickness="1" Grid.Column="2" Grid.Row="1"> <Border BorderThickness="1" Grid.Column="2" Grid.Row="1" Margin="5" BorderBrush= 阅读全文
posted @ 2024-04-17 08:40 小林野夫 阅读(53) 评论(0) 推荐(0)
摘要:使用方法: View <Window x:Class="IndividualQAlibrary.MVVM.Views.AddQAView" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http: 阅读全文
posted @ 2024-04-13 03:10 小林野夫 阅读(458) 评论(0) 推荐(0)

原文链接:https://www.cnblogs.com/cdaniu/