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

WPF

 
GeneralRe: Data Binding - I Don't Get It Pin
AspDotNetDev27-May-10 14:10
protectorAspDotNetDev27-May-10 14:10 
GeneralRe: Data Binding - I Don't Get It Pin
Not Active27-May-10 14:41
mentorNot Active27-May-10 14:41 
GeneralRe: Data Binding - I Don't Get It Pin
AspDotNetDev27-May-10 14:52
protectorAspDotNetDev27-May-10 14:52 
GeneralRe: Data Binding - I Don't Get It Pin
#realJSOP27-May-10 23:36
mve#realJSOP27-May-10 23:36 
GeneralRe: Data Binding - I Don't Get It Pin
#realJSOP27-May-10 23:49
mve#realJSOP27-May-10 23:49 
GeneralRe: Data Binding - I Don't Get It Pin
AspDotNetDev28-May-10 7:50
protectorAspDotNetDev28-May-10 7:50 
GeneralRe: Data Binding - I Don't Get It Pin
#realJSOP30-May-10 0:52
mve#realJSOP30-May-10 0:52 
QuestionDataBinding of Edit form Pin
mumumumu26-May-10 22:37
mumumumu26-May-10 22:37 
Hi,

in a WPF application, I have two windows:
MainWindow - with the read-only ListView1 and the EditItem button
EditWindow - with Submit button.

After clicking on the EditItem button, a new EditWindow is shown, binded to the ListView1.SelectedValue. After clicking Submit, the updated values should be saved back to the underlying data classes and the ListView1 should be updated.

As far as I understand, the OneTime binding mode with explicit update is what I am looking for. Unfortunately, I have found no way how to set up the binding of the EditWindow in this OneTime mode (I do not see setting OneTime mode for each textbox as acceptable workaround).

How to open the EditWindow, bind it to the ListView1.SelectedValue and update it after clicking on the Submit button?

Currently, I have the following code for opening the EditWindow:

EditWindow frm = new EditWindow();
frm.Owner = this;
frm.DataContext = ListView1.SelectedValue;
frm.ShowDialog();


Thank you.
AnswerRe: DataBinding of Edit form Pin
theminidriver27-May-10 0:09
theminidriver27-May-10 0:09 
GeneralRe: DataBinding of Edit form Pin
mumumumu23-Jun-10 22:34
mumumumu23-Jun-10 22:34 
QuestionHow do I work with WIndows Forms in WPF? Pin
Xarzu26-May-10 9:14
Xarzu26-May-10 9:14 
AnswerRe: How do I work with WIndows Forms in WPF? Pin
Pete O'Hanlon26-May-10 10:05
mvePete O'Hanlon26-May-10 10:05 
QuestionSubclass Window? Pin
Kevin Marois26-May-10 7:54
professionalKevin Marois26-May-10 7:54 
AnswerRe: Subclass Window? Pin
Kunal Chowdhury «IN»26-May-10 17:53
professionalKunal Chowdhury «IN»26-May-10 17:53 
GeneralRe: Subclass Window? Pin
Kevin Marois27-May-10 4:59
professionalKevin Marois27-May-10 4:59 
AnswerRe: Subclass Window? Pin
Kunal Chowdhury «IN»27-May-10 5:11
professionalKunal Chowdhury «IN»27-May-10 5:11 
QuestionDisplay muti display data (DataGridCombobox) in WPF datagrid Pin
kartheesh26-May-10 3:35
kartheesh26-May-10 3:35 
QuestionIs there a Silverlight control for embeding into a ASP.NET Web form Pin
anderslundsgard25-May-10 7:51
anderslundsgard25-May-10 7:51 
AnswerRe: Is there a Silverlight control for embeding into a ASP.NET Web form Pin
Peace ON25-May-10 20:09
Peace ON25-May-10 20:09 
AnswerRe: Is there a Silverlight control for embeding into a ASP.NET Web form Pin
Abhinav S25-May-10 20:53
Abhinav S25-May-10 20:53 
QuestionNeed to remove the legend from the <chartingToolkit:PieSeries > Pin
srinandan..25-May-10 3:19
srinandan..25-May-10 3:19 
AnswerRe: Need to remove the legend from the Pin
Abhinav S25-May-10 3:33
Abhinav S25-May-10 3:33 
QuestionData Binding Multiple Values Pin
#realJSOP25-May-10 0:07
mve#realJSOP25-May-10 0:07 
AnswerRe: Data Binding Multiple Values Pin
Pete O'Hanlon25-May-10 0:52
mvePete O'Hanlon25-May-10 0:52 
GeneralRe: Data Binding Multiple Values Pin
#realJSOP25-May-10 5:53
mve#realJSOP25-May-10 5:53 

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.