Use the SetDefaultBrushTable method to change a single item of a palette.
int SetDefaultBrushTable(string graphcontrol, int index, string brushDefinitionFile)
SetDefaultBrushTable("gr_1", 2, "palette,xaml")