You are not logged in.
This forum has been archived and no longer accepts new user registrations. Please report your questions, problems, and feedback to the issue page of ReoGrid on GitHub. Thank you for your cooperation.
Pages: 1
Topic closed
I cant find these symbols in the recent WPF release of REOGrid.
All I see in the unvell.ReoGrid.CellTypes
namespace is something called CellTypeManager ?
Offline
Built-in cell bodies not supported in WPF edition.
https://reogrid.net/v0-8-7/wpf-support/
Maybe some simple bodies will get supported in future versions, small possibility.
Last edited by Jingwood (2015-10-19 10:47:43)
Offline
To be clear, if I am making my own custom cells in WPF, do I still use CellBody?
Offline
Also, is it possible to use WPF controls in cells or do i need to code them myself with primitve draw and on input calls?
Offline
Using WPF controls inside cell is not supported, but making your own custom cell body is supported. You could do owner drawing to paint anything inside cell. There is an example:
class MyCellBody : unvell.ReoGrid.CellTypes.CellBody
{
public override void OnPaint(Rendering.CellDrawingContext dc)
{
dc.Graphics.DrawRectangle(Graphics.SolidColor.Red, this.Bounds);
}
}
Add custom cell:
worksheet.SetCellBody("A1", new MyCellBody());
The above code works, but it requires adding reference System.Drawing.DLL, we will remove this dependency from next release.
Last edited by Jingwood (2015-10-19 10:44:02)
Offline
Hi jeffpk, we have release the latest 0.9.2.0 (including WPF edition). This version fixed some minor bugs in WPF and removed the dependency of System.Drawing.DLL, please feel free to let us know your problems.
Last edited by Jingwood (2015-11-01 07:58:10)
Offline
Pages: 1
Topic closed