Click here to Skip to main content
15,886,873 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: WPF: Combobox in TreeviewItem Pin
levik200625-Mar-09 7:10
levik200625-Mar-09 7:10 
QuestionTrackball.cs problem Pin
grJubei25-Mar-09 5:57
grJubei25-Mar-09 5:57 
QuestionMusic Player in WPF.. Pin
VisualLive25-Mar-09 0:06
VisualLive25-Mar-09 0:06 
AnswerRe: Music Player in WPF.. Pin
BlitzPackage27-Mar-09 15:37
BlitzPackage27-Mar-09 15:37 
QuestionTreeview Pin
Ch.Gayatri Subudhi24-Mar-09 18:04
Ch.Gayatri Subudhi24-Mar-09 18:04 
AnswerRe: Treeview Pin
Mark Salsbery25-Mar-09 6:56
Mark Salsbery25-Mar-09 6:56 
QuestionEditing items in a bound ListBox? Pin
David Veeneman24-Mar-09 12:25
David Veeneman24-Mar-09 12:25 
AnswerRe: Editing items in a bound ListBox? Pin
ABitSmart24-Mar-09 19:00
ABitSmart24-Mar-09 19:00 
It worked fine. When I select something in the ListBox the TextBox shows that value. When I type something in the Textbox the corresponding item does get selected (i.e. if the value in TextBox exists in the ListBox else nothing is selected). Mine is a simple example though, just a list of strings.

My code (used the same example that I built for Christian in the above post Smile | :) )

XAML,
<TextBox Text="{Binding ElementName=playlists, Path=SelectedValue, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
<ListBox Name="playlists" ItemsSource="{Binding Path=Files}" SelectionMode="Single"/>

Code behind,
public class Playist
{
    public ObservableCollection<string> Files { get; set; }

    public Playist()
    {            
        Files = new ObservableCollection<string>();
        Files.Add("a");
        Files.Add("b");
        Files.Add("c");
        Files.Add("d");           
    }
}</string></string>

private Playist _playlist = new Playist();

public Window1()
{
    InitializeComponent();

    playlists.DataContext = _playlist;
}

GeneralRe: Editing items in a bound ListBox? Pin
David Veeneman25-Mar-09 3:04
David Veeneman25-Mar-09 3:04 
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 
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 

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.