自PropertyGridEditor等Web部件编辑区? [英] Custom PropertyGridEditor etc. for web part edit zone?

查看:97
本文介绍了自PropertyGridEditor等Web部件编辑区?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要更改默认的编辑器部件的外观,以及我如何去这样做,因为似乎有关于这个问题的令人惊讶的缺乏文档有点不确定。

I want to change the appearance of the default editor parts, and am a little unsure of how to go about doing this, as there seems to be a surprising lack of documentation on the subject.

我已经能够创建一个自定义的声明目录同一些试验和错误,并覆盖RenderCatalogPart方法,现在希望做我的AppearanceEditor和PropertyGridEditor类似的东西。我试着只是改变使用CSS编辑器部分的风格,但他们已经安排到这是不可能摆脱的表。它甚至不能只是采取类的,因为类密封。所以我基本上坚持了有我自己从头开始写的,我想问题如下:

I've been able to create a custom declarative catalog with some trial and error and overriding the RenderCatalogPart method, and now wish to do something similar with my AppearanceEditor and PropertyGridEditor. I've tried just changing the style of the editor parts using CSS, but they are already arranged into tables which are impossible to get rid of. It's not even possible to just take the class as is, because the classes are sealed. So I'm basically stuck with having to write my own from scratch, I guess the questions are as follows:

1)我怎样去获得的,我需要令控制器的信息?

1) How do I go about getting the information on the controls I need to render?

2),根据该文件,我需要重写ApplyChagnes和SyncChanges方法 - 但我找不到什么其实我需要把这些方法中的任何信息。

2) According to the documentation, I need to override the ApplyChagnes and SyncChanges methods - but I can't find any information on what I actually need to put in these methods.

3)在一个类似的说明,是可以改变的EditorPart本身的布局,从而使AppearanceEditor,BehaviourEditor等显示侧由端,而不是在海誓山盟顶部?

3) On a similar note, is it possible to change the layout of the EditorPart itself, so that the AppearanceEditor, BehaviourEditor etc. are displayed side-by-side instead of on top of eachother?

4)是否有什么办法可以在页面上显示的地方,甚至在浏览模式的页面目录?我很喜欢用它作为最小化地区,在那里用户可以发送他们不想要立即Web部件。目前,他们返回到页面目录和用户往往只需添加一个新的一部分,而不是。我知道我可以在页面,这是伟大的多个目录区,但它只有在目录方式显示出来。

4) Is there any way to have the page catalog displayed somewhere on the page, even in browse mode? I'd quite like to use it as a 'minimised' area, where users can send web parts they don't want immediately. At the moment they go back into the page catalog and users tend to just add a new part instead. I know that I can have multiple catalog zones on the page, which is great, but it only shows up in catalog mode.

任何帮助将非常AP preciated。

Any help would be very much appreciated.

推荐答案

我没有得到这里的任何答复,但我能想出一个办法,做一些这些。

I didn't get any replies here, but I was able to figure out a way to do some of these.


  1. 在最后,我决定使用反射来获得,这是WebBrowsable Web部件每个公共属性,并找出什么样的控制,从类型显示。

  2. 的ApplyChanges()和SyncChanges()方法,本质上只是坚持从页面个性化斑点,反之亦然的变化。这显示在网页上的一些控件和值映射到在这些方法中的Web部件的属性的问题。

  3. 我不认为这是可能的,而无需编写你自己的。

  4. 一直没能做到这一点,但我不想象,它可能黯然。

这篇关于自PropertyGridEditor等Web部件编辑区?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆