Skip to content

Instantly share code, notes, and snippets.

@albertromkes
Created March 18, 2013 14:28
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
ViewModel with XPM Attributes
[InlineEditable]
public class Article : IArticle
{
[InlineEditableField(FieldName="title")]
public string Title {get;set;}
[InlineEditableField(FieldName="short_intro")]
public string Summary {get;set;}
private IList<string> _relatedLinks = new List<string>();
[InlineEditableField(FieldName="related_links")]
public IList<string> RelatedLinks
{
get
{
return _relatedLinks;
}
set
{
_relatedLinks = value;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment