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.
Can I get some code sample for this..?
You can try getting the color of the Form as R,G,B bytes and then creating a brush from a color with these values.