示例#1
0
        private static void PropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            var sender = (TreeGridHeaderRowPresenter)d;

            if (e.Property == ColumnHeaderTemplateProperty || e.Property == ColumnHeaderTemplateSelectorProperty)
            {
                TreeGridHelper.CheckTemplateAndTemplateSelector("TreeGridHeaderRowPresenter", ColumnHeaderTemplateProperty, ColumnHeaderTemplateSelectorProperty, sender);
            }
            sender.UpdateAllHeaders(e.Property);
        }
示例#2
0
文件: TreeGrid.cs 项目: yungtau/oea
 private void OnColumnHeaderTemplateSelectorChanged(DependencyPropertyChangedEventArgs e)
 {
     TreeGridHelper.CheckTemplateAndTemplateSelector("GridViewColumnHeader", GridView.ColumnHeaderTemplateProperty, GridView.ColumnHeaderTemplateSelectorProperty, this);
 }
示例#3
0
 private void OnHeaderTemplateSelectorChanged(DependencyPropertyChangedEventArgs e)
 {
     TreeGridHelper.CheckTemplateAndTemplateSelector("Header", HeaderTemplateProperty, HeaderTemplateSelectorProperty, this);
     this.OnPropertyChanged(TreeGridColumn.HeaderTemplateSelectorProperty.Name);
 }