iv’e got a grid with 2 rows and 12 columns .
i need to incorporate a style which will draw a triangle for in each cell
total of 24 cells
the geometry for the triangle for the example :
M 0, 0 L 25, 250 L 50, 0 z
how could i design and use a style for with this shape in the background each cell in the Grid?
the rows height is approximately 250 and
column width is approximately 50

alternatively , each cell contains a stackpanel
so a different solution would be to draw it as the background of a stackpanel how could i draw the shape as the background of the stackpanel ?
All you need to do is create a style template for your requirements and apply it to the DataGrid. So basically all you do is add your shape to the template for the DefaultDataGridCellStyle. There’s a couple ways of doing this I know of but it’s much easier with Expression Blend. Just right-click your datagrid in Blend, choose “Edit Additional Templates” -> Find the GridCell template and “Edit A Copy”, you can have it done minutes. Hope this helps!
Example using your path data for the triangle and the height/width set to your specs.
The style template (based off default gridcell template);
The ref;
Or if you literally meant just a cell to a default regular Grid;