ReoGrid Forum

Fast and powerful .NET Spreadsheet Component

You are not logged in.

Announcement

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.

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

#1 2016-04-14 08:54:40

user180
Member
Registered: 2016-04-14
Posts: 1

[WPF]CELL里能添加用户控件吗?

现在的CELL里只有文本、按钮、图片这些,我想在里面添加一个用户控件,不知道能不能实现这个功能?

我的设想是控件继承ICellBody,worksheet[x, y] = new UserControl();或者控件继承IDrawingObject,worksheet[0].FloatingObjects.Add(UserControl)

不知道是否可行?

Offline

#2 2016-04-14 13:18:36

oops
Moderator
Registered: 2015-11-03
Posts: 54

Re: [WPF]CELL里能添加用户控件吗?

现在不能放 .NET 的控件,因为有 Freeze、缩放、打印这些功能,另外还有性能问题。ReoGrid Pro 将在以后增加更多 CellType 来实现各种输入控制,类似用户控件的功能,比如数字 textbox 等。其他自定义控件可以通过实现 ICellBody 和 IDrawingObject 实现。

Offline

Board footer

Powered by FluxBB