Click here to Skip to main content
15,893,814 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: Best Way To Do This Pin
SledgeHammer014-May-11 14:19
SledgeHammer014-May-11 14:19 
AnswerRe: Best Way To Do This Pin
Renat Khabibulin4-May-11 16:55
Renat Khabibulin4-May-11 16:55 
AnswerRe: Best Way To Do This Pin
RichardGrimmer20-May-11 3:58
RichardGrimmer20-May-11 3:58 
QuestionWCF RIA / MVVM Question Pin
eddieangel4-May-11 11:33
eddieangel4-May-11 11:33 
AnswerRe: WCF RIA / MVVM Question Pin
Pete O'Hanlon4-May-11 12:25
mvePete O'Hanlon4-May-11 12:25 
QuestionHow do I databind a ListView to a property in child collection in WPF? Pin
B2C4-May-11 3:01
B2C4-May-11 3:01 
AnswerRe: How do I databind a ListView to a property in child collection in WPF? Pin
RichardGrimmer4-May-11 4:33
RichardGrimmer4-May-11 4:33 
GeneralRe: How do I databind a ListView to a property in child collection in WPF? Pin
B2C4-May-11 5:15
B2C4-May-11 5:15 
Hmmm...I didn't think about doing it that way. Indeed that does work.
public class State
{
	public State()
	{
	}

	public String StateName
	{ get; set; }

	public String NickName
	{ get; set; }
}

public class County
{
	public County()
	{
		State = new State();
	}

	public String CountyName
	{ get; set; }

	public String Population
	{ get; set; }

	public State State
	{ get; set; }
}

<ListView ItemsSource="{Binding}">
       <ListView.View>
           <GridView>
               <GridViewColumn Header=" State Name " DisplayMemberBinding="{Binding State.StateName}"/>
               <GridViewColumn Header=" County Name " DisplayMemberBinding="{Binding CountyName}"/>
               <GridViewColumn Header=" Population " DisplayMemberBinding="{Binding Population}"/>
           </GridView>
       </ListView.View>
</ListView>

My only concern is that now I will replicate State objects in memory unnecessarily. Kinda seems like I'm changing my entities to suit the presentation of the data. Good idea though and certainly a possibility. Especially because the client requirements on this are fairly rigid. You've got my wheels turning again.
GeneralRe: How do I databind a ListView to a property in child collection in WPF? Pin
SledgeHammer014-May-11 7:00
SledgeHammer014-May-11 7:00 
GeneralRe: How do I databind a ListView to a property in child collection in WPF? Pin
AspDotNetDev4-May-11 7:59
protectorAspDotNetDev4-May-11 7:59 
AnswerRe: How do I databind a ListView to a property in child collection in WPF? Pin
Ian Shlasko4-May-11 5:40
Ian Shlasko4-May-11 5:40 
QuestionPrintable Area's Size - SL Printing API Pin
jadughar4-May-11 0:38
jadughar4-May-11 0:38 
AnswerRe: PageVisual's Size - SL Printing API Pin
Pete O'Hanlon4-May-11 2:18
mvePete O'Hanlon4-May-11 2:18 
GeneralRe: PageVisual's Size - SL Printing API Pin
jadughar4-May-11 4:24
jadughar4-May-11 4:24 
QuestionMVVM Pin
arkiboys3-May-11 22:50
arkiboys3-May-11 22:50 
AnswerRe: MVVM Pin
Dave Kerr3-May-11 23:09
mentorDave Kerr3-May-11 23:09 
GeneralRe: MVVM Pin
arkiboys3-May-11 23:19
arkiboys3-May-11 23:19 
QuestionSilverlight Compatibility with existing C#2.0 libraries Pin
insanechingi3-May-11 22:14
insanechingi3-May-11 22:14 
AnswerRe: Silverlight Compatibility with existing C#2.0 libraries Pin
Pete O'Hanlon3-May-11 23:14
mvePete O'Hanlon3-May-11 23:14 
QuestionSilverlight best Printing solution ??? Pin
jadughar2-May-11 4:08
jadughar2-May-11 4:08 
AnswerRe: Silverlight best Printing solution ??? Pin
Pete O'Hanlon2-May-11 9:40
mvePete O'Hanlon2-May-11 9:40 
AnswerRe: Silverlight best Printing solution ??? Pin
Mycroft Holmes2-May-11 13:10
professionalMycroft Holmes2-May-11 13:10 
GeneralRe: Silverlight best Printing solution ??? Pin
jadughar3-May-11 23:36
jadughar3-May-11 23:36 
AnswerRe: Silverlight best Printing solution ??? Pin
Abhinav S2-May-11 18:59
Abhinav S2-May-11 18:59 
GeneralRe: Silverlight best Printing solution ??? Pin
jadughar2-May-11 22:32
jadughar2-May-11 22:32 

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.