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); }
private void OnColumnHeaderTemplateSelectorChanged(DependencyPropertyChangedEventArgs e) { TreeGridHelper.CheckTemplateAndTemplateSelector("GridViewColumnHeader", GridView.ColumnHeaderTemplateProperty, GridView.ColumnHeaderTemplateSelectorProperty, this); }
private void OnHeaderTemplateSelectorChanged(DependencyPropertyChangedEventArgs e) { TreeGridHelper.CheckTemplateAndTemplateSelector("Header", HeaderTemplateProperty, HeaderTemplateSelectorProperty, this); this.OnPropertyChanged(TreeGridColumn.HeaderTemplateSelectorProperty.Name); }