ReoGrid Forum

Fast and powerful .NET Spreadsheet Component

You are not logged in.

Announcement

This forum no longer accepts new user registrations, please report your question, problem and feedback to the issue page of ReoGrid on Github. Thanks for your cooperation.

https://github.com/unvell/ReoGrid/issues

#1 2015-10-18 02:36:48

jeffpk
Member
Registered: 2015-08-13
Posts: 10

Standard Cell Bodies in WPF?

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

#2 2015-10-18 12:28:40

Jing
Moderator
From: jing at reogrid.net
Registered: 2014-06-03
Posts: 615

Re: Standard Cell Bodies in WPF?

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 Jing (2015-10-19 10:47:43)

Offline

#3 2015-10-18 19:57:19

jeffpk
Member
Registered: 2015-08-13
Posts: 10

Re: Standard Cell Bodies in WPF?

To be clear, if I am making my own custom cells in WPF, do I still use CellBody?

Offline

#4 2015-10-18 22:39:43

jeffpk
Member
Registered: 2015-08-13
Posts: 10

Re: Standard Cell Bodies in WPF?

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

#5 2015-10-19 10:43:18

Jing
Moderator
From: jing at reogrid.net
Registered: 2014-06-03
Posts: 615

Re: Standard Cell Bodies in WPF?

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 Jing (2015-10-19 10:44:02)

Offline

#6 2015-11-01 07:57:51

Jing
Moderator
From: jing at reogrid.net
Registered: 2014-06-03
Posts: 615

Re: Standard Cell Bodies in WPF?

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.

https://reogrid.net/download/

Last edited by Jing (2015-11-01 07:58:10)

Offline

Board footer

Powered by FluxBB