Click here to Skip to main content
15,891,981 members
Home / Discussions / WPF
   

WPF

 
QuestionSilverlight Fun Badge Pin
Raj Lal6-Nov-09 11:39
professionalRaj Lal6-Nov-09 11:39 
AnswerRe: Silverlight Fun Badge Pin
Mark Salsbery7-Nov-09 7:35
Mark Salsbery7-Nov-09 7:35 
QuestionTCP Cross Domain Access Policy Pin
earlgraham6-Nov-09 9:31
earlgraham6-Nov-09 9:31 
AnswerRe: TCP Cross Domain Access Policy Pin
Mark Salsbery6-Nov-09 9:43
Mark Salsbery6-Nov-09 9:43 
QuestionTrust Not Granted (WPF Browser application) C# Pin
42774806-Nov-09 6:41
42774806-Nov-09 6:41 
AnswerRe: Trust Not Granted (WPF Browser application) C# Pin
42774806-Nov-09 8:16
42774806-Nov-09 8:16 
QuestionWPF DataGrid Upper left corner, what is it? Pin
DahrkDaiz6-Nov-09 3:33
DahrkDaiz6-Nov-09 3:33 
AnswerRe: WPF DataGrid Upper left corner, what is it? Pin
Mark Salsbery6-Nov-09 10:21
Mark Salsbery6-Nov-09 10:21 
GeneralRe: WPF DataGrid Upper left corner, what is it? Pin
DahrkDaiz10-Nov-09 3:57
DahrkDaiz10-Nov-09 3:57 
GeneralRe: WPF DataGrid Upper left corner, what is it? Pin
Mark Salsbery10-Nov-09 6:24
Mark Salsbery10-Nov-09 6:24 
QuestionWPF and ASP.NET Pin
rastaVnuce5-Nov-09 23:46
rastaVnuce5-Nov-09 23:46 
AnswerRe: WPF and ASP.NET Pin
Pete O'Hanlon6-Nov-09 0:03
mvePete O'Hanlon6-Nov-09 0:03 
GeneralRe: WPF and ASP.NET Pin
rastaVnuce6-Nov-09 0:58
rastaVnuce6-Nov-09 0:58 
AnswerRe: WPF and ASP.NET Pin
Christian Graus6-Nov-09 23:42
protectorChristian Graus6-Nov-09 23:42 
AnswerRe: WPF and ASP.NET Pin
Steven Kirk8-Nov-09 23:30
Steven Kirk8-Nov-09 23:30 
QuestionPosition of UIElement Pin
sadas232341s5-Nov-09 19:48
sadas232341s5-Nov-09 19:48 
AnswerRe: Position of UIElement Pin
Mark Salsbery6-Nov-09 9:50
Mark Salsbery6-Nov-09 9:50 
QuestionSilver light application problem [modified] Pin
rag_Singh5-Nov-09 19:26
rag_Singh5-Nov-09 19:26 
AnswerRe: Silver light application problem Pin
Mark Salsbery6-Nov-09 9:55
Mark Salsbery6-Nov-09 9:55 
AnswerRe: Silver light application problem Pin
rag_Singh8-Nov-09 18:21
rag_Singh8-Nov-09 18:21 
QuestionFundamentals: Compiling a Silverlight Application using Csc.exe on the command line Pin
The OldManChild5-Nov-09 13:28
The OldManChild5-Nov-09 13:28 
AnswerRe: Fundamentals: Compiling a Silverlight Application using Csc.exe on the command line Pin
Mark Salsbery6-Nov-09 9:59
Mark Salsbery6-Nov-09 9:59 
GeneralRe: Fundamentals: Compiling a Silverlight Application using Csc.exe on the command line Pin
The OldManChild6-Nov-09 18:54
The OldManChild6-Nov-09 18:54 
QuestionBinding custom objects collection to ListBox in WPF?? Pin
mittalpa5-Nov-09 8:25
mittalpa5-Nov-09 8:25 
Hi Thanks for putting this example. But, everywhere I find example of ArrayList containg strings. Is there a way to bind a collection of custom objects?Please advise.

Something like this instead of string collection :

public AlbumCollection GetAlbums()
{
var albumCollection = new AlbumCollection();
albumCollection.Album.Add(new Album() { Description = "A1 Desc", Name = "A1 Name", Id = 1 });
albumCollection.Album.Add(new Album() { Description = "A2 Desc", Name = "A2 Name", Id = 2 });
albumCollection.Album.Add(new Album() { Description = "A3 Desc", Name = "A3 Name", Id = 3 });
albumCollection.Album.Add(new Album() { Description = "A4 Desc", Name = "A4 Name", Id = 4 });
return albumCollection;
}

--------------

public partial class AlbumCollection
{

[EditorBrowsable(EditorBrowsableState.Never)]
private List<Album> albumField;

[System.Xml.Serialization.XmlElementAttribute("Album")]
public List<Album> Album
{
get
{
if ((this.albumField == null))
{
this.albumField = new List<Album>();
}
return this.albumField;
}
set
{
this.albumField = value;
}
}
}

public partial class Album
{

[EditorBrowsable(EditorBrowsableState.Never)]
private List<Document> documentField;

public int Id { get; set; }

public string Name { get; set; }

public string Description { get; set; }


[System.Xml.Serialization.XmlElementAttribute("Document")]
public List<Document> Document
{
get
{
if ((this.documentField == null))
{
this.documentField = new List<Document>();
}
return this.documentField;
}
set
{
this.documentField = value;
}
}
}


Please advise. Thanks
Pankaj

Follow your goals, Means will follow you ---Gandhi---

AnswerRe: Binding custom objects collection to ListBox in WPF?? Pin
Mark Salsbery5-Nov-09 9:42
Mark Salsbery5-Nov-09 9:42 

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.