Click here to Skip to main content
15,888,610 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: Editing items in a bound ListBox? Pin
ABitSmart25-Mar-09 3:53
ABitSmart25-Mar-09 3:53 
AnswerRe: Editing items in a bound ListBox? [modified] Pin
David Veeneman25-Mar-09 3:50
David Veeneman25-Mar-09 3:50 
GeneralRe: Editing items in a bound ListBox? Pin
ABitSmart25-Mar-09 4:02
ABitSmart25-Mar-09 4:02 
GeneralRe: Editing items in a bound ListBox? Pin
David Veeneman25-Mar-09 5:29
David Veeneman25-Mar-09 5:29 
GeneralRe: Editing items in a bound ListBox? Pin
ABitSmart25-Mar-09 5:40
ABitSmart25-Mar-09 5:40 
GeneralRe: Editing items in a bound ListBox? Pin
Member 367392230-Jun-09 20:50
Member 367392230-Jun-09 20:50 
GeneralRe: Editing items in a bound ListBox? Pin
ABitSmart30-Jun-09 20:56
ABitSmart30-Jun-09 20:56 
GeneralRe: Editing items in a bound ListBox? Pin
Member 367392230-Jun-09 21:00
Member 367392230-Jun-09 21:00 
See if it appears perfectly now..

Hi,
I am facing the similar kind of issue. But I am actually changing the controTemplate of ListBoxItem itself with ContentPresenter & a TextBox.
I did the same thing as per the posted contents but it did not work with the binded list. I have given something like below in the ControlTemplate of ListBox Item.

<ContentPresenter x:Name="displayTextBlock" Grid.Column="0" Grid.ColumnSpan="1" Margin="11,5,11,5" HorizontalAlignment="Stretch"/>

<TextBox x:Name="listItemTextBox" Padding="11,5,11,5" HorizontalAlignment="Stretch"
                                                                                          Background="Transparent"
                                                                                          Grid.Column="0"
                                                                                          Visibility="Collapsed" Grid.ColumnSpan="1"
                                                                                       Text="{Binding Path=Content, ElementName=displayTextBlock, Mode=TwoWay, UpdateSourceTrigger=LostFocus}" />

Kindly suggest.

Thnx,
Ritesh
GeneralRe: Editing items in a bound ListBox? Pin
ABitSmart30-Jun-09 21:21
ABitSmart30-Jun-09 21:21 
GeneralRe: Editing items in a bound ListBox? Pin
Member 367392230-Jun-09 21:34
Member 367392230-Jun-09 21:34 
GeneralRe: Editing items in a bound ListBox? Pin
ABitSmart30-Jun-09 21:37
ABitSmart30-Jun-09 21:37 
GeneralRe: Editing items in a bound ListBox? Pin
Member 367392230-Jun-09 22:45
Member 367392230-Jun-09 22:45 
GeneralRe: Editing items in a bound ListBox? Pin
Member 367392230-Jun-09 21:05
Member 367392230-Jun-09 21:05 
GeneralRe: Editing items in a bound ListBox? Pin
ABitSmart30-Jun-09 21:35
ABitSmart30-Jun-09 21:35 
GeneralRe: Editing items in a bound ListBox? Pin
Member 367392230-Jun-09 20:56
Member 367392230-Jun-09 20:56 
QuestionDatabinding textbox to double Pin
ErikZ24-Mar-09 2:46
ErikZ24-Mar-09 2:46 
AnswerRe: Databinding textbox to double Pin
Pete O'Hanlon24-Mar-09 3:56
mvePete O'Hanlon24-Mar-09 3:56 
GeneralRe: Databinding textbox to double Pin
ErikZ24-Mar-09 4:01
ErikZ24-Mar-09 4:01 
GeneralRe: Databinding textbox to double Pin
Pete O'Hanlon24-Mar-09 4:18
mvePete O'Hanlon24-Mar-09 4:18 
GeneralRe: Databinding textbox to double Pin
ErikZ24-Mar-09 20:06
ErikZ24-Mar-09 20:06 
Questionsilverlight and dlls Pin
VCsamir24-Mar-09 2:24
VCsamir24-Mar-09 2:24 
AnswerRe: silverlight and dlls Pin
Mark Salsbery24-Mar-09 6:01
Mark Salsbery24-Mar-09 6:01 
GeneralRe: silverlight and dlls Pin
VCsamir30-Mar-09 0:49
VCsamir30-Mar-09 0:49 
GeneralRe: silverlight and dlls Pin
Mark Salsbery30-Mar-09 6:06
Mark Salsbery30-Mar-09 6:06 
QuestionWhat is the Exact use of WF??? Pin
Narendra Reddy Vajrala24-Mar-09 2:18
Narendra Reddy Vajrala24-Mar-09 2:18 

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.