How do I set the color for CustomVertex.Transformed?

When I use CustomVertex.TransformedColored.It have a color proprtty.

So I can easy set the color for every point. But because I want to draw a lot of triangles using same color.

so I use CustomVertex.Transformed in order to save the memory.but when I draw they.(ps:use DrawIndexedPrimitives()) .It show white color.

Please someone tell me how to set a color for every triangles .

[404 byte] By [hackbabu] at [2007-12-23]
# 1
Try setting a material to be the color you want. You may have to enable lighting to get materials to work.
TheZMan at 2007-8-30 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: DirectX 101...
# 2

Since pre-transformed coordinates do not use lighting, you will have to apply your color using the texture blending stages. Try this:

device.RenderState.TextureFactor = (int) 0xff0000; // RGB 255,0,0
device.TextureState[0].ColorOperation = TextureOperation.SelectArg1;
device.TextureState[0].ColorArgument1 = TextureArgument.TFactor;

RobertDunlop at 2007-8-30 > top of Msdn Tech,Game Technologies: DirectX, XNA, XACT, etc.,Game Technologies: DirectX 101...