public override void OnApplyTemplate() { base.OnApplyTemplate(); Thumb resizer = (Thumb)GetTemplateChild("PART_Resizer"); resizeHelper.Init(resizer); InitializeRowHeight(); }
void ColumnResizeGrip_Loaded(object sender, RoutedEventArgs e) { EditGridCellData cellData = this.DataContext as EditGridCellData; column = cellData.Column; this.Visibility = column.ActualAllowResizing ? Visibility.Visible : Visibility.Collapsed; ResizeHelper.Init(this); }