42 lines
1.1 KiB
C#
42 lines
1.1 KiB
C#
using Microsoft.VisualBasic;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows;
|
|
using System.Windows.Controls;
|
|
using System.Windows.Data;
|
|
using System.Windows.Documents;
|
|
using System.Windows.Input;
|
|
using System.Windows.Media;
|
|
using System.Windows.Media.Imaging;
|
|
using System.Windows.Navigation;
|
|
using System.Windows.Shapes;
|
|
|
|
namespace CapMachine.Wpf.Views
|
|
{
|
|
/// <summary>
|
|
/// ActionLogView.xaml 的交互逻辑
|
|
/// </summary>
|
|
public partial class ActionLogView : UserControl
|
|
{
|
|
public ActionLogView()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void dg1_AutoGeneratingColumn(object sender, DataGridAutoGeneratingColumnEventArgs e)
|
|
{
|
|
if (string.IsNullOrEmpty((e.PropertyDescriptor as System.ComponentModel.PropertyDescriptor).Description))
|
|
{
|
|
e.Column.Visibility = Visibility.Collapsed;
|
|
}
|
|
else
|
|
{
|
|
e.Column.Header = (e.PropertyDescriptor as System.ComponentModel.PropertyDescriptor).Description;
|
|
}
|
|
}
|
|
}
|
|
}
|