Version

ButtonSettings Property

Provides a group of settings related to the buttons on the menu shown by the provider.
Syntax
'Declaration
 
Public ReadOnly Property ButtonSettings As FilterUIProviderButtonSettings
public FilterUIProviderButtonSettings ButtonSettings {get;}
Remarks

Note: Changing any of these settings while the filter provider is shown will not have any effect. These properties will be honored the next time the provider is displayed.

Example
The following code snippet illustrates how to change the appearance of the OK and Cancel buttons that are shown by the filter provider.

Imports Infragistics.Win 
Imports Infragistics.Win.SupportDialogs.FilterUIProvider

Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs) 
    ' Disable OS themes so that we have more control over the appearance of the buttons 
    Me.ultraGridFilterUIProvider1.UseOsThemes = DefaultableBoolean.False 
    
    ' Set the OK button to green and the Cancel button to red 
    Dim buttonSettings As FilterUIProviderButtonSettings = Me.ultraGridFilterUIProvider1.ButtonSettings 
    buttonSettings.OkAppearance.BackColor = Color.Green 
    buttonSettings.CancelAppearance.BackColor = Color.Red 
End Sub
using Infragistics.Win;
using Infragistics.Win.SupportDialogs.FilterUIProvider;

private void Form1_Load(object sender, EventArgs e)
{
    // Disable OS themes so that we have more control over the appearance of the buttons
    this.ultraGridFilterUIProvider1.UseOsThemes = DefaultableBoolean.False;

    // Set the OK button to green and the Cancel button to red
    FilterUIProviderButtonSettings buttonSettings = this.ultraGridFilterUIProvider1.ButtonSettings;
    buttonSettings.OkAppearance.BackColor = Color.Green;
    buttonSettings.CancelAppearance.BackColor = Color.Red;                       
}
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also