wpf
振不到刀
小舟从此逝,江海寄余生
展开
-
WPF 获取DataGrid里的模板内的ComboBox控件
DataGridTemplateColumn tempColumn1 = GridName.Columns[0] as DataGridTemplateColumn;FrameworkElement element1 = GridName.Columns[0].GetCellContent(GridName.Items[0]);ComboBox comboBox1 = tempColumn1.CellTemplate.FindName("combo", element1) as ComboBox;.原创 2020-07-07 09:11:58 · 751 阅读 · 0 评论 -
WPF radioubutton 转化器
bool 类型转化器public class BoolValueConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { if (value...原创 2020-04-29 09:05:56 · 232 阅读 · 0 评论