Click here to Skip to main content
15,898,222 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: DragMove() method for other elements ? Pin
User 2710098-Jan-09 1:24
User 2710098-Jan-09 1:24 
QuestionIntegrating Onlinehelp(.chm file) with xbap application Pin
hemakrishnan5-Jan-09 19:19
hemakrishnan5-Jan-09 19:19 
QuestionHow to customize built in Commands in WPF C# Pin
Emir Gracanin5-Jan-09 16:11
Emir Gracanin5-Jan-09 16:11 
AnswerRe: How to customize built in Commands in WPF C# Pin
Jani Giannoudis5-Jan-09 20:12
mvaJani Giannoudis5-Jan-09 20:12 
QuestionHow to retrieve object from a web page to create WPF dynamically Pin
vsaratkar5-Jan-09 15:16
vsaratkar5-Jan-09 15:16 
QuestionDyanmically creating tab items with similar input fields to the existing tab page Pin
atl_5-Jan-09 11:35
atl_5-Jan-09 11:35 
AnswerRe: Dyanmically creating tab items with similar input fields to the existing tab page Pin
ColinM1235-Jan-09 15:56
ColinM1235-Jan-09 15:56 
QuestionHow to correctly bind to BLL objects in WPF Pin
darthBug5-Jan-09 11:23
darthBug5-Jan-09 11:23 
Hello,

I used this MSDN guide (http://msdn.microsoft.com/en-us/library/aa581779.aspx[^]) to build BLL for my application. The DAL behind that BLL is a TypedDataSet.

To explain what i'm trying to achive i'll use two tables from the database:

Authors Table
-------------
AuthorID
Name
RankID

Authors Table
-------------
RankID
RankTitle

In the database i have a relation between these tables.

Following the mentioned MSDN guide i created BL objects for each table that return typed data tables, for example:
AuthorsBL.GetAuthors() returns AuthorsDataTable, AuthorRanksBL.GetAuthorRanks() reutrn AuthorRanksDataTable.

What i'm trying to figure out is how to create a window in WPF with a list box that lists all authors, a text box to edit the author's name and a combobox to edit/select the author's rank.

I can bind the listbox to the authors object and it shows the records, i can bind the combobox to the AuthorRanks table and it shows all records but i can't find a way to do so that when the selection in the listbox changes the combobox's selection will update too. I'm trying to do this the "right" way, as i see it, by using the XAML properties like DataContext, ItemSource, SelectedValue and SelectedValue path.
In the end i need to have a "Save" button to save all the changes so correct data binding is very important for me.

I'm not sure how to approach this, maybe the BLL should be built in a different way for WPF or i need some extra configuration in XAML.

Any help, explanation or a link to a guide will be most appriciated!

Thanks,

darthBug

Join the dark side of the code

QuestionDo we have a something like <i>z-index</i> (HTML) in XAML ? Pin
Mohammad Dayyan5-Jan-09 10:03
Mohammad Dayyan5-Jan-09 10:03 
AnswerRe: Do we have a something like z-index (HTML) in XAML ? Pin
Pete O'Hanlon5-Jan-09 10:08
mvePete O'Hanlon5-Jan-09 10:08 
GeneralRe: Do we have a something like z-index (HTML) in XAML ? Pin
Mohammad Dayyan5-Jan-09 10:12
Mohammad Dayyan5-Jan-09 10:12 
GeneralRe: Do we have a something like z-index (HTML) in XAML ? Pin
Pete O'Hanlon5-Jan-09 10:33
mvePete O'Hanlon5-Jan-09 10:33 
AnswerRe: Do we have a something like z-index (HTML) in XAML ? Pin
Mark Salsbery5-Jan-09 11:23
Mark Salsbery5-Jan-09 11:23 
AnswerRe: Do we have a something like z-index (HTML) in XAML ? Pin
Insincere Dave5-Jan-09 13:26
Insincere Dave5-Jan-09 13:26 
QuestionSilverlight using Visual Studio 2005? Pin
Bottomless Wisdom5-Jan-09 5:54
Bottomless Wisdom5-Jan-09 5:54 
AnswerRe: Silverlight using Visual Studio 2005? Pin
ColinM1235-Jan-09 12:57
ColinM1235-Jan-09 12:57 
AnswerRe: Silverlight using Visual Studio 2005? Pin
Aman Bhullar6-Jan-09 5:26
Aman Bhullar6-Jan-09 5:26 
AnswerRe: Silverlight using Visual Studio 2005? Pin
Mohammad Dayyan19-Jan-09 19:39
Mohammad Dayyan19-Jan-09 19:39 
AnswerRe: Silverlight using Visual Studio 2005? Pin
Michael Sync29-Jan-09 2:39
Michael Sync29-Jan-09 2:39 
QuestionSilver Light Tools Information Required Pin
mr_muskurahat5-Jan-09 1:05
mr_muskurahat5-Jan-09 1:05 
AnswerRe: Silver Light Tools Information Required Pin
Lev Danielyan5-Jan-09 20:49
Lev Danielyan5-Jan-09 20:49 
GeneralRe: Silver Light Tools Information Required Pin
mr_muskurahat5-Jan-09 23:43
mr_muskurahat5-Jan-09 23:43 
GeneralRe: Silver Light Tools Information Required Pin
Lev Danielyan6-Jan-09 0:05
Lev Danielyan6-Jan-09 0:05 
GeneralRe: Silver Light Tools Information Required Pin
mr_muskurahat6-Jan-09 0:24
mr_muskurahat6-Jan-09 0:24 
GeneralRe: Silver Light Tools Information Required Pin
Lev Danielyan6-Jan-09 1:16
Lev Danielyan6-Jan-09 1:16 

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.