I created a simple TextBox with a link in a pure WPF-Window
<TextBox Name="MyTextBox" Focusable="True" Width="150" Text="{Binding MyText, UpdateSourceTrigger=PropertyChanged}"</TextBox>
My problem is that the attached property of the string MyText is not updated in any way. If I type a space, the property is updated. If I paste text through the clipboard into a TextBox, the MyText property is updated. But if I type any other character, nothing happens. I registered an event handler for TextChanged for debugging purposes. The event occurs only for the space character and the insert operation, but is not used for other characters.
A few words about my environment: WPF-Window can only be divided into this TextBox. I open this window from within the DLL. The full project was aimed at .Net2, now, due to WPF, on Framework 3.5. I do not know how to make it simpler to find the problem.
wpf binding
Jens
source share