![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
br> br> |
| |||||||
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Guest | Two-way binding doesn't work with ComboBox.Text? I have a style: <Style x:Key="JournalInput" TargetType="{x:Type ComboBox}"> <Setter Property="Template"> <Setter.Value> <ControlTemplate> <TextBox Text="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Text, Mode=TwoWay}"/> </ControlTemplate> </Setter.Value> </Setter> </Style> If I have a combo box: <ComboBox Name="MyCombo" Text="StartText" KeyDown="HandleKeyDown"/> The binding will work to the point that the textbox contains "StartText", but if I break in HandleKeyDown where e.Key == Key.Enter after entering, for example, "XYZ", MyCombo.Text still equals "StartText". Am I mishandling the binding somehow? According to the documentation, it should be binding 2-way by default. |
My System Specs![]() |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Binding Problem in ComboBox | Horst Klein | Avalon | 0 | 09-13-2007 02:50 AM |
| WPF ListView data binding with embedded ComboBox | Krish_xx | Avalon | 1 | 06-01-2007 07:28 AM |
| WPF binding error when databinding a ComboBox inside a ListView it | jeff.townes | Avalon | 0 | 05-01-2007 11:05 AM |
| ComboBox Binding to DataClass | Horst Klein | Avalon | 1 | 03-01-2007 09:46 AM |
| Binding a ComboBox to in internal property | Keith Patrick | Avalon | 4 | 10-04-2006 08:40 AM |