I would like to chang the background of the filter for the datagrid. How can I do that? Thanks!
Steve,
I would suggest using the Snoop tool for WPF. You can snoop your application and see its visual tree and quickly answer questions like this. In this case, this control can differ - depending on the Filter Operand UI Type. There are couple of options - TextBox,ComboEditor,DropDownList, or use the FieldEditor.
The style for this, should look like this as Aaron suggested:
<Style TargetType={x:Type igDP:FilterCellValuePresenter}>
<Setter Property="Background" Value="Red"/>
</Style>
Note: WPF supports only one local style, so make sure you are not using another style/theme, in which case the style will not be applied.
Alex.
Hi 1) it does not work if I change FilterCellValuePresenter Style in DataPresenterGeneric_Express.xaml I guess infragistics Dll does not load this xaml.2) what is the underlying control for the filter list? is it listbox, comboBox or list view?
Thanks!
Steve
Hello sluo2008,
In order to do this, you will want to create your own style. You can find the DefaultStyles for the DataPresenter controls in the default installation directory: C:\Program Files\Infragistics\NetAdvantage for .NET 2009.1\WPF\DefaultStyles\DataPresenter. I believe you want the DataPresenterGeneric_Express.xaml file and the FilterCellValuePresenter Style.