protected internal override void PrepareDefaultStyleKey(Views.ViewBase view) { object currentThemeKey = view.GetDefaultStyleKey(typeof(DataRow)); if (currentThemeKey.Equals(this.DefaultStyleKey) == false) { this.DefaultStyleKey = currentThemeKey; } }
protected virtual void SetTitleBarContentBinding(DataGridContext dataGridContext) { if (dataGridContext != null) { Nequeo.Wpf.DataGrid.Views.ViewBase view = dataGridContext.DataGridControl.GetView(); if ((view is TableView) || (view is TableflowView)) { return; } Column headerColumn = dataGridContext.Columns.MainColumn as Column; if (headerColumn != null) { BindingBase displayMemberBinding = headerColumn.GetDisplayMemberBinding(); if (displayMemberBinding == null) { if (dataGridContext.ItemsSourceFieldDescriptors == null) { throw new InvalidOperationException("An attempt was made to create a DisplayMemberBinding before the DataGridContext has been initialized."); } string name = headerColumn.FieldName; ItemsSourceHelper.FieldDescriptor fieldDescriptor; dataGridContext.ItemsSourceFieldDescriptors.TryGetValue(name, out fieldDescriptor); displayMemberBinding = ItemsSourceHelper.CreateDefaultBinding(this.DataContext is DataRow, name, fieldDescriptor, headerColumn, true, typeof(object)); } if (displayMemberBinding == null) { Debug.Assert(false, "displayMemberBinding is null."); this.ClearValue(DataRow.TitleBarContentProperty); } else { this.SetBinding(DataRow.TitleBarContentProperty, displayMemberBinding); } } } }
protected internal virtual void PrepareDefaultStyleKey(Nequeo.Wpf.DataGrid.Views.ViewBase view) { this.DefaultStyleKey = view.GetDefaultStyleKey(typeof(GroupNavigationControlItem)); }
protected internal virtual void PrepareDefaultStyleKey(Nequeo.Wpf.DataGrid.Views.ViewBase view) { this.DefaultStyleKey = view.GetDefaultStyleKey(typeof(HierarchicalGroupByItem)); }
protected internal virtual void PrepareDefaultStyleKey(Nequeo.Wpf.DataGrid.Views.ViewBase view) { this.DefaultStyleKey = view.GetDefaultStyleKey(typeof(ScrollTip)); }
internal virtual void PrepareDefaultStyleKey(Nequeo.Wpf.DataGrid.Views.ViewBase view) { this.DefaultStyleKey = view.GetDefaultStyleKey(typeof(RowSelector)); }
internal virtual void PrepareDefaultStyleKey(Nequeo.Wpf.DataGrid.Views.ViewBase view) { this.DefaultStyleKey = view.GetDefaultStyleKey(typeof(GroupLevelIndicatorPane)); }