Click here to Skip to main content
15,850,359 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: Position of UIElement Pin
Mark Salsbery6-Nov-09 10:50
Mark Salsbery6-Nov-09 10:50 
QuestionSilver light application problem [modified] Pin
rag_Singh5-Nov-09 20:26
rag_Singh5-Nov-09 20:26 
AnswerRe: Silver light application problem Pin
Mark Salsbery6-Nov-09 10:55
Mark Salsbery6-Nov-09 10:55 
AnswerRe: Silver light application problem Pin
rag_Singh8-Nov-09 19:21
rag_Singh8-Nov-09 19:21 
QuestionFundamentals: Compiling a Silverlight Application using Csc.exe on the command line Pin
The OldManChild5-Nov-09 14:28
The OldManChild5-Nov-09 14:28 
AnswerRe: Fundamentals: Compiling a Silverlight Application using Csc.exe on the command line Pin
Mark Salsbery6-Nov-09 10:59
Mark Salsbery6-Nov-09 10:59 
GeneralRe: Fundamentals: Compiling a Silverlight Application using Csc.exe on the command line Pin
The OldManChild6-Nov-09 19:54
The OldManChild6-Nov-09 19:54 
QuestionBinding custom objects collection to ListBox in WPF?? Pin
mittalpa5-Nov-09 9:25
mittalpa5-Nov-09 9: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 10:42
Mark Salsbery5-Nov-09 10:42 
QuestionNew to WPF - Would this be easy to implement? Pin
AksharRoop4-Nov-09 20:36
AksharRoop4-Nov-09 20:36 
AnswerRe: New to WPF - Would this be easy to implement? Pin
Mark Salsbery5-Nov-09 8:24
Mark Salsbery5-Nov-09 8:24 
QuestionRe: New to WPF - Would this be easy to implement? Pin
AksharRoop5-Nov-09 21:09
AksharRoop5-Nov-09 21:09 
AnswerRe: New to WPF - Would this be easy to implement? Pin
Mark Salsbery6-Nov-09 11:09
Mark Salsbery6-Nov-09 11:09 
GeneralRe: New to WPF - Would this be easy to implement? Pin
AksharRoop8-Nov-09 20:11
AksharRoop8-Nov-09 20:11 
Questionproblem with WPF graph control Pin
ranganaMIT4-Nov-09 18:18
ranganaMIT4-Nov-09 18:18 
AnswerRe: problem with WPF graph control Pin
hb521342144-Nov-09 19:04
hb521342144-Nov-09 19:04 
QuestionXAML TEmplate Pin
Saiyed Alam4-Nov-09 17:08
Saiyed Alam4-Nov-09 17:08 
AnswerRe: XAML TEmplate Pin
Richard MacCutchan5-Nov-09 0:20
mveRichard MacCutchan5-Nov-09 0:20 
QuestionHow to find a height of a Grid Row at runtime? Pin
dbrenth4-Nov-09 8:40
dbrenth4-Nov-09 8:40 
AnswerRe: How to find a height of a Grid Row at runtime? Pin
dbrenth4-Nov-09 8:49
dbrenth4-Nov-09 8:49 
GeneralRe: How to find a height of a Grid Row at runtime? Pin
d m patel4-Jan-10 23:24
d m patel4-Jan-10 23:24 
QuestionRe: How to find a height of a Grid Row at runtime? Pin
d m patel4-Jan-10 23:01
d m patel4-Jan-10 23:01 
AnswerRe: How to find a height of a Grid Row at runtime? Pin
dbrenth5-Jan-10 6:26
dbrenth5-Jan-10 6:26 
QuestionHow to animate the ListBoxItems in WPF. Pin
wasimsharp3-Nov-09 18:20
wasimsharp3-Nov-09 18:20 
Questiondrag image Pin
RongNK3-Nov-09 14:31
RongNK3-Nov-09 14:31 

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.