| View previous topic :: View next topic |
| Author |
Message |
thierry Novice
Joined: 18 Jul 2011 Posts: 3
|
Posted: Mon Jul 18, 2011 12:56 pm Post subject: Implement an XElement |
|
|
Hello.
Where could I find some info concerning the implementation of an XElement class.
For the moment I have used the event "OnCreateValueElement" to instantiate my custom XElement.
However I don't know how to pass parameters to my custom XElement. It seems that XElements must have an empty constructor so that they can be easily recreated. But then how can I assign property to my XElement ?
What about ICreator ? And TagName ? Is it possible to specify my custom XElement directly in a model ?
Cheers
Thierry |
|
| Back to top |
|
 |
Admin Site Admin
Joined: 07 Nov 2005 Posts: 272
|
Posted: Tue Jul 19, 2011 2:48 pm Post subject: |
|
|
Since you create it yourself you can set the parameters you need in any way.
The only requirement for XElement is that it must store its value into Value property and show to use the text from Text property.
As for ICreate and TagName: they are necessary only for connection between visual elements (such as XElement and all its descendants) and value editors defined in data model. |
|
| Back to top |
|
 |
|