Click here to Skip to main content
15,921,716 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: Binding Commands to Events? Pin
Niladri_Biswas6-Jun-09 16:00
Niladri_Biswas6-Jun-09 16:00 
QuestionI marked My property with [DataMember] and I still have an exception Pin
Doria22862-Jun-09 2:56
Doria22862-Jun-09 2:56 
AnswerRe: I marked My property with [DataMember] and I still have an exception Pin
Pete O'Hanlon2-Jun-09 3:19
mvePete O'Hanlon2-Jun-09 3:19 
GeneralRe: I marked My property with [DataMember] and I still have an exception Pin
Doria22862-Jun-09 4:24
Doria22862-Jun-09 4:24 
GeneralRe: I marked My property with [DataMember] and I still have an exception Pin
Pete O'Hanlon2-Jun-09 4:37
mvePete O'Hanlon2-Jun-09 4:37 
GeneralRe: I marked My property with [DataMember] and I still have an exception Pin
Doria22862-Jun-09 5:02
Doria22862-Jun-09 5:02 
GeneralRe: I marked My property with [DataMember] and I still have an exception Pin
Mark Salsbery2-Jun-09 6:13
Mark Salsbery2-Jun-09 6:13 
GeneralRe: I marked My property with [DataMember] and I still have an exception Pin
Doria22862-Jun-09 22:46
Doria22862-Jun-09 22:46 
The class Y doesn't inherit from the interface X, May be the confusion come because I gived the same identifier "data" for two different things!

I create the class Y just to define a new type (structured type) wich is not just composed from List<object> but other DataMembers such as string, int and a new other type Z, wich I create exactly in the same way as Y
and in my interface X, I have a DataMember (a property) wich type is List<y>.

Perhaps I not very Bright to express what I mean, therefore I detail the code of class Y and class Z down:

[DataContract]
public class Y
{
[DataMember]
public int id {get; set;}

[DataMember]
public string Str {get; set;}

[DataMember]
public Z NewType {get; set;}

[DataMember]
Public List<object> Data {get; set;}
}

[DataContract]
public class Z
{
[DataMember]
public int idz {get; set;}

[DataMember]
public string Strz {get; set;}

}


Thank you in advance Mark Salsbery ! Smile | :)
GeneralRe: I marked My property with [DataMember] and I still have an exception Pin
Pete O'Hanlon2-Jun-09 22:55
mvePete O'Hanlon2-Jun-09 22:55 
GeneralRe: I marked My property with [DataMember] and I still have an exception Pin
Doria22863-Jun-09 0:05
Doria22863-Jun-09 0:05 
GeneralRe: I marked My property with [DataMember] and I still have an exception Pin
Pete O'Hanlon3-Jun-09 0:14
mvePete O'Hanlon3-Jun-09 0:14 
GeneralRe: I marked My property with [DataMember] and I still have an exception Pin
Doria22863-Jun-09 0:19
Doria22863-Jun-09 0:19 
GeneralRe: I marked My property with [DataMember] and I still have an exception Pin
Pete O'Hanlon3-Jun-09 0:30
mvePete O'Hanlon3-Jun-09 0:30 
QuestionWCF DataContract Structs Pin
Jammer2-Jun-09 1:17
Jammer2-Jun-09 1:17 
AnswerRe: WCF DataContract Structs Pin
Pete O'Hanlon2-Jun-09 1:34
mvePete O'Hanlon2-Jun-09 1:34 
GeneralRe: WCF DataContract Structs Pin
Jammer2-Jun-09 8:10
Jammer2-Jun-09 8:10 
QuestionDatabinding? Pin
#realJSOP1-Jun-09 23:51
professional#realJSOP1-Jun-09 23:51 
AnswerRe: Databinding? Pin
Pete O'Hanlon2-Jun-09 0:04
mvePete O'Hanlon2-Jun-09 0:04 
GeneralRe: Databinding? Pin
#realJSOP2-Jun-09 0:08
professional#realJSOP2-Jun-09 0:08 
GeneralRe: Databinding? Pin
ABitSmart2-Jun-09 0:39
ABitSmart2-Jun-09 0:39 
GeneralRe: Databinding? Pin
Pete O'Hanlon2-Jun-09 0:40
mvePete O'Hanlon2-Jun-09 0:40 
GeneralRe: Databinding? Pin
#realJSOP2-Jun-09 2:25
professional#realJSOP2-Jun-09 2:25 
GeneralRe: Databinding? Pin
Pete O'Hanlon2-Jun-09 2:32
mvePete O'Hanlon2-Jun-09 2:32 
GeneralRe: Databinding? Pin
#realJSOP2-Jun-09 3:11
professional#realJSOP2-Jun-09 3:11 
GeneralRe: Databinding? Pin
Pete O'Hanlon2-Jun-09 3:16
mvePete O'Hanlon2-Jun-09 3:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.