i have created a segment by using the following code.

<Path Fill="black" Margin="2.25,156,77.148,77" Data="M0.5,0.5 L23.877726,0.5 23.912098,1.4036387 C27.248646,67.155535 81.673632,119.5 148.25,119.5 214.82637,119.5 269.25135,67.155535 272.58789,1.4036387 L272.62229,0.5 297.1016,0.5 297.05591,1.7070469 C293.06088,80.831659 227.88823,143.5 147.75,143.5 74.074534,143.5 13.048166,90.531885 0.58002052,20.504782 L0.5,20.020197 z" />;

now from C#, i want to change the color of that segment from black to blue.

how can i make that change? please give me the solution with sample code.