Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
524
Is there is any way to Find exact background color of Form.
posted

I am using xamDataGrid on windows form. Background of  form is LigthGray(I dont know the exact name of color). And I have to set  xamDataGrid background color,like that of Form's background color.

 Now I am using following code

 

Dim myStyle As System.Windows.Style = New System.Windows.Style(GetTypeCellValuePresenter))

myStyle.Setters.Add(

New System.Windows.Setter(CellValuePresenter.BackgroundProperty, System.Windows.Media.Brushes.LightGray)).

But the Form background color is not exact LightGray.Is there is any way to Find exact background color of Form.