WPF转换器Converter
摘要:1、代码 public class IsCheckConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { i
阅读全文
WPF网格绑定按钮并通过DataContext控制按钮是否可用
摘要:1、资源字典 <ResourceDictionary> <FrameworkElement x:Key="ProxyElement" DataContext="{Binding}"/> 2、内容 </GroupBox> <ContentControl Visibility="Collapsed" C
阅读全文