Korzh.com developer tools forums :: View topic - Implement an XElement
Korzh.com
home : Community forums  FAQFAQ   SearchSearch  |  RegisterRegister  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Implement an XElement

 
Post new topic   Reply to topic    Korzh.com developer tools Forum Index -> EasyQuery ASP.NET
View previous topic :: View next topic  
Author Message
thierry
Novice


Joined: 18 Jul 2011
Posts: 3

PostPosted: Mon Jul 18, 2011 12:56 pm    Post subject: Implement an XElement Reply with quote

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
View user's profile Send private message
Admin
Site Admin


Joined: 07 Nov 2005
Posts: 272

PostPosted: Tue Jul 19, 2011 2:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Korzh.com developer tools Forum Index -> EasyQuery ASP.NET All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group