Click here to Skip to main content
16,012,061 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: Binding Commands to Events? Pin
Pete O'Hanlon3-Jun-09 3:07
mvePete O'Hanlon3-Jun-09 3:07 
GeneralRe: Binding Commands to Events? [modified] Pin
Niladri_Biswas3-Jun-09 17:24
Niladri_Biswas3-Jun-09 17:24 
GeneralRe: Binding Commands to Events? Pin
Pete O'Hanlon3-Jun-09 21:40
mvePete O'Hanlon3-Jun-09 21:40 
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 
The actual service contract is defined as an interface like this:
[ServiceContract]
public interface IMyInterface
{
  [OperationContract]
  List<int> DoSomething(MyData item);
}
This contract will be implemented by a concrete class, and DoSomething will be visible to systems that consume the service. The DataContract is defined as a concrete class like this:
[DataContract]
public class MyData
{
  [DataMember]
  public int DataValue1 { get; set; }
  [DataMember]
  public string Identifier { get; set; }
}
Then we define the class that implements the service contract like this:
public class ImplementInterface : IMyInterface
{
  public List<int> DoSomething(MyData item)
  {
    return item.DataValue1;
  }
}


"WPF has many lovers. It's a veritable porn star!" - Josh Smith

As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.


My blog | My articles | MoXAML PowerToys | Onyx



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 
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 

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.